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.0008176/0.0008178, allocations: 85.81 kB / 16.32 MB, free: 6.449 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.0007928/0.0007929, allocations: 181.4 kB / 17.21 MB, free: 6.316 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.397/1.397, allocations: 223.3 MB / 241.2 MB, free: 5.434 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002762/0.0002763, allocations: 6.406 kB / 300.9 MB, free: 6.055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1195, allocations: 50.43 MB / 351.3 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance): time 0.005354/0.1249, allocations: 3.133 MB / 354.5 MB, free: 8.465 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003316/0.1283, allocations: 1.294 MB / 355.8 MB, free: 7.164 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002877/0.1286, allocations: 16 kB / 355.8 MB, free: 7.148 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005396/0.1292, allocations: 127.3 kB / 355.9 MB, free: 7.023 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00138/0.1306, allocations: 445 kB / 356.3 MB, free: 6.59 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001053/0.1316, allocations: 347.6 kB / 356.7 MB, free: 6.254 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007481/0.1324, allocations: 426 kB / 357.1 MB, free: 5.836 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001659/0.1341, allocations: 0.6369 MB / 357.7 MB, free: 5.172 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000422/0.1345, allocations: 159.4 kB / 357.9 MB, free: 5.016 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003941/0.1349, allocations: 231 kB / 358.1 MB, free: 4.789 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.201e-05/0.135, allocations: 20 kB / 358.1 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006316/0.1356, allocations: 183.8 kB / 358.3 MB, free: 4.59 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001177/0.1357, allocations: 79.62 kB / 358.4 MB, free: 4.512 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000143/0.1359, allocations: 101.5 kB / 358.5 MB, free: 4.406 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007854/0.1367, allocations: 0.5025 MB / 359 MB, free: 3.902 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.035e-05/0.1367, allocations: 4 kB / 359 MB, free: 3.898 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1367, allocations: 0 / 359 MB, free: 3.898 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.676e-06/0.1368, allocations: 0 / 359 MB, free: 3.898 MB / 286.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.002616/0.1394, allocations: 0.8271 MB / 359.8 MB, free: 3.016 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.263e-05/0.1395, allocations: 8.031 kB / 359.8 MB, free: 3.008 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002197/0.1397, allocations: 95.73 kB / 359.9 MB, free: 2.906 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005232/0.1449, allocations: 498.9 kB / 360.4 MB, free: 2.418 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000651/0.1456, allocations: 306.3 kB / 360.7 MB, free: 2.078 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.787e-05/0.1457, allocations: 37.31 kB / 360.8 MB, free: 2.043 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001252/0.1458, allocations: 60 kB / 360.8 MB, free: 1.984 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001431/0.1473, allocations: 0.5102 MB / 361.3 MB, free: 1.465 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.83e-05/0.1473, allocations: 7.906 kB / 361.3 MB, free: 1.457 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.641e-05/0.1474, allocations: 23.95 kB / 361.4 MB, free: 1.434 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.37e-05/0.1474, allocations: 15.94 kB / 361.4 MB, free: 1.418 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001485/0.1489, allocations: 0.5751 MB / 361.9 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003991/0.1529, allocations: 1.889 MB / 363.8 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002883/0.1558, allocations: 2.183 MB / 366 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000514/0.1564, allocations: 232.2 kB / 366.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001111/0.1565, allocations: 89.53 kB / 366.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.236e-05/0.1565, allocations: 39 kB / 366.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 5.26e-06/0.1565, allocations: 3.984 kB / 366.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=47): time 0.002667/0.1592, allocations: 0.8051 MB / 367.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.543e-05/0.1593, allocations: 55.84 kB / 367.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002499/0.1596, allocations: 182.3 kB / 367.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.592e-05/0.1596, allocations: 33.7 kB / 367.4 MB, free: 10.76 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.1598, allocations: 220.4 kB / 367.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001684/0.16, allocations: 165.6 kB / 367.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.091e-05/0.16, allocations: 8 kB / 367.8 MB, free: 10.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.1602, allocations: 338.8 kB / 368.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004252/0.1606, allocations: 149.1 kB / 368.3 MB, free: 9.879 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000513/0.1612, allocations: 236.8 kB / 368.5 MB, free: 9.629 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000501/0.1617, allocations: 176.8 kB / 368.7 MB, free: 9.457 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.291e-06/0.1617, allocations: 4 kB / 368.7 MB, free: 9.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001322/0.163, allocations: 0.5356 MB / 369.2 MB, free: 8.906 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/0.1631, allocations: 8 kB / 369.3 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.1631, allocations: 0 / 369.3 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004511/0.1635, allocations: 96.84 kB / 369.3 MB, free: 8.801 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005443/0.1641, allocations: 91.84 kB / 369.4 MB, free: 8.711 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00263/0.1667, allocations: 1.846 MB / 371.3 MB, free: 6.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000391/0.1671, allocations: 51.59 kB / 371.3 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.322e-05/0.1672, allocations: 19.98 kB / 371.4 MB, free: 6.66 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.0003324/0.1676, allocations: 165.7 kB / 371.5 MB, free: 6.488 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.1677, allocations: 27.67 kB / 371.5 MB, free: 6.461 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001534/0.1692, allocations: 0.5551 MB / 372.1 MB, free: 5.902 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/0.1692, allocations: 8 kB / 372.1 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.1692, allocations: 0 / 372.1 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.1693, allocations: 3.984 kB / 372.1 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002452/0.1717, allocations: 1.144 MB / 373.3 MB, free: 4.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.79e-06/0.1718, allocations: 0 / 373.3 MB, free: 4.684 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004878/0.1723, allocations: 75.91 kB / 373.3 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003114/0.1726, allocations: 88.73 kB / 373.4 MB, free: 4.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.772e-05/0.1726, allocations: 8 kB / 373.4 MB, free: 4.512 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0019/0.1745, allocations: 1.839 MB / 375.3 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1745, allocations: 0 / 375.3 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001904/0.1765, allocations: 0.8042 MB / 376.1 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001129/0.1766, allocations: 112.6 kB / 376.2 MB, free: 1.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.618e-05/0.1766, allocations: 12.06 kB / 376.2 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002984/0.177, allocations: 23.94 kB / 376.2 MB, free: 1.555 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/0.1771, allocations: 40.33 kB / 376.2 MB, free: 1.512 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-05/0.1771, allocations: 12 kB / 376.3 MB, free: 1.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001745/0.1773, allocations: 136.2 kB / 376.4 MB, free: 1.367 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1773, allocations: 0 / 376.4 MB, free: 1.367 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009391/0.1783, allocations: 151.5 kB / 376.5 MB, free: 1.219 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.002374/0.1807, allocations: 1.38 MB / 377.9 MB, free: 15.81 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001444/0.1821, allocations: 0.5737 MB / 378.5 MB, free: 15.22 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.1821, allocations: 0 / 378.5 MB, free: 15.22 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007733/0.1829, allocations: 389.3 kB / 378.9 MB, free: 14.83 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005899/0.1835, allocations: 39.94 kB / 378.9 MB, free: 14.79 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004718/0.1882, allocations: 2.118 MB / 381 MB, free: 12.59 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005429/0.1888, allocations: 0.8162 MB / 381.8 MB, free: 11.75 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003614/0.1892, allocations: 46.94 kB / 381.9 MB, free: 11.71 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002904/0.1895, allocations: 135.4 kB / 382 MB, free: 11.57 MB / 318.1 MB Notification: Performance of SimCode: time 1.022e-06/0.1895, allocations: 0 / 382 MB, free: 11.57 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0275/0.217, allocations: 6.868 MB / 388.9 MB, free: 4.926 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002308/0.2173, allocations: 230.8 kB / 389.1 MB, free: 4.684 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.954/2.172, allocations: 0 / 389.1 MB, free: 4.684 MB / 318.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