Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002372/0.002372, allocations: 186.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.095/2.095, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001213/0.001213, allocations: 82.89 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003964/0.0003966, allocations: 11.98 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.103, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance): time 0.005645/0.1087, allocations: 3.011 MB / 377.7 MB, free: 12.3 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003804/0.1125, allocations: 1.369 MB / 379 MB, free: 10.93 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004376/0.113, allocations: 8 kB / 379 MB, free: 10.92 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000585/0.1136, allocations: 123.3 kB / 379.2 MB, free: 10.8 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002074/0.1157, allocations: 490.5 kB / 379.6 MB, free: 10.32 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001398/0.1172, allocations: 346.9 kB / 380 MB, free: 9.977 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009594/0.1181, allocations: 335.1 kB / 380.3 MB, free: 9.648 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002196/0.1204, allocations: 0.6958 MB / 381 MB, free: 8.926 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005296/0.1209, allocations: 179.3 kB / 381.2 MB, free: 8.75 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004496/0.1214, allocations: 235.1 kB / 381.4 MB, free: 8.52 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.418e-05/0.1215, allocations: 20 kB / 381.4 MB, free: 8.5 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006301/0.1221, allocations: 163.8 kB / 381.6 MB, free: 8.34 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001098/0.1222, allocations: 83.66 kB / 381.7 MB, free: 8.258 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001412/0.1224, allocations: 101.5 kB / 381.8 MB, free: 8.152 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00102/0.1234, allocations: 0.5301 MB / 382.3 MB, free: 7.621 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.1235, allocations: 0 / 382.3 MB, free: 7.621 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1235, allocations: 3.938 kB / 382.3 MB, free: 7.617 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.797e-06/0.1235, allocations: 0 / 382.3 MB, free: 7.617 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.003147/0.1266, allocations: 0.8388 MB / 383.1 MB, free: 6.73 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.704e-05/0.1267, allocations: 11.97 kB / 383.1 MB, free: 6.719 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002816/0.127, allocations: 103.8 kB / 383.2 MB, free: 6.609 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006477/0.1335, allocations: 0.5965 MB / 383.8 MB, free: 6.012 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007552/0.1343, allocations: 318.3 kB / 384.2 MB, free: 5.66 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.598e-05/0.1344, allocations: 45.31 kB / 384.2 MB, free: 5.613 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001611/0.1346, allocations: 56 kB / 384.3 MB, free: 5.559 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001838/0.1364, allocations: 0.5726 MB / 384.8 MB, free: 4.98 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.489e-05/0.1365, allocations: 0 / 384.8 MB, free: 4.98 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.613e-05/0.1366, allocations: 24 kB / 384.8 MB, free: 4.957 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.305e-05/0.1366, allocations: 16 kB / 384.9 MB, free: 4.941 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002043/0.1387, allocations: 0.6532 MB / 385.5 MB, free: 4.289 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005655/0.1444, allocations: 2.067 MB / 387.6 MB, free: 2.098 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2643/0.4087, allocations: 2.987 MB / 390.6 MB, free: 17.5 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002023/0.409, allocations: 91.34 kB / 390.7 MB, free: 17.41 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.779e-05/0.409, allocations: 37.78 kB / 390.7 MB, free: 17.37 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 4.469e-06/0.409, allocations: 0 / 390.7 MB, free: 17.37 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.00336/0.4124, allocations: 0.7753 MB / 391.5 MB, free: 17.22 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.013e-05/0.4125, allocations: 60.64 kB / 391.5 MB, free: 17.16 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003689/0.4129, allocations: 202.4 kB / 391.7 MB, free: 17.06 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.525e-05/0.413, allocations: 33.61 kB / 391.8 MB, free: 17.03 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001816/0.4132, allocations: 306.3 kB / 392.1 MB, free: 16.82 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001904/0.4134, allocations: 171.2 kB / 392.2 MB, free: 16.71 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.609e-05/0.4134, allocations: 9.844 kB / 392.2 MB, free: 16.71 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.611e-05/0.4135, allocations: 332.9 kB / 392.6 MB, free: 16.4 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006142/0.4142, allocations: 169.6 kB / 392.7 MB, free: 16.39 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006409/0.4148, allocations: 290.1 kB / 393 MB, free: 16.28 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006414/0.4155, allocations: 202.3 kB / 393.2 MB, free: 16.28 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.345e-06/0.4155, allocations: 7.562 kB / 393.2 MB, free: 16.27 MB / 282.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001853/0.4174, allocations: 0.5972 MB / 393.8 MB, free: 16.07 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.584e-05/0.4174, allocations: 11.59 kB / 393.8 MB, free: 16.06 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.655e-05/0.4175, allocations: 2.969 kB / 393.8 MB, free: 16.06 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005659/0.418, allocations: 79.25 kB / 393.9 MB, free: 16.04 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009056/0.419, allocations: 117.5 kB / 394 MB, free: 16.03 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00243/0.4214, allocations: 1.662 MB / 395.7 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000587/0.4221, allocations: 56 kB / 395.7 MB, free: 14.52 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.219e-05/0.4221, allocations: 25.84 kB / 395.8 MB, free: 14.51 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (60): * Single equations (assignments): 59 * 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%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003086/0.4225, allocations: 171.9 kB / 395.9 MB, free: 14.36 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.25e-05/0.4226, allocations: 32.89 kB / 396 MB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001967/0.4245, allocations: 0.5697 MB / 396.5 MB, free: 14.08 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.732e-05/0.4246, allocations: 9.234 kB / 396.5 MB, free: 14.08 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.383e-06/0.4246, allocations: 3.156 kB / 396.5 MB, free: 14.08 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.403e-05/0.4247, allocations: 6.609 kB / 396.6 MB, free: 14.08 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003003/0.4277, allocations: 1.183 MB / 397.7 MB, free: 13.41 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/0.4277, allocations: 0 / 397.7 MB, free: 13.41 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008615/0.4286, allocations: 85.88 kB / 397.8 MB, free: 13.4 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000534/0.4292, allocations: 83.72 kB / 397.9 MB, free: 13.37 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.246e-05/0.4293, allocations: 9.625 kB / 397.9 MB, free: 13.37 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002334/0.4316, allocations: 1.66 MB / 399.6 MB, free: 11.88 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.4317, allocations: 4.969 kB / 399.6 MB, free: 11.88 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002472/0.4341, allocations: 0.8404 MB / 400.4 MB, free: 11.43 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001556/0.4344, allocations: 112.6 kB / 400.5 MB, free: 11.32 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.413e-05/0.4344, allocations: 14.83 kB / 400.5 MB, free: 11.31 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004249/0.4349, allocations: 22.02 kB / 400.6 MB, free: 11.3 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001785/0.4351, allocations: 39.17 kB / 400.6 MB, free: 11.3 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.726e-05/0.4351, allocations: 14.09 kB / 400.6 MB, free: 11.29 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000201/0.4354, allocations: 146.2 kB / 400.8 MB, free: 11.2 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.4354, allocations: 4.062 kB / 400.8 MB, free: 11.19 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009325/0.4363, allocations: 154.9 kB / 400.9 MB, free: 11.15 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.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 (46): * Single equations (assignments): 45 * 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%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002859/0.4392, allocations: 1.407 MB / 402.3 MB, free: 10.18 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001932/0.4412, allocations: 0.6118 MB / 402.9 MB, free: 9.891 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.371e-06/0.4412, allocations: 0 / 402.9 MB, free: 9.891 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001062/0.4423, allocations: 398.7 kB / 403.3 MB, free: 9.672 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000448/0.4428, allocations: 26.66 kB / 403.3 MB, free: 9.652 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006309/0.4491, allocations: 4.28 MB / 407.6 MB, free: 6.305 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004094/0.4496, allocations: 0.8255 MB / 408.4 MB, free: 5.605 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004214/0.45, allocations: 150 kB / 408.6 MB, free: 5.5 MB / 282.7 MB Notification: Performance of SimCode: time 1.744e-06/0.45, allocations: 0 / 408.6 MB, free: 5.5 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.849/3.299, allocations: 8.337 MB / 416.9 MB, free: 2.473 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_ParallelResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_ParallelResonance.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.ParallelResonance_res.mat does not exist to compare? outputFormat=mat