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.001351/0.001351, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0014/0.0014, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.4 MB / 246.8 MB, free: 10.57 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.2246/0.2246, allocations: 46.12 MB / 344.2 MB, free: 11.56 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.002271/0.002271, allocations: 80.8 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1245, allocations: 62.44 MB / 480.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.009594/0.1342, allocations: 7.751 MB / 488 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005064/0.1393, allocations: 2.427 MB / 490.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008479/0.1402, allocations: 27.94 kB / 490.4 MB, free: 10.88 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004412/0.1446, allocations: 1.812 MB / 492.2 MB, free: 9.066 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00251/0.1471, allocations: 0.7137 MB / 492.9 MB, free: 8.352 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002459/0.1496, allocations: 1.071 MB / 494 MB, free: 7.289 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001945/0.1516, allocations: 1.394 MB / 495.4 MB, free: 5.891 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001679/0.1533, allocations: 1.009 MB / 496.4 MB, free: 4.863 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008422/0.1541, allocations: 0.6111 MB / 497 MB, free: 4.25 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008855/0.155, allocations: 0.7314 MB / 497.7 MB, free: 3.516 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002184/0.1553, allocations: 112 kB / 497.9 MB, free: 3.406 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008324/0.1561, allocations: 339.8 kB / 498.2 MB, free: 3.074 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002579/0.1564, allocations: 291 kB / 498.5 MB, free: 2.789 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007009/0.1571, allocations: 0.6569 MB / 499.1 MB, free: 2.129 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002149/0.1592, allocations: 1.744 MB / 0.4891 GB, free: 388 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1593, allocations: 0 / 0.4891 GB, free: 388 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1593, allocations: 0 / 0.4891 GB, free: 388 kB / 366.1 MB Notification: Performance of Transformations before backend: time 2.013e-05/0.1593, allocations: 0 / 0.4891 GB, free: 388 kB / 366.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.007891/0.1672, allocations: 2.38 MB / 0.4915 GB, free: 13.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.1672, allocations: 8.031 kB / 0.4915 GB, free: 13.94 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002489/0.1675, allocations: 198.7 kB / 0.4917 GB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01021/0.1777, allocations: 1.33 MB / 0.493 GB, free: 12.4 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001317/0.1791, allocations: 0.6051 MB / 0.4935 GB, free: 11.76 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001065/0.1792, allocations: 99.02 kB / 0.4936 GB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002215/0.1794, allocations: 132.1 kB / 0.4938 GB, free: 11.53 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002825/0.1823, allocations: 1.487 MB / 0.4952 GB, free: 10 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.979e-05/0.1823, allocations: 11.89 kB / 0.4952 GB, free: 9.988 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001316/0.1825, allocations: 56 kB / 0.4953 GB, free: 9.934 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.523e-05/0.1825, allocations: 36 kB / 0.4953 GB, free: 9.898 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00287/0.1854, allocations: 1.517 MB / 0.4968 GB, free: 8.375 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008913/0.1943, allocations: 5.642 MB / 0.5023 GB, free: 2.402 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2169/0.4112, allocations: 2.175 MB / 0.5044 GB, free: 39.92 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001316/0.4126, allocations: 0.6465 MB / 0.5051 GB, free: 39.9 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001771/0.4128, allocations: 192.8 kB / 0.5053 GB, free: 39.71 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/0.4128, allocations: 47.06 kB / 0.5053 GB, free: 39.67 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 3.827e-06/0.4128, allocations: 1.5 kB / 0.5053 GB, free: 39.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=127): time 0.009188/0.422, allocations: 3.106 MB / 0.5083 GB, free: 39.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.286e-05/0.4221, allocations: 94.94 kB / 0.5084 GB, free: 39.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005699/0.4227, allocations: 470.1 kB / 0.5089 GB, free: 38.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.378e-05/0.4228, allocations: 46.39 kB / 0.5089 GB, free: 38.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002782/0.4231, allocations: 465.7 kB / 0.5094 GB, free: 38.6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002831/0.4233, allocations: 420.4 kB / 0.5098 GB, free: 38.28 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003476/0.4237, allocations: 219.4 kB / 0.51 GB, free: 38.17 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.4238, allocations: 383.4 kB / 0.5103 GB, free: 37.83 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007978/0.4246, allocations: 461.7 kB / 0.5108 GB, free: 37.64 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008642/0.4255, allocations: 0.6932 MB / 0.5115 GB, free: 37.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001653/0.4272, allocations: 1.204 MB / 0.5126 GB, free: 36.43 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.4272, allocations: 6.969 kB / 0.5126 GB, free: 36.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.002678/0.4299, allocations: 1.601 MB / 0.5142 GB, free: 35.72 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.4299, allocations: 7.656 kB / 0.5142 GB, free: 35.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.594e-05/0.4299, allocations: 7.5 kB / 0.5142 GB, free: 35.72 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00146/0.4314, allocations: 0.5293 MB / 0.5147 GB, free: 35.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007448/0.4321, allocations: 201.5 kB / 0.5149 GB, free: 35.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001836/0.4323, allocations: 47.64 kB / 0.515 GB, free: 35.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006457/0.433, allocations: 120.6 kB / 0.5151 GB, free: 35.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.114e-05/0.4331, allocations: 53.34 kB / 0.5151 GB, free: 35.43 MB / 382.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.0003909/0.4335, allocations: 269.6 kB / 0.5154 GB, free: 35.21 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001556/0.4336, allocations: 86.38 kB / 0.5155 GB, free: 35.17 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002616/0.4363, allocations: 1.572 MB / 0.517 GB, free: 34.45 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.758e-05/0.4363, allocations: 14.83 kB / 0.517 GB, free: 34.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.4363, allocations: 3.938 kB / 0.517 GB, free: 34.44 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.659e-05/0.4363, allocations: 7.812 kB / 0.517 GB, free: 34.44 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004029/0.4404, allocations: 2.874 MB / 0.5198 GB, free: 33.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/0.4404, allocations: 2.203 kB / 0.5198 GB, free: 33.01 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006097/0.441, allocations: 141.4 kB / 0.52 GB, free: 33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001315/0.4423, allocations: 0.5299 MB / 0.5205 GB, free: 32.83 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.819e-05/0.4424, allocations: 29.62 kB / 0.5205 GB, free: 32.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002981/0.4427, allocations: 65.38 kB / 0.5206 GB, free: 32.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.4427, allocations: 6.125 kB / 0.5206 GB, free: 32.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003392/0.4461, allocations: 2.341 MB / 0.5229 GB, free: 31.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003395/0.4465, allocations: 281.8 kB / 0.5231 GB, free: 31.39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.4466, allocations: 21.88 kB / 0.5232 GB, free: 31.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005616/0.4472, allocations: 55.58 kB / 0.5232 GB, free: 31.35 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000175/0.4473, allocations: 77.45 kB / 0.5233 GB, free: 31.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.984e-05/0.4474, allocations: 40.06 kB / 0.5233 GB, free: 31.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003099/0.4477, allocations: 310.6 kB / 0.5236 GB, free: 31.17 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4477, allocations: 0 / 0.5236 GB, free: 31.17 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008486/0.4486, allocations: 343.8 kB / 0.524 GB, free: 31.09 MB / 382.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.003418/0.452, allocations: 2.94 MB / 0.5268 GB, free: 29.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003202/0.4552, allocations: 1.406 MB / 0.5282 GB, free: 28.84 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.4553, allocations: 1.594 kB / 0.5282 GB, free: 28.84 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00145/0.4567, allocations: 0.7723 MB / 0.529 GB, free: 28.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006833/0.4574, allocations: 99.84 kB / 0.529 GB, free: 28.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009425/0.4668, allocations: 8.669 MB / 0.5375 GB, free: 22.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000335/0.4672, allocations: 1.041 MB / 0.5385 GB, free: 21.11 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000451/0.4677, allocations: 106.8 kB / 0.5386 GB, free: 21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003434/0.468, allocations: 395.3 kB / 0.539 GB, free: 20.61 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.468, allocations: 0 / 0.539 GB, free: 20.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04597/0.514, allocations: 21.24 MB / 0.5597 GB, free: 15.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.03/12.55, allocations: 9.188 kB / 0.5598 GB, free: 15.61 MB / 398.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)