Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001244/0.001244, allocations: 98.23 kB / 16.3 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001511/0.001511, allocations: 182.6 kB / 17.2 MB, free: 5.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.541/1.541, allocations: 223.2 MB / 241.1 MB, free: 300 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000311/0.0003113, allocations: 4 kB / 300.8 MB, free: 6.359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1394, allocations: 50.43 MB / 351.2 MB, free: 3.922 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance): time 0.004109/0.1436, allocations: 2.967 MB / 354.2 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003164/0.1468, allocations: 1.309 MB / 355.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000309/0.1472, allocations: 8 kB / 355.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005378/0.1477, allocations: 123.3 kB / 355.6 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001375/0.1491, allocations: 473.9 kB / 356.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008313/0.15, allocations: 354.7 kB / 356.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005442/0.1505, allocations: 319.2 kB / 356.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001307/0.1518, allocations: 0.6174 MB / 357.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003386/0.1522, allocations: 167.4 kB / 357.5 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002586/0.1524, allocations: 219.1 kB / 357.8 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.932e-05/0.1525, allocations: 20 kB / 357.8 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004687/0.153, allocations: 155.8 kB / 357.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.183e-05/0.1531, allocations: 75.72 kB / 358 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.916e-05/0.1532, allocations: 105.5 kB / 358.1 MB, free: 13 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006402/0.1538, allocations: 0.5066 MB / 358.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1538, allocations: 0 / 358.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1538, allocations: 0 / 358.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.828e-06/0.1538, allocations: 0 / 358.6 MB, free: 12.49 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.002293/0.1561, allocations: 0.8154 MB / 359.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/0.1562, allocations: 8.031 kB / 359.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001599/0.1564, allocations: 103.7 kB / 359.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003341/0.1597, allocations: 498.9 kB / 360 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005787/0.1603, allocations: 298.5 kB / 360.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.692e-05/0.1604, allocations: 41.31 kB / 360.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/0.1605, allocations: 55.91 kB / 360.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/0.1615, allocations: 0.5218 MB / 360.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.141e-05/0.1616, allocations: 3.938 kB / 360.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.726e-05/0.1616, allocations: 23.95 kB / 361 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.524e-05/0.1617, allocations: 15.94 kB / 361 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001037/0.1627, allocations: 0.5751 MB / 361.6 MB, free: 9.441 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00322/0.1659, allocations: 1.877 MB / 363.4 MB, free: 7.449 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002222/0.1682, allocations: 2.194 MB / 365.6 MB, free: 4.871 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001018/0.1683, allocations: 101.5 kB / 365.7 MB, free: 4.754 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.432e-05/0.1684, allocations: 35 kB / 365.8 MB, free: 4.711 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.505e-06/0.1684, allocations: 3.938 kB / 365.8 MB, free: 4.707 MB / 302.1 MB Notification: Performance of matching and sorting (n=47): time 0.002001/0.1704, allocations: 0.8092 MB / 366.6 MB, free: 3.867 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.74e-05/0.1705, allocations: 55.84 kB / 366.6 MB, free: 3.801 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002081/0.1707, allocations: 182.3 kB / 366.8 MB, free: 3.613 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.825e-05/0.1707, allocations: 33.7 kB / 366.8 MB, free: 3.574 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/0.1709, allocations: 220.4 kB / 367.1 MB, free: 3.355 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001445/0.171, allocations: 153.7 kB / 367.2 MB, free: 3.203 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.74e-05/0.1711, allocations: 16 kB / 367.2 MB, free: 3.188 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.1712, allocations: 330.8 kB / 367.5 MB, free: 2.855 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000291/0.1715, allocations: 157 kB / 367.7 MB, free: 2.699 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003427/0.1718, allocations: 224.8 kB / 367.9 MB, free: 2.461 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003374/0.1722, allocations: 184.7 kB / 368.1 MB, free: 2.285 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.1722, allocations: 0 / 368.1 MB, free: 2.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001041/0.1733, allocations: 0.5473 MB / 368.6 MB, free: 1.727 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.401e-05/0.1733, allocations: 8 kB / 368.6 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.1733, allocations: 0 / 368.6 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004589/0.1738, allocations: 84.81 kB / 368.7 MB, free: 1.633 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000392/0.1742, allocations: 107.8 kB / 368.8 MB, free: 1.527 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2527/0.4269, allocations: 1.854 MB / 370.7 MB, free: 23.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004045/0.4274, allocations: 44.59 kB / 370.7 MB, free: 23.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.752e-05/0.4275, allocations: 20.27 kB / 370.8 MB, free: 23.22 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (50): * Single equations (assignments): 49 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000278/0.4277, allocations: 169.7 kB / 370.9 MB, free: 23.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.057e-05/0.4278, allocations: 23.69 kB / 370.9 MB, free: 23.11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001321/0.4291, allocations: 0.5595 MB / 371.5 MB, free: 23.06 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/0.4292, allocations: 5.719 kB / 371.5 MB, free: 23.06 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.4292, allocations: 5.188 kB / 371.5 MB, free: 23.06 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.4292, allocations: 6.578 kB / 371.5 MB, free: 23.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002051/0.4312, allocations: 1.137 MB / 372.7 MB, free: 22.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.4313, allocations: 8.312 kB / 372.7 MB, free: 22.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003769/0.4317, allocations: 76.8 kB / 372.7 MB, free: 22.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003223/0.432, allocations: 88.06 kB / 372.8 MB, free: 22.71 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.658e-05/0.432, allocations: 14.16 kB / 372.8 MB, free: 22.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001863/0.4339, allocations: 1.855 MB / 374.7 MB, free: 21.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.4339, allocations: 4.375 kB / 374.7 MB, free: 21.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001395/0.4353, allocations: 0.812 MB / 375.5 MB, free: 21.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.263e-05/0.4354, allocations: 103.8 kB / 375.6 MB, free: 20.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.125e-05/0.4355, allocations: 12.3 kB / 375.6 MB, free: 20.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002485/0.4357, allocations: 17.14 kB / 375.6 MB, free: 20.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/0.4358, allocations: 40.91 kB / 375.7 MB, free: 20.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.836e-05/0.4359, allocations: 18.75 kB / 375.7 MB, free: 20.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001167/0.436, allocations: 136.3 kB / 375.8 MB, free: 20.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.436, allocations: 0 / 375.8 MB, free: 20.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006748/0.4367, allocations: 150.3 kB / 376 MB, free: 20.82 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * 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 (42): * Single equations (assignments): 41 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001702/0.4384, allocations: 1.375 MB / 377.4 MB, free: 19.87 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001149/0.4396, allocations: 0.5712 MB / 377.9 MB, free: 19.6 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.4396, allocations: 1.375 kB / 377.9 MB, free: 19.6 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005795/0.4402, allocations: 388.7 kB / 378.3 MB, free: 19.39 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003194/0.4405, allocations: 18.33 kB / 378.3 MB, free: 19.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003824/0.4444, allocations: 3.201 MB / 381.5 MB, free: 17.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003617/0.4448, allocations: 0.8194 MB / 382.3 MB, free: 16.37 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002356/0.445, allocations: 47.27 kB / 382.4 MB, free: 16.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000187/0.4452, allocations: 134 kB / 382.5 MB, free: 16.26 MB / 302.1 MB Notification: Performance of SimCode: time 1.253e-06/0.4452, allocations: 0.9688 kB / 382.5 MB, free: 16.26 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02263/0.4678, allocations: 6.833 MB / 389.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001774/0.4681, allocations: 226.1 kB / 389.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.967/2.435, allocations: 0 / 389.6 MB, free: 14.54 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance_res.mat does not exist to compare? outputFormat=mat