Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.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.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001071/0.001071, allocations: 198.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.435/1.435, allocations: 225.6 MB / 234.8 MB, free: 3.207 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009782/0.0009783, allocations: 97.28 kB / 286.7 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.691e-05/2.7e-05, allocations: 4 kB / 343.8 MB, free: 8.168 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1043, allocations: 51.47 MB / 395.3 MB, free: 4.656 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3178/0.4221, allocations: 79.49 MB / 474.8 MB, free: 12.17 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003075/0.4225, allocations: 69.31 kB / 474.8 MB, free: 12.15 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0137/0.4362, allocations: 5.111 MB / 479.9 MB, free: 9.07 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.4362, allocations: 0 / 479.9 MB, free: 9.07 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.739e-05/0.4363, allocations: 8 kB / 479.9 MB, free: 9.062 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.0007105/0.437, allocations: 0.5491 MB / 480.5 MB, free: 8.492 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.437, allocations: 8.031 kB / 480.5 MB, free: 8.484 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.938e-05/0.4371, allocations: 40.39 kB / 480.5 MB, free: 8.445 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002931/0.4374, allocations: 260.7 kB / 480.8 MB, free: 8.176 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.665e-05/0.4374, allocations: 8 kB / 480.8 MB, free: 8.168 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.623e-05/0.4375, allocations: 20 kB / 480.8 MB, free: 8.148 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002768/0.4378, allocations: 158.6 kB / 481 MB, free: 8.055 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000329/0.4381, allocations: 202.4 kB / 481.2 MB, free: 7.895 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.4381, allocations: 0 / 481.2 MB, free: 7.895 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.535e-05/0.4382, allocations: 0 / 481.2 MB, free: 7.895 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.4382, allocations: 8 kB / 481.2 MB, free: 7.887 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001288/0.4395, allocations: 0.9529 MB / 482.1 MB, free: 7.031 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001851/0.4397, allocations: 133.4 kB / 482.3 MB, free: 6.93 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8e-05/0.4398, allocations: 61.84 kB / 482.3 MB, free: 6.887 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.818e-05/0.4398, allocations: 0 / 482.3 MB, free: 6.887 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.183e-05/0.4398, allocations: 38.38 kB / 482.4 MB, free: 6.844 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.052e-06/0.4398, allocations: 3.172 kB / 482.4 MB, free: 6.844 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.000245/0.4401, allocations: 127.9 kB / 482.5 MB, free: 6.734 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.094e-05/0.4401, allocations: 55.41 kB / 482.5 MB, free: 6.668 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.4402, allocations: 163 kB / 482.7 MB, free: 6.523 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.4402, allocations: 25.7 kB / 482.7 MB, free: 6.492 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.449e-05/0.4403, allocations: 193.5 kB / 482.9 MB, free: 6.32 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.11e-05/0.4404, allocations: 61.84 kB / 483 MB, free: 6.266 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.256e-06/0.4404, allocations: 0 / 483 MB, free: 6.266 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.491e-05/0.4404, allocations: 328.9 kB / 483.3 MB, free: 5.945 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.586e-05/0.4405, allocations: 45.44 kB / 483.3 MB, free: 5.918 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.752e-05/0.4406, allocations: 95.31 kB / 483.4 MB, free: 5.824 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.841e-05/0.4407, allocations: 56.03 kB / 483.5 MB, free: 5.789 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.4407, allocations: 4 kB / 483.5 MB, free: 5.785 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002336/0.4409, allocations: 190.7 kB / 483.7 MB, free: 5.629 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.441, allocations: 11.94 kB / 483.7 MB, free: 5.617 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.441, allocations: 0 / 483.7 MB, free: 5.617 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.441, allocations: 4 kB / 483.7 MB, free: 5.613 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002609/0.4413, allocations: 63.91 kB / 483.8 MB, free: 5.551 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.4413, allocations: 7.938 kB / 483.8 MB, free: 5.543 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000135/0.4414, allocations: 23.7 kB / 483.8 MB, free: 5.523 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.428e-05/0.4414, allocations: 8 kB / 483.8 MB, free: 5.516 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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.26e-05/0.4415, allocations: 108.9 kB / 483.9 MB, free: 5.402 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001759/0.4417, allocations: 134 kB / 484 MB, free: 5.289 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.337e-05/0.4417, allocations: 16.47 kB / 484 MB, free: 5.273 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002198/0.442, allocations: 149 kB / 484.2 MB, free: 5.156 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.442, allocations: 4 kB / 484.2 MB, free: 5.152 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.442, allocations: 0 / 484.2 MB, free: 5.152 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.442, allocations: 3.938 kB / 484.2 MB, free: 5.148 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002368/0.4422, allocations: 265.3 kB / 484.5 MB, free: 4.891 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.4422, allocations: 0 / 484.5 MB, free: 4.891 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002781/0.4425, allocations: 56.09 kB / 484.5 MB, free: 4.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.4425, allocations: 3.953 kB / 484.5 MB, free: 4.836 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.709e-05/0.4426, allocations: 4 kB / 484.5 MB, free: 4.832 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.4426, allocations: 0 / 484.5 MB, free: 4.832 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.4426, allocations: 0 / 484.5 MB, free: 4.832 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002953/0.4429, allocations: 300.9 kB / 484.8 MB, free: 4.574 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.934e-05/0.4429, allocations: 92.86 kB / 484.9 MB, free: 4.465 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.16e-05/0.443, allocations: 7.953 kB / 484.9 MB, free: 4.457 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/0.4431, allocations: 15.98 kB / 484.9 MB, free: 4.441 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.757e-05/0.4432, allocations: 15.8 kB / 484.9 MB, free: 4.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.351e-05/0.4432, allocations: 10.98 kB / 485 MB, free: 4.422 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.595e-05/0.4433, allocations: 129.5 kB / 485.1 MB, free: 4.312 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4433, allocations: 0 / 485.1 MB, free: 4.312 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003253/0.4436, allocations: 71.69 kB / 485.2 MB, free: 4.242 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.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 (19): * Single equations (assignments): 19 * 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.0004962/0.4441, allocations: 0.8229 MB / 486 MB, free: 3.441 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002027/0.4444, allocations: 127 kB / 486.1 MB, free: 3.352 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.4444, allocations: 0 / 486.1 MB, free: 3.352 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.932e-05/0.4444, allocations: 57.44 kB / 486.2 MB, free: 3.312 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002451/0.4447, allocations: 23.45 kB / 486.2 MB, free: 3.293 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001124/0.4458, allocations: 0.7428 MB / 486.9 MB, free: 2.559 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002339/0.4461, allocations: 0.7753 MB / 487.7 MB, free: 1.758 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.666e-05/0.4462, allocations: 17.86 kB / 487.7 MB, free: 1.738 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.4463, allocations: 85.53 kB / 487.8 MB, free: 1.715 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4463, allocations: 4 kB / 487.8 MB, free: 1.711 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02166/0.468, allocations: 3.41 MB / 491.2 MB, free: 14.36 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001898/0.4682, allocations: 142.3 kB / 491.4 MB, free: 14.17 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.741/2.21, allocations: 0 / 491.4 MB, free: 14.17 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat does not exist to compare? outputFormat=mat