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.001139/0.001139, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.428/1.428, allocations: 221.4 MB / 235.5 MB, free: 2.977 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.0008438/0.0008438, allocations: 93.98 kB / 286.5 MB, free: 244 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.594e-05/2.604e-05, allocations: 4 kB / 343.9 MB, free: 4.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1045, allocations: 50.41 MB / 394.3 MB, free: 1.781 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3296/0.4341, allocations: 79.34 MB / 473.7 MB, free: 8.062 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000194/0.4344, allocations: 67.97 kB / 473.7 MB, free: 7.996 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01333/0.4477, allocations: 5.103 MB / 478.8 MB, free: 2.883 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4478, allocations: 0 / 478.8 MB, free: 2.883 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.079e-05/0.4478, allocations: 8 kB / 478.9 MB, free: 2.875 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.0007392/0.4485, allocations: 0.5421 MB / 479.4 MB, free: 2.289 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.4486, allocations: 8.031 kB / 479.4 MB, free: 2.281 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.072e-05/0.4487, allocations: 70.53 kB / 479.5 MB, free: 2.203 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.393e-05/0.4487, allocations: 39.53 kB / 479.5 MB, free: 2.164 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002786/0.449, allocations: 254.5 kB / 479.8 MB, free: 1.875 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.567e-05/0.4491, allocations: 32.77 kB / 479.8 MB, free: 1.844 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.705e-05/0.4491, allocations: 28 kB / 479.8 MB, free: 1.816 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004542/0.4496, allocations: 255.8 kB / 480.1 MB, free: 1.559 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.4496, allocations: 3.938 kB / 480.1 MB, free: 1.555 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.469e-05/0.4496, allocations: 16 kB / 480.1 MB, free: 1.539 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.838e-06/0.4497, allocations: 8 kB / 480.1 MB, free: 1.531 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000319/0.45, allocations: 163.1 kB / 480.3 MB, free: 1.367 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00165/0.4516, allocations: 1.019 MB / 481.3 MB, free: 280 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002528/0.4519, allocations: 146.7 kB / 481.4 MB, free: 124 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.452, allocations: 70.22 kB / 481.5 MB, free: 52 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.236e-05/0.4521, allocations: 0 / 481.5 MB, free: 52 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.249e-05/0.4521, allocations: 34.56 kB / 481.5 MB, free: 8 kB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.222e-06/0.4521, allocations: 0 / 481.5 MB, free: 8 kB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003224/0.4524, allocations: 133.8 kB / 481.7 MB, free: 15.87 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.804e-05/0.4525, allocations: 63.39 kB / 481.7 MB, free: 15.79 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001689/0.4527, allocations: 185.9 kB / 481.9 MB, free: 15.61 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.4527, allocations: 29.7 kB / 481.9 MB, free: 15.57 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.725e-05/0.4528, allocations: 191.7 kB / 482.1 MB, free: 15.38 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.627e-05/0.4528, allocations: 63.09 kB / 482.2 MB, free: 15.32 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.178e-06/0.4529, allocations: 4 kB / 482.2 MB, free: 15.32 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.453, allocations: 334.8 kB / 482.5 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.599e-05/0.4531, allocations: 52 kB / 482.6 MB, free: 14.93 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001238/0.4532, allocations: 102.5 kB / 482.7 MB, free: 14.81 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000116/0.4533, allocations: 61.06 kB / 482.7 MB, free: 14.75 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.4533, allocations: 0 / 482.7 MB, free: 14.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003221/0.4537, allocations: 218.7 kB / 482.9 MB, free: 14.53 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.4537, allocations: 15.94 kB / 482.9 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.4537, allocations: 0 / 482.9 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.4537, allocations: 4 kB / 482.9 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002852/0.454, allocations: 63.91 kB / 483 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.454, allocations: 4 kB / 483 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001504/0.4542, allocations: 39.61 kB / 483.1 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.716e-05/0.4542, allocations: 12.12 kB / 483.1 MB, free: 14.39 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 () * 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 8.548e-05/0.4543, allocations: 116.9 kB / 483.2 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.052e-05/0.4544, allocations: 15.81 kB / 483.2 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002971/0.4547, allocations: 159.8 kB / 483.4 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.4547, allocations: 3.984 kB / 483.4 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.4547, allocations: 3.953 kB / 483.4 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.4547, allocations: 0 / 483.4 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003898/0.4551, allocations: 317.3 kB / 483.7 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.4551, allocations: 3.984 kB / 483.7 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002844/0.4554, allocations: 63.91 kB / 483.7 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.686e-06/0.4554, allocations: 3.938 kB / 483.7 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.823e-05/0.4554, allocations: 4 kB / 483.7 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.4554, allocations: 4 kB / 483.7 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4555, allocations: 7.953 kB / 483.8 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003852/0.4558, allocations: 309.7 kB / 484.1 MB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.787e-05/0.4559, allocations: 92.92 kB / 484.1 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.12e-05/0.456, allocations: 8.062 kB / 484.2 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001733/0.4561, allocations: 15.98 kB / 484.2 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.143e-05/0.4562, allocations: 15.94 kB / 484.2 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.108e-05/0.4562, allocations: 4 kB / 484.2 MB, free: 13.18 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001329/0.4563, allocations: 152.4 kB / 484.3 MB, free: 13.03 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4564, allocations: 4 kB / 484.3 MB, free: 13.02 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002992/0.4567, allocations: 83.69 kB / 484.4 MB, free: 12.94 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 () * 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.0006678/0.4573, allocations: 0.8458 MB / 485.3 MB, free: 12.07 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002591/0.4576, allocations: 138.7 kB / 485.4 MB, free: 11.94 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4576, allocations: 256 / 485.4 MB, free: 11.94 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.676e-05/0.4577, allocations: 63.94 kB / 485.5 MB, free: 11.88 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000239/0.458, allocations: 26.05 kB / 485.5 MB, free: 11.85 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001297/0.4593, allocations: 0.7549 MB / 486.2 MB, free: 11.06 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00032/0.4596, allocations: 0.7755 MB / 487 MB, free: 10.26 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.137e-05/0.4597, allocations: 14.08 kB / 487 MB, free: 10.24 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001161/0.4598, allocations: 99.39 kB / 487.1 MB, free: 10.14 MB / 362.7 MB Notification: Performance of SimCode: time 3.51e-07/0.4598, allocations: 0 / 487.1 MB, free: 10.14 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01649/0.4763, allocations: 4.04 MB / 491.2 MB, free: 6.242 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002017/0.4766, allocations: 151.2 kB / 491.3 MB, free: 6.023 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.613/2.09, allocations: 0 / 491.3 MB, free: 6.023 MB / 362.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