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.001209/0.001209, allocations: 179.9 kB / 16.38 MB, free: 5.766 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.467/1.467, allocations: 223.2 MB / 240.3 MB, free: 11.91 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.0009022/0.0009022, allocations: 84.22 kB / 291.5 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002764/0.0002764, allocations: 15.92 kB / 351.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.263, allocations: 50.41 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1017/0.3647, allocations: 79.37 MB / 481 MB, free: 1.105 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002865/0.3651, allocations: 78.17 kB / 481 MB, free: 1.031 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01326/0.3784, allocations: 5.14 MB / 486.2 MB, free: 11.88 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.906e-06/0.3784, allocations: 4 kB / 486.2 MB, free: 11.87 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.646e-05/0.3784, allocations: 11.94 kB / 486.2 MB, free: 11.86 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.0008421/0.3793, allocations: 0.5807 MB / 486.8 MB, free: 11.23 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.3793, allocations: 12.03 kB / 486.8 MB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.103e-05/0.3794, allocations: 66.48 kB / 486.8 MB, free: 11.14 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.041e-05/0.3795, allocations: 39.61 kB / 486.9 MB, free: 11.1 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003077/0.3798, allocations: 254.5 kB / 487.1 MB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.718e-05/0.3798, allocations: 28.66 kB / 487.2 MB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.675e-05/0.3799, allocations: 28 kB / 487.2 MB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004995/0.3804, allocations: 282.1 kB / 487.5 MB, free: 10.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.3804, allocations: 3.984 kB / 487.5 MB, free: 10.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.813e-05/0.3805, allocations: 15.94 kB / 487.5 MB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.363e-06/0.3805, allocations: 8 kB / 487.5 MB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004388/0.3809, allocations: 218.5 kB / 487.7 MB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001589/0.3825, allocations: 1.049 MB / 488.8 MB, free: 9.117 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003304/0.3829, allocations: 174.8 kB / 488.9 MB, free: 8.938 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.203e-05/0.3829, allocations: 7.938 kB / 488.9 MB, free: 8.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.175e-05/0.3829, allocations: 42.56 kB / 489 MB, free: 8.879 MB / 362.7 MB Notification: Performance of pre-optimization done (n=19): time 1.473e-06/0.3829, allocations: 0 / 489 MB, free: 8.879 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.0005838/0.3835, allocations: 256.2 kB / 489.2 MB, free: 8.625 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.007e-05/0.3836, allocations: 51.41 kB / 489.3 MB, free: 8.562 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001919/0.3838, allocations: 194.3 kB / 489.5 MB, free: 8.367 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.218e-05/0.3838, allocations: 33.64 kB / 489.5 MB, free: 8.328 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.3839, allocations: 188 kB / 489.7 MB, free: 8.141 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.974e-05/0.384, allocations: 71 kB / 489.8 MB, free: 8.07 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.311e-05/0.384, allocations: 8 kB / 489.8 MB, free: 8.062 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.3841, allocations: 334.8 kB / 490.1 MB, free: 7.727 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001708/0.3843, allocations: 76.52 kB / 490.2 MB, free: 7.652 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002005/0.3845, allocations: 137.7 kB / 490.3 MB, free: 7.492 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001945/0.3847, allocations: 104.6 kB / 490.4 MB, free: 7.391 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.3847, allocations: 0 / 490.4 MB, free: 7.391 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004801/0.3852, allocations: 289 kB / 490.7 MB, free: 7.102 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.3852, allocations: 4 kB / 490.7 MB, free: 7.098 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.3853, allocations: 4 kB / 490.7 MB, free: 7.094 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.3853, allocations: 4 kB / 490.7 MB, free: 7.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003057/0.3856, allocations: 71.89 kB / 490.8 MB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.3856, allocations: 4.188 kB / 490.8 MB, free: 7.016 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001517/0.3858, allocations: 39.67 kB / 490.8 MB, free: 6.977 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.953e-05/0.3858, allocations: 12 kB / 490.8 MB, free: 6.965 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (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 0.0001251/0.3859, allocations: 137.8 kB / 490.9 MB, free: 6.82 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.594e-05/0.386, allocations: 27.67 kB / 491 MB, free: 6.793 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004317/0.3864, allocations: 219 kB / 491.2 MB, free: 6.566 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.3864, allocations: 4 kB / 491.2 MB, free: 6.562 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.3864, allocations: 0 / 491.2 MB, free: 6.562 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.3865, allocations: 3.984 kB / 491.2 MB, free: 6.559 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003428/0.3868, allocations: 333.5 kB / 491.5 MB, free: 6.184 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.3868, allocations: 0 / 491.5 MB, free: 6.184 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002989/0.3871, allocations: 55.97 kB / 491.6 MB, free: 6.129 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.3871, allocations: 4 kB / 491.6 MB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.122e-05/0.3872, allocations: 11.89 kB / 491.6 MB, free: 6.113 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.3872, allocations: 3.938 kB / 491.6 MB, free: 6.109 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.3872, allocations: 4 kB / 491.6 MB, free: 6.105 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005677/0.3877, allocations: 393.3 kB / 492 MB, free: 5.703 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.22e-05/0.3878, allocations: 96.92 kB / 492.1 MB, free: 5.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.123e-05/0.3879, allocations: 4 kB / 492.1 MB, free: 5.586 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001756/0.388, allocations: 23.94 kB / 492.1 MB, free: 5.562 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.087e-05/0.3881, allocations: 19.97 kB / 492.1 MB, free: 5.543 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.3881, allocations: 8 kB / 492.1 MB, free: 5.535 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000127/0.3882, allocations: 148.7 kB / 492.3 MB, free: 5.391 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3882, allocations: 0 / 492.3 MB, free: 5.391 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003206/0.3886, allocations: 83.69 kB / 492.4 MB, free: 5.309 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 () * Number of clocked 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.0009225/0.3895, allocations: 0.9256 MB / 493.3 MB, free: 4.359 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004031/0.3899, allocations: 191.8 kB / 493.5 MB, free: 4.172 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3899, allocations: 0 / 493.5 MB, free: 4.172 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001709/0.3901, allocations: 88.27 kB / 493.6 MB, free: 4.086 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002974/0.3904, allocations: 28.62 kB / 493.6 MB, free: 4.059 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00316/0.3936, allocations: 3.096 MB / 496.7 MB, free: 0.8828 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003102/0.3939, allocations: 0.7713 MB / 497.5 MB, free: 84 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.992e-05/0.394, allocations: 25.94 kB / 497.5 MB, free: 56 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000141/0.3942, allocations: 91.48 kB / 497.6 MB, free: 15.96 MB / 378.7 MB Notification: Performance of SimCode: time 4.81e-07/0.3942, allocations: 0 / 497.6 MB, free: 15.96 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01502/0.4092, allocations: 4.188 MB / 0.49 GB, free: 11.93 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001721/0.4094, allocations: 188.5 kB / 0.4902 GB, free: 11.69 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.839/2.248, allocations: 0 / 0.4902 GB, free: 11.69 MB / 378.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