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.001172/0.001172, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 225.6 MB / 234.8 MB, free: 3.297 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001039/0.001039, allocations: 99.42 kB / 286.7 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.827e-05/1.829e-05, allocations: 4 kB / 343.8 MB, free: 8.199 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1053, allocations: 51.48 MB / 395.3 MB, free: 4.684 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3466/0.4519, allocations: 79.46 MB / 474.7 MB, free: 12.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002674/0.4523, allocations: 76.06 kB / 474.8 MB, free: 12.28 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01305/0.4653, allocations: 5.155 MB / 480 MB, free: 9.168 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.4654, allocations: 4 kB / 480 MB, free: 9.164 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.527e-05/0.4654, allocations: 4 kB / 480 MB, free: 9.16 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.0007133/0.4661, allocations: 0.5506 MB / 480.5 MB, free: 8.59 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.4662, allocations: 8.031 kB / 480.5 MB, free: 8.582 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.691e-05/0.4662, allocations: 40.39 kB / 480.6 MB, free: 8.543 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002573/0.4665, allocations: 260.5 kB / 480.8 MB, free: 8.273 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.4665, allocations: 13.22 kB / 480.8 MB, free: 8.262 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.708e-05/0.4666, allocations: 20 kB / 480.8 MB, free: 8.242 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002769/0.4669, allocations: 169.7 kB / 481 MB, free: 8.145 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000344/0.4672, allocations: 213.3 kB / 481.2 MB, free: 7.977 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.4672, allocations: 3.984 kB / 481.2 MB, free: 7.973 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.522e-05/0.4673, allocations: 4 kB / 481.2 MB, free: 7.969 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.225e-06/0.4673, allocations: 4 kB / 481.2 MB, free: 7.965 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00136/0.4686, allocations: 0.995 MB / 482.2 MB, free: 7.09 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001934/0.4689, allocations: 135.7 kB / 482.4 MB, free: 6.992 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00017/0.469, allocations: 107.7 kB / 482.5 MB, free: 6.914 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.276e-05/0.4691, allocations: 7.625 kB / 482.5 MB, free: 6.91 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.386e-05/0.4691, allocations: 34.03 kB / 482.5 MB, free: 6.871 MB / 346.7 MB Notification: Performance of pre-optimization done (n=19): time 1.263e-06/0.4691, allocations: 0 / 482.5 MB, free: 6.871 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.0002855/0.4694, allocations: 141.6 kB / 482.6 MB, free: 6.75 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.669e-05/0.4694, allocations: 51.41 kB / 482.7 MB, free: 6.688 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001445/0.4696, allocations: 164.3 kB / 482.9 MB, free: 6.539 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/0.4696, allocations: 25.7 kB / 482.9 MB, free: 6.508 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.799e-05/0.4697, allocations: 198.2 kB / 483.1 MB, free: 6.332 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.076e-05/0.4697, allocations: 73.12 kB / 483.1 MB, free: 6.27 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.786e-06/0.4697, allocations: 0 / 483.1 MB, free: 6.27 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.821e-05/0.4698, allocations: 329.8 kB / 483.5 MB, free: 5.945 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.438e-05/0.4699, allocations: 50 kB / 483.5 MB, free: 5.918 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001099/0.47, allocations: 116.2 kB / 483.6 MB, free: 5.793 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001061/0.4701, allocations: 76.86 kB / 483.7 MB, free: 5.742 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.4701, allocations: 0 / 483.7 MB, free: 5.742 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002908/0.4704, allocations: 215.9 kB / 483.9 MB, free: 5.562 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.836e-05/0.4705, allocations: 8 kB / 483.9 MB, free: 5.555 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.4705, allocations: 0 / 483.9 MB, free: 5.555 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.4705, allocations: 8 kB / 483.9 MB, free: 5.547 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002969/0.4708, allocations: 79.27 kB / 484 MB, free: 5.473 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.4708, allocations: 4 kB / 484 MB, free: 5.469 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001477/0.471, allocations: 23.83 kB / 484 MB, free: 5.445 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.705e-05/0.471, allocations: 11.12 kB / 484 MB, free: 5.438 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.809e-05/0.4711, allocations: 108.9 kB / 484.2 MB, free: 5.324 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001819/0.4713, allocations: 140.3 kB / 484.3 MB, free: 5.207 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.674e-05/0.4713, allocations: 27.67 kB / 484.3 MB, free: 5.18 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002393/0.4716, allocations: 161.8 kB / 484.5 MB, free: 5.055 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.4716, allocations: 0 / 484.5 MB, free: 5.055 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.4716, allocations: 0 / 484.5 MB, free: 5.055 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.4716, allocations: 0 / 484.5 MB, free: 5.055 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004848/0.4721, allocations: 0.5156 MB / 485 MB, free: 4.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.4721, allocations: 2.438 kB / 485 MB, free: 4.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003137/0.4724, allocations: 67.34 kB / 485.1 MB, free: 4.508 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.778e-06/0.4724, allocations: 3.953 kB / 485.1 MB, free: 4.504 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.496e-05/0.4724, allocations: 0 / 485.1 MB, free: 4.504 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.4725, allocations: 7.984 kB / 485.1 MB, free: 4.496 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.4725, allocations: 0 / 485.1 MB, free: 4.496 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003204/0.4728, allocations: 344.1 kB / 485.4 MB, free: 4.176 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.83e-05/0.4728, allocations: 98.73 kB / 485.5 MB, free: 4.062 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.083e-05/0.4729, allocations: 0 / 485.5 MB, free: 4.062 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001679/0.4731, allocations: 15.98 kB / 485.5 MB, free: 4.047 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.059e-05/0.4731, allocations: 15.3 kB / 485.5 MB, free: 4.035 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.062e-05/0.4731, allocations: 11.94 kB / 485.5 MB, free: 4.023 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.265e-05/0.4732, allocations: 147.6 kB / 485.7 MB, free: 3.902 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4732, allocations: 0 / 485.7 MB, free: 3.902 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003178/0.4736, allocations: 71.69 kB / 485.8 MB, free: 3.832 MB / 346.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.000517/0.4741, allocations: 1.01 MB / 486.8 MB, free: 2.84 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002072/0.4743, allocations: 135.6 kB / 486.9 MB, free: 2.742 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.4743, allocations: 4 kB / 486.9 MB, free: 2.738 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.819e-05/0.4744, allocations: 70.8 kB / 487 MB, free: 2.688 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002633/0.4747, allocations: 17.97 kB / 487 MB, free: 2.676 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00119/0.4759, allocations: 0.7437 MB / 487.7 MB, free: 1.941 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002091/0.4761, allocations: 0.7711 MB / 488.5 MB, free: 1.145 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001152/0.4762, allocations: 26.06 kB / 488.5 MB, free: 1.117 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001043/0.4763, allocations: 93.02 kB / 488.6 MB, free: 1.086 MB / 346.7 MB Notification: Performance of SimCode: time 4.61e-07/0.4763, allocations: 0 / 488.6 MB, free: 1.086 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02188/0.4982, allocations: 3.53 MB / 492.2 MB, free: 13.62 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001948/0.4985, allocations: 142.3 kB / 492.3 MB, free: 13.43 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.659/2.158, allocations: 0 / 492.3 MB, free: 13.43 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