Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001479/0.001479, allocations: 172.5 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.481/1.481, allocations: 205.2 MB / 219.8 MB, free: 14.26 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007947/0.0007948, allocations: 86.73 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.216e-05/4.218e-05, allocations: 4 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09187/0.09193, allocations: 47.57 MB / 370.1 MB, free: 1.621 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3092/0.4012, allocations: 81.21 MB / 451.3 MB, free: 12.12 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001924/0.4015, allocations: 79.45 kB / 451.4 MB, free: 12.08 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03731/0.4388, allocations: 15.97 MB / 467.4 MB, free: 13.23 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.4388, allocations: 0 / 467.4 MB, free: 13.23 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.183e-05/0.4389, allocations: 31.98 kB / 467.4 MB, free: 13.2 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001406/0.4403, allocations: 1.033 MB / 468.4 MB, free: 12.12 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.4404, allocations: 14.11 kB / 468.5 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000152/0.4405, allocations: 152.4 kB / 468.6 MB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001526/0.4407, allocations: 130.3 kB / 468.7 MB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008171/0.4415, allocations: 0.5547 MB / 469.3 MB, free: 11.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.236e-05/0.4416, allocations: 74 kB / 469.4 MB, free: 11.15 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001188/0.4417, allocations: 99.91 kB / 469.5 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001493/0.4432, allocations: 0.9917 MB / 470.4 MB, free: 9.941 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.32e-05/0.4433, allocations: 7.938 kB / 470.5 MB, free: 9.934 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.033e-05/0.4433, allocations: 44 kB / 470.5 MB, free: 9.891 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.433e-05/0.4434, allocations: 31.94 kB / 470.5 MB, free: 9.859 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009474/0.4443, allocations: 0.5073 MB / 471 MB, free: 9.352 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004453/0.4488, allocations: 5.544 MB / 476.6 MB, free: 3.52 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004571/0.4493, allocations: 213.1 kB / 476.8 MB, free: 3.293 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002317/0.4495, allocations: 145.7 kB / 476.9 MB, free: 3.145 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000116/0.4496, allocations: 89.09 kB / 477 MB, free: 3.039 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.701e-05/0.4497, allocations: 34.56 kB / 477.1 MB, free: 2.996 MB / 346.7 MB Notification: Performance of pre-optimization done (n=28): time 5.37e-06/0.4497, allocations: 4 kB / 477.1 MB, free: 2.992 MB / 346.7 MB Notification: Performance of matching and sorting (n=40): time 0.00292/0.4526, allocations: 1.523 MB / 478.6 MB, free: 1.367 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.253e-05/0.4527, allocations: 81.11 kB / 478.7 MB, free: 1.27 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005716/0.4533, allocations: 0.5389 MB / 479.2 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.773e-05/0.4533, allocations: 37.7 kB / 479.2 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003727/0.4537, allocations: 0.6064 MB / 479.8 MB, free: 60 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001261/0.4538, allocations: 146.2 kB / 480 MB, free: 15.91 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.415e-05/0.4538, allocations: 12 kB / 480 MB, free: 15.9 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001764/0.454, allocations: 386.8 kB / 480.4 MB, free: 15.51 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002183/0.4543, allocations: 125.6 kB / 480.5 MB, free: 15.39 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004925/0.4548, allocations: 471 kB / 481 MB, free: 14.76 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003949/0.4552, allocations: 216.4 kB / 481.2 MB, free: 14.55 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.073e-05/0.4552, allocations: 4 kB / 481.2 MB, free: 14.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001114/0.4563, allocations: 0.6576 MB / 481.8 MB, free: 13.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.707e-05/0.4563, allocations: 12 kB / 481.8 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.945e-05/0.4564, allocations: 15.98 kB / 481.9 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.643e-05/0.4564, allocations: 23.81 kB / 481.9 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006487/0.4571, allocations: 199.7 kB / 482.1 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.153e-05/0.4571, allocations: 27.92 kB / 482.1 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003608/0.4575, allocations: 35.98 kB / 482.1 MB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.393e-05/0.4575, allocations: 36 kB / 482.2 MB, free: 13.55 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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 0.0001274/0.4577, allocations: 164.5 kB / 482.3 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.4578, allocations: 75.06 kB / 482.4 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001423/0.4579, allocations: 78.31 kB / 482.5 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.4579, allocations: 7.953 kB / 482.5 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.4579, allocations: 0 / 482.5 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.458, allocations: 0 / 482.5 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001895/0.4599, allocations: 1.3 MB / 483.8 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.4599, allocations: 4 kB / 483.8 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004666/0.4604, allocations: 112 kB / 483.9 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.605e-06/0.4604, allocations: 4 kB / 483.9 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.795e-05/0.4604, allocations: 15.98 kB / 483.9 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/0.4604, allocations: 4 kB / 483.9 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.4604, allocations: 4 kB / 483.9 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007/0.4611, allocations: 0.7149 MB / 484.6 MB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.4613, allocations: 144.2 kB / 484.8 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.246e-05/0.4613, allocations: 8 kB / 484.8 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000282/0.4616, allocations: 27.98 kB / 484.8 MB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.697e-05/0.4617, allocations: 31.91 kB / 484.8 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.052e-05/0.4617, allocations: 12 kB / 484.9 MB, free: 10.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004106/0.4621, allocations: 415.2 kB / 485.3 MB, free: 10.28 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4621, allocations: 0 / 485.3 MB, free: 10.28 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000634/0.4628, allocations: 140 kB / 485.4 MB, free: 10.14 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 40 * 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.00135/0.4641, allocations: 1.679 MB / 487.1 MB, free: 8.402 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007097/0.4648, allocations: 394.2 kB / 487.5 MB, free: 8.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.4649, allocations: 0 / 487.5 MB, free: 8.02 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001915/0.4651, allocations: 135.8 kB / 487.6 MB, free: 7.887 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003917/0.4655, allocations: 63.3 kB / 487.7 MB, free: 7.824 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002416/0.4679, allocations: 1.365 MB / 489 MB, free: 6.402 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004886/0.4684, allocations: 1.039 MB / 490.1 MB, free: 5.336 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002883/0.4687, allocations: 90 kB / 490.2 MB, free: 5.246 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004008/0.4691, allocations: 391.3 kB / 490.5 MB, free: 4.863 MB / 362.7 MB Notification: Performance of SimCode: time 5.21e-07/0.4691, allocations: 4 kB / 490.5 MB, free: 4.859 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02352/0.4926, allocations: 11.39 MB / 0.4902 GB, free: 9.449 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001567/0.4928, allocations: 160.2 kB / 0.4903 GB, free: 9.223 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.159/2.652, allocations: 0 / 0.4903 GB, free: 9.223 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat does not exist to compare? outputFormat=mat