Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.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.ParallelResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance",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.00136/0.00136, allocations: 177 kB / 8.347 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 221.5 MB / 230.3 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000991/0.000991, allocations: 98.11 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.503e-05/2.51e-05, allocations: 4 kB / 337.1 MB, free: 9.949 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1071, allocations: 50.43 MB / 387.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3294/0.4366, allocations: 78.64 MB / 466.2 MB, free: 60 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002688/0.4369, allocations: 73.7 kB / 466.3 MB, free: 15.99 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01454/0.4514, allocations: 5.1 MB / 471.4 MB, free: 10.88 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.4515, allocations: 0 / 471.4 MB, free: 10.88 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.378e-05/0.4515, allocations: 8 kB / 471.4 MB, free: 10.87 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.0009195/0.4525, allocations: 0.5499 MB / 471.9 MB, free: 10.27 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.4525, allocations: 12.02 kB / 471.9 MB, free: 10.26 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8e-05/0.4526, allocations: 39.53 kB / 472 MB, free: 10.22 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000315/0.4529, allocations: 250.6 kB / 472.2 MB, free: 9.938 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.545e-05/0.453, allocations: 11.95 kB / 472.2 MB, free: 9.926 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.848e-05/0.453, allocations: 20 kB / 472.3 MB, free: 9.906 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003119/0.4533, allocations: 165.5 kB / 472.4 MB, free: 9.746 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003795/0.4537, allocations: 210.2 kB / 472.6 MB, free: 9.531 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.4538, allocations: 0.75 kB / 472.6 MB, free: 9.531 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.861e-05/0.4538, allocations: 4 kB / 472.6 MB, free: 9.527 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.4538, allocations: 11.94 kB / 472.6 MB, free: 9.516 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001573/0.4554, allocations: 0.9905 MB / 473.6 MB, free: 8.465 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002352/0.4556, allocations: 142.6 kB / 473.8 MB, free: 8.316 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001993/0.4558, allocations: 106.2 kB / 473.9 MB, free: 8.211 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.582e-05/0.4559, allocations: 15.88 kB / 473.9 MB, free: 8.195 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/0.4559, allocations: 34.56 kB / 473.9 MB, free: 8.152 MB / 346.7 MB Notification: Performance of pre-optimization done (n=19): time 1.412e-06/0.4559, allocations: 0 / 473.9 MB, free: 8.152 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.0003204/0.4562, allocations: 141.3 kB / 474.1 MB, free: 8.008 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.06e-05/0.4563, allocations: 51.41 kB / 474.1 MB, free: 7.945 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001748/0.4565, allocations: 166.5 kB / 474.3 MB, free: 7.773 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.156e-05/0.4565, allocations: 25.7 kB / 474.3 MB, free: 7.742 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.4566, allocations: 191.7 kB / 474.5 MB, free: 7.547 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.289e-05/0.4567, allocations: 70.95 kB / 474.6 MB, free: 7.477 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.258e-06/0.4567, allocations: 3.938 kB / 474.6 MB, free: 7.473 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.4568, allocations: 338.8 kB / 474.9 MB, free: 7.133 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.689e-05/0.4569, allocations: 44.56 kB / 474.9 MB, free: 7.09 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001376/0.4571, allocations: 118.3 kB / 475.1 MB, free: 6.941 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001234/0.4572, allocations: 73.66 kB / 475.1 MB, free: 6.871 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.4572, allocations: 3.938 kB / 475.1 MB, free: 6.867 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003401/0.4576, allocations: 205.4 kB / 475.3 MB, free: 6.66 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.4576, allocations: 8 kB / 475.3 MB, free: 6.652 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.4576, allocations: 0 / 475.3 MB, free: 6.652 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.165e-05/0.4576, allocations: 4 kB / 475.3 MB, free: 6.648 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003172/0.458, allocations: 83.8 kB / 475.4 MB, free: 6.566 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.458, allocations: 7.984 kB / 475.4 MB, free: 6.559 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001597/0.4581, allocations: 23.91 kB / 475.5 MB, free: 6.535 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.647e-05/0.4582, allocations: 12 kB / 475.5 MB, free: 6.523 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 9.461e-05/0.4583, allocations: 108.9 kB / 475.6 MB, free: 6.41 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002198/0.4585, allocations: 143.6 kB / 475.7 MB, free: 6.266 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.097e-05/0.4585, allocations: 23.72 kB / 475.7 MB, free: 6.242 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002814/0.4588, allocations: 149.2 kB / 475.9 MB, free: 6.094 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.4588, allocations: 4 kB / 475.9 MB, free: 6.09 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.4589, allocations: 7.938 kB / 475.9 MB, free: 6.082 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.4589, allocations: 0 / 475.9 MB, free: 6.082 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006672/0.4595, allocations: 0.5162 MB / 476.4 MB, free: 5.516 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.4596, allocations: 0 / 476.4 MB, free: 5.516 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002966/0.4599, allocations: 63.89 kB / 476.5 MB, free: 5.453 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.189e-06/0.4599, allocations: 4 kB / 476.5 MB, free: 5.449 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.585e-05/0.4599, allocations: 0 / 476.5 MB, free: 5.449 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.4599, allocations: 4 kB / 476.5 MB, free: 5.445 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.4599, allocations: 4.062 kB / 476.5 MB, free: 5.441 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003916/0.4603, allocations: 340.3 kB / 476.8 MB, free: 5.074 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.672e-05/0.4604, allocations: 96.88 kB / 476.9 MB, free: 4.961 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.2e-05/0.4604, allocations: 3.984 kB / 476.9 MB, free: 4.957 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001696/0.4606, allocations: 16 kB / 476.9 MB, free: 4.941 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.416e-05/0.4607, allocations: 19.91 kB / 476.9 MB, free: 4.922 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.426e-05/0.4607, allocations: 12 kB / 477 MB, free: 4.91 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001047/0.4608, allocations: 124.5 kB / 477.1 MB, free: 4.789 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.793e-06/0.4608, allocations: 0 / 477.1 MB, free: 4.789 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000357/0.4612, allocations: 83.62 kB / 477.2 MB, free: 4.707 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.0007518/0.4619, allocations: 1.019 MB / 478.2 MB, free: 3.648 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002366/0.4622, allocations: 147.8 kB / 478.3 MB, free: 3.504 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.4622, allocations: 0 / 478.3 MB, free: 3.504 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.656e-05/0.4623, allocations: 64.8 kB / 478.4 MB, free: 3.441 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002528/0.4626, allocations: 19.98 kB / 478.4 MB, free: 3.422 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001378/0.4639, allocations: 0.7416 MB / 479.2 MB, free: 2.641 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003616/0.4643, allocations: 0.775 MB / 479.9 MB, free: 1.84 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.841e-05/0.4644, allocations: 22.08 kB / 479.9 MB, free: 1.816 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001243/0.4646, allocations: 91.41 kB / 480 MB, free: 1.727 MB / 346.7 MB Notification: Performance of SimCode: time 3.51e-07/0.4646, allocations: 0 / 480 MB, free: 1.727 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0234/0.488, allocations: 3.524 MB / 483.6 MB, free: 14.23 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001979/0.4882, allocations: 150.7 kB / 483.7 MB, free: 14.03 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.825/2.313, allocations: 4 kB / 483.7 MB, free: 14.03 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ParallelResonance.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat does not exist to compare? outputFormat=mat