Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001244/0.001244, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001032/0.001032, allocations: 93.97 kB / 292.1 MB, free: 5.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.047e-05/3.058e-05, allocations: 7.984 kB / 350.6 MB, free: 2.457 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1034, allocations: 51.49 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3348/0.4382, allocations: 80.13 MB / 482.3 MB, free: 9.309 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001815/0.4384, allocations: 68.72 kB / 482.3 MB, free: 9.273 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01207/0.4505, allocations: 5.203 MB / 487.5 MB, free: 4.938 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.4505, allocations: 0 / 487.5 MB, free: 4.938 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.605e-05/0.4505, allocations: 8 kB / 487.5 MB, free: 4.93 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0006221/0.4512, allocations: 0.5517 MB / 488.1 MB, free: 4.359 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.4512, allocations: 8.031 kB / 488.1 MB, free: 4.352 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.016e-05/0.4513, allocations: 69.73 kB / 488.2 MB, free: 4.293 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.056e-05/0.4514, allocations: 40.38 kB / 488.2 MB, free: 4.254 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000246/0.4516, allocations: 261.1 kB / 488.5 MB, free: 3.984 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.035e-05/0.4516, allocations: 24.34 kB / 488.5 MB, free: 3.973 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.68e-05/0.4517, allocations: 27.69 kB / 488.5 MB, free: 3.953 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003921/0.4521, allocations: 263.5 kB / 488.8 MB, free: 3.773 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.4521, allocations: 0 / 488.8 MB, free: 3.773 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.63e-05/0.4521, allocations: 14.62 kB / 488.8 MB, free: 3.77 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.814e-06/0.4522, allocations: 8 kB / 488.8 MB, free: 3.762 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002689/0.4524, allocations: 184.6 kB / 489 MB, free: 3.641 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001317/0.4538, allocations: 1.068 MB / 490 MB, free: 2.699 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000206/0.454, allocations: 141.5 kB / 490.2 MB, free: 2.594 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001675/0.4542, allocations: 117.5 kB / 490.3 MB, free: 2.512 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.78e-05/0.4542, allocations: 4 kB / 490.3 MB, free: 2.508 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.327e-05/0.4542, allocations: 44.38 kB / 490.3 MB, free: 2.461 MB / 346.7 MB Notification: Performance of pre-optimization done (n=19): time 1.392e-06/0.4542, allocations: 0 / 490.3 MB, free: 2.461 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.0002672/0.4545, allocations: 143.3 kB / 490.5 MB, free: 2.34 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.718e-05/0.4545, allocations: 55.41 kB / 490.5 MB, free: 2.273 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001307/0.4547, allocations: 186.9 kB / 490.7 MB, free: 2.109 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.618e-05/0.4547, allocations: 32.64 kB / 490.7 MB, free: 2.074 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.332e-05/0.4548, allocations: 202.6 kB / 490.9 MB, free: 1.898 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.619e-05/0.4548, allocations: 69.38 kB / 491 MB, free: 1.84 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.012e-05/0.4548, allocations: 6.438 kB / 491 MB, free: 1.84 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.305e-05/0.4549, allocations: 333.6 kB / 491.3 MB, free: 1.512 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.397e-05/0.455, allocations: 56.5 kB / 491.4 MB, free: 1.477 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001077/0.4551, allocations: 131.3 kB / 491.5 MB, free: 1.34 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001077/0.4552, allocations: 80.58 kB / 491.6 MB, free: 1.285 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.4552, allocations: 4 kB / 491.6 MB, free: 1.281 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002891/0.4555, allocations: 233.6 kB / 491.8 MB, free: 1.094 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.4555, allocations: 8 kB / 491.8 MB, free: 1.086 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.4555, allocations: 4 kB / 491.8 MB, free: 1.082 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.4555, allocations: 4 kB / 491.9 MB, free: 1.078 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002814/0.4558, allocations: 79.77 kB / 491.9 MB, free: 1.004 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.132e-05/0.4559, allocations: 7.938 kB / 491.9 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001549/0.456, allocations: 31.3 kB / 492 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.687e-05/0.456, allocations: 12 kB / 492 MB, free: 0.957 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.119e-05/0.4561, allocations: 125.2 kB / 492.1 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.807e-05/0.4562, allocations: 19.81 kB / 492.1 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002511/0.4564, allocations: 172 kB / 492.3 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.4564, allocations: 4 kB / 492.3 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.4564, allocations: 4 kB / 492.3 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.4564, allocations: 0 / 492.3 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005242/0.457, allocations: 0.5856 MB / 492.9 MB, free: 100 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.457, allocations: 0 / 492.9 MB, free: 100 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002709/0.4573, allocations: 51.97 kB / 492.9 MB, free: 48 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.531e-06/0.4573, allocations: 8.062 kB / 492.9 MB, free: 40 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.4573, allocations: 4 kB / 492.9 MB, free: 36 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.4573, allocations: 5.125 kB / 492.9 MB, free: 32 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.4573, allocations: 3.938 kB / 493 MB, free: 28 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004533/0.4578, allocations: 362.9 kB / 493.3 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.598e-05/0.4579, allocations: 100.8 kB / 493.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.073e-05/0.4579, allocations: 4.062 kB / 493.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001844/0.4581, allocations: 19.98 kB / 493.4 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.229e-05/0.4582, allocations: 18.28 kB / 493.4 MB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.389e-05/0.4582, allocations: 11.94 kB / 493.5 MB, free: 15.47 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001238/0.4583, allocations: 159.5 kB / 493.6 MB, free: 15.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4583, allocations: 0 / 493.6 MB, free: 15.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003301/0.4586, allocations: 79.75 kB / 493.7 MB, free: 15.24 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sineCurrent.phi,inductor1.i,capacitor1.v,cosineCurrent.phi,inductor2.i,capacitor2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007391/0.4594, allocations: 1.043 MB / 494.7 MB, free: 14.16 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002616/0.4597, allocations: 152.9 kB / 494.9 MB, free: 14.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.4597, allocations: 4 kB / 494.9 MB, free: 14.01 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001144/0.4598, allocations: 71.86 kB / 495 MB, free: 13.94 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002491/0.4601, allocations: 29.23 kB / 495 MB, free: 13.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001274/0.4613, allocations: 0.7541 MB / 495.7 MB, free: 13.14 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/0.4617, allocations: 0.7789 MB / 496.5 MB, free: 12.34 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001065/0.4618, allocations: 26.05 kB / 496.5 MB, free: 12.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.4619, allocations: 91.41 kB / 496.6 MB, free: 12.21 MB / 362.7 MB Notification: Performance of SimCode: time 5.11e-07/0.4619, allocations: 4 kB / 496.6 MB, free: 12.21 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01539/0.4773, allocations: 4.14 MB / 0.489 GB, free: 8.293 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001913/0.4776, allocations: 167.5 kB / 0.4892 GB, free: 8.062 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.676/2.154, allocations: 0 / 0.4892 GB, free: 8.062 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ParallelResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ParallelResonance.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat does not exist to compare? outputFormat=mat