Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009582/0.0009584, allocations: 99.84 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002913/0.0002916, allocations: 8 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2758/0.2761, allocations: 50.41 MB / 401.6 MB, free: 32.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1443/0.4205, allocations: 79.4 MB / 481 MB, free: 1.02 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003096/0.4209, allocations: 68.75 kB / 481 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01779/0.4387, allocations: 5.107 MB / 486.2 MB, free: 11.84 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.886e-06/0.4387, allocations: 4 kB / 486.2 MB, free: 11.83 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.465e-05/0.4388, allocations: 4 kB / 486.2 MB, free: 11.83 MB / 362.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.001154/0.4399, allocations: 0.5768 MB / 486.7 MB, free: 11.2 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.737e-05/0.44, allocations: 8.031 kB / 486.7 MB, free: 11.19 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000105/0.4401, allocations: 74.47 kB / 486.8 MB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.35e-05/0.4402, allocations: 31.62 kB / 486.9 MB, free: 11.08 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000419/0.4407, allocations: 262.5 kB / 487.1 MB, free: 10.78 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.285e-05/0.4407, allocations: 24.66 kB / 487.1 MB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.24e-05/0.4408, allocations: 35.94 kB / 487.2 MB, free: 10.72 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007147/0.4415, allocations: 270.1 kB / 487.4 MB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.4415, allocations: 0 / 487.4 MB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.074e-05/0.4416, allocations: 12 kB / 487.4 MB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.4416, allocations: 8 kB / 487.4 MB, free: 10.44 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000572/0.4422, allocations: 218.5 kB / 487.7 MB, free: 10.22 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001948/0.4442, allocations: 1.003 MB / 488.7 MB, free: 9.148 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003762/0.4445, allocations: 158.6 kB / 488.8 MB, free: 8.984 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.475e-05/0.4446, allocations: 11.95 kB / 488.8 MB, free: 8.973 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.4446, allocations: 30.56 kB / 488.9 MB, free: 8.934 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.723e-06/0.4446, allocations: 0 / 488.9 MB, free: 8.934 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.0007316/0.4454, allocations: 236.7 kB / 489.1 MB, free: 8.699 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.36e-05/0.4454, allocations: 55.41 kB / 489.1 MB, free: 8.633 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002189/0.4457, allocations: 194 kB / 489.3 MB, free: 8.438 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.48e-05/0.4457, allocations: 25.7 kB / 489.4 MB, free: 8.406 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/0.4458, allocations: 184.1 kB / 489.5 MB, free: 8.223 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.212e-05/0.4459, allocations: 70.98 kB / 489.6 MB, free: 8.152 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.402e-05/0.4459, allocations: 8 kB / 489.6 MB, free: 8.145 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.4461, allocations: 334.8 kB / 489.9 MB, free: 7.809 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001952/0.4463, allocations: 63.97 kB / 490 MB, free: 7.746 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002395/0.4465, allocations: 122.5 kB / 490.1 MB, free: 7.605 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002228/0.4468, allocations: 87.84 kB / 490.2 MB, free: 7.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.4468, allocations: 0 / 490.2 MB, free: 7.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005344/0.4473, allocations: 245.2 kB / 490.5 MB, free: 7.273 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.323e-05/0.4473, allocations: 7.953 kB / 490.5 MB, free: 7.266 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.4474, allocations: 8 kB / 490.5 MB, free: 7.258 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.4474, allocations: 0 / 490.5 MB, free: 7.258 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003483/0.4477, allocations: 76.02 kB / 490.5 MB, free: 7.184 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.4478, allocations: 4 kB / 490.5 MB, free: 7.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001922/0.448, allocations: 31.73 kB / 490.6 MB, free: 7.148 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.876e-05/0.448, allocations: 4 kB / 490.6 MB, free: 7.145 MB / 362.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 () * Number of clocked 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 0.0001657/0.4482, allocations: 146.5 kB / 490.7 MB, free: 6.992 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.009e-05/0.4482, allocations: 19.81 kB / 490.7 MB, free: 6.973 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000526/0.4488, allocations: 206.2 kB / 490.9 MB, free: 6.762 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.4488, allocations: 4 kB / 490.9 MB, free: 6.758 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.4488, allocations: 7.891 kB / 491 MB, free: 6.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/0.4488, allocations: 0 / 491 MB, free: 6.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004149/0.4492, allocations: 317.5 kB / 491.3 MB, free: 6.391 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.4492, allocations: 0 / 491.3 MB, free: 6.391 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003493/0.4496, allocations: 51.97 kB / 491.3 MB, free: 6.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.4496, allocations: 0 / 491.3 MB, free: 6.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.045e-05/0.4496, allocations: 8 kB / 491.3 MB, free: 6.332 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.4496, allocations: 0 / 491.3 MB, free: 6.332 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.4497, allocations: 0 / 491.3 MB, free: 6.332 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007505/0.4504, allocations: 367 kB / 491.7 MB, free: 5.957 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.488e-05/0.4505, allocations: 104.9 kB / 491.8 MB, free: 5.836 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.698e-05/0.4506, allocations: 0 / 491.8 MB, free: 5.836 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002305/0.4508, allocations: 23.98 kB / 491.8 MB, free: 5.812 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.905e-05/0.4509, allocations: 15.92 kB / 491.8 MB, free: 5.797 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.857e-05/0.4509, allocations: 11.95 kB / 491.8 MB, free: 5.785 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001441/0.4511, allocations: 144.6 kB / 492 MB, free: 5.645 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4511, allocations: 0 / 492 MB, free: 5.645 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004153/0.4515, allocations: 83.69 kB / 492.1 MB, free: 5.562 MB / 362.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 () * Number of clocked 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.001102/0.4526, allocations: 0.9023 MB / 493 MB, free: 4.637 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005139/0.4531, allocations: 175.8 kB / 493.1 MB, free: 4.465 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.4531, allocations: 0 / 493.1 MB, free: 4.465 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002039/0.4533, allocations: 84.14 kB / 493.2 MB, free: 4.383 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003291/0.4537, allocations: 23.98 kB / 493.2 MB, free: 4.359 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00306/0.4568, allocations: 2.735 MB / 496 MB, free: 1.547 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000388/0.4572, allocations: 0.7715 MB / 496.7 MB, free: 0.7461 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001196/0.4573, allocations: 25.92 kB / 496.8 MB, free: 0.7148 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000127/0.4574, allocations: 87.41 kB / 496.9 MB, free: 0.6289 MB / 362.7 MB Notification: Performance of SimCode: time 7.12e-07/0.4574, allocations: 8 kB / 496.9 MB, free: 0.6211 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0163/0.4737, allocations: 4.032 MB / 0.4892 GB, free: 12.73 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001814/0.474, allocations: 182.2 kB / 0.4893 GB, free: 12.49 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.858/2.332, allocations: 0 / 0.4893 GB, free: 12.49 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat does not exist to compare? outputFormat=mat