Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00137/0.00137, allocations: 118.2 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001489/0.001489, allocations: 197.2 kB / 18.73 MB, free: 4.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.504/1.504, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.235/0.235, allocations: 46.12 MB / 344.4 MB, free: 11.45 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.003719/0.003719, allocations: 79.86 kB / 480.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4727/0.4764, allocations: 62.44 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.009021/0.4854, allocations: 7.742 MB / 0.5382 GB, free: 7.215 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004997/0.4905, allocations: 2.426 MB / 0.5405 GB, free: 5.234 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009174/0.4914, allocations: 32.88 kB / 0.5406 GB, free: 5.227 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004301/0.4958, allocations: 1.811 MB / 0.5423 GB, free: 3.863 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003176/0.499, allocations: 0.704 MB / 0.543 GB, free: 3.309 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002871/0.5018, allocations: 1.085 MB / 0.5441 GB, free: 2.504 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003097/0.505, allocations: 1.407 MB / 0.5455 GB, free: 1.664 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002111/0.5071, allocations: 0.9983 MB / 0.5464 GB, free: 1.047 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001359/0.5085, allocations: 0.6084 MB / 0.547 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001031/0.5095, allocations: 0.7355 MB / 0.5477 GB, free: 152 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000179/0.5097, allocations: 112 kB / 0.5478 GB, free: 40 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00105/0.5108, allocations: 331.8 kB / 0.5482 GB, free: 15.71 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002758/0.511, allocations: 306.8 kB / 0.5485 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007254/0.5118, allocations: 0.6491 MB / 0.5491 GB, free: 14.76 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002678/0.5145, allocations: 1.773 MB / 0.5508 GB, free: 12.98 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.5145, allocations: 0 / 0.5508 GB, free: 12.98 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.256e-06/0.5145, allocations: 0 / 0.5508 GB, free: 12.98 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.075e-05/0.5145, allocations: 0 / 0.5508 GB, free: 12.98 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 339 * Number of variables: 339 Notification: Performance of Generate backend data structure: time 0.008041/0.5226, allocations: 2.41 MB / 0.5532 GB, free: 10.52 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.5226, allocations: 12.03 kB / 0.5532 GB, free: 10.51 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003113/0.523, allocations: 194.7 kB / 0.5534 GB, free: 10.31 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009661/0.5326, allocations: 1.331 MB / 0.5547 GB, free: 8.977 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001322/0.534, allocations: 0.621 MB / 0.5553 GB, free: 8.316 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.575e-05/0.5341, allocations: 103 kB / 0.5554 GB, free: 8.215 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002269/0.5343, allocations: 136.1 kB / 0.5555 GB, free: 8.082 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002707/0.5371, allocations: 1.494 MB / 0.557 GB, free: 6.539 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.968e-05/0.5371, allocations: 3.953 kB / 0.557 GB, free: 6.535 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001559/0.5373, allocations: 56 kB / 0.557 GB, free: 6.48 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.581e-05/0.5373, allocations: 35.98 kB / 0.5571 GB, free: 6.445 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002757/0.5401, allocations: 1.521 MB / 0.5585 GB, free: 4.918 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008524/0.5486, allocations: 5.612 MB / 0.564 GB, free: 14.98 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002628/0.5513, allocations: 2.182 MB / 0.5662 GB, free: 12.55 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001037/0.5523, allocations: 0.6545 MB / 0.5668 GB, free: 11.9 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000207/0.5526, allocations: 203.1 kB / 0.567 GB, free: 11.66 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.784e-05/0.5526, allocations: 43.56 kB / 0.567 GB, free: 11.61 MB / 430.1 MB Notification: Performance of pre-optimization done (n=127): time 3.066e-06/0.5526, allocations: 0 / 0.567 GB, free: 11.61 MB / 430.1 MB Notification: Performance of matching and sorting (n=127): time 0.008975/0.5616, allocations: 3.102 MB / 0.5701 GB, free: 8.48 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.07e-05/0.5617, allocations: 98.05 kB / 0.5702 GB, free: 8.367 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005722/0.5623, allocations: 469.8 kB / 0.5706 GB, free: 7.898 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.564e-05/0.5623, allocations: 49.7 kB / 0.5706 GB, free: 7.844 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003297/0.5627, allocations: 476.9 kB / 0.5711 GB, free: 7.371 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003533/0.563, allocations: 436.2 kB / 0.5715 GB, free: 6.941 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003469/0.5634, allocations: 222.9 kB / 0.5717 GB, free: 6.719 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001905/0.5636, allocations: 382.8 kB / 0.5721 GB, free: 6.336 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008265/0.5644, allocations: 454.4 kB / 0.5725 GB, free: 5.891 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001053/0.5655, allocations: 0.7036 MB / 0.5732 GB, free: 5.098 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001958/0.5675, allocations: 1.202 MB / 0.5744 GB, free: 3.801 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.5675, allocations: 0 / 0.5744 GB, free: 3.801 MB / 430.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.00299/0.5705, allocations: 1.609 MB / 0.576 GB, free: 2.184 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.851e-05/0.5705, allocations: 8 kB / 0.576 GB, free: 2.176 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.488e-05/0.5705, allocations: 8 kB / 0.576 GB, free: 2.168 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001599/0.5721, allocations: 0.5282 MB / 0.5765 GB, free: 1.637 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007995/0.5729, allocations: 191.7 kB / 0.5767 GB, free: 1.449 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001973/0.5732, allocations: 65.12 kB / 0.5767 GB, free: 1.383 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006649/0.5738, allocations: 123.1 kB / 0.5769 GB, free: 1.262 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.909e-05/0.5739, allocations: 48 kB / 0.5769 GB, free: 1.215 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 4 (booleanStep4.y,booleanStep3.y,booleanStep2.y,booleanStep1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(20,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0004499/0.5744, allocations: 272.9 kB / 0.5772 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000167/0.5746, allocations: 83.48 kB / 0.5772 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002876/0.5774, allocations: 1.56 MB / 0.5788 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.915e-05/0.5775, allocations: 19.94 kB / 0.5788 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.919e-06/0.5775, allocations: 11.97 kB / 0.5788 GB, free: 15.26 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.538e-05/0.5775, allocations: 3.984 kB / 0.5788 GB, free: 15.25 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004522/0.582, allocations: 2.879 MB / 0.5816 GB, free: 12.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-06/0.5821, allocations: 0 / 0.5816 GB, free: 12.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006353/0.5827, allocations: 147.8 kB / 0.5817 GB, free: 12.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00143/0.5841, allocations: 0.5145 MB / 0.5823 GB, free: 11.64 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.573e-05/0.5842, allocations: 31.98 kB / 0.5823 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003008/0.5845, allocations: 64.73 kB / 0.5823 GB, free: 11.55 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.5845, allocations: 8 kB / 0.5824 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003947/0.5885, allocations: 2.337 MB / 0.5846 GB, free: 9.184 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004428/0.589, allocations: 288.2 kB / 0.5849 GB, free: 8.883 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001154/0.5891, allocations: 27.92 kB / 0.5849 GB, free: 8.855 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005719/0.5897, allocations: 44.05 kB / 0.585 GB, free: 8.812 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001752/0.5898, allocations: 77.2 kB / 0.5851 GB, free: 8.734 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.839e-05/0.5899, allocations: 39.92 kB / 0.5851 GB, free: 8.695 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003553/0.5903, allocations: 310.9 kB / 0.5854 GB, free: 8.391 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5903, allocations: 0 / 0.5854 GB, free: 8.391 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0008926/0.5912, allocations: 351.2 kB / 0.5857 GB, free: 8.047 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(20,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004425/0.5956, allocations: 2.951 MB / 0.5886 GB, free: 5.066 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002939/0.5986, allocations: 1.367 MB / 0.5899 GB, free: 3.699 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.5986, allocations: 8.125 kB / 0.5899 GB, free: 3.691 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001716/0.6003, allocations: 0.7621 MB / 0.5907 GB, free: 2.93 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007109/0.601, allocations: 112.2 kB / 0.5908 GB, free: 2.82 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01308/0.6141, allocations: 8.433 MB / 0.599 GB, free: 10.09 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007242/0.6149, allocations: 1.04 MB / 0.6 GB, free: 9.023 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004771/0.6154, allocations: 110.8 kB / 0.6002 GB, free: 8.91 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005693/0.616, allocations: 391.3 kB / 0.6005 GB, free: 8.527 MB / 462.1 MB Notification: Performance of SimCode: time 1.263e-06/0.616, allocations: 0 / 0.6005 GB, free: 8.527 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05202/0.668, allocations: 21.71 MB / 0.6217 GB, free: 3.066 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.13/13.8, allocations: 7.812 kB / 0.6217 GB, free: 3.059 MB / 478.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1)