Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.Polyphase.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.Polyphase.Ideal,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_QuasiStatic_Polyphase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_QuasiStatic_Polyphase_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.001327/0.001327, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001322/0.001322, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.549/1.549, allocations: 227.4 MB / 247 MB, free: 10.41 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.2352/0.2352, 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.002587/0.002587, allocations: 84.11 kB / 480.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3655/0.3681, allocations: 62.44 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal): time 0.02605/0.3942, allocations: 22.75 MB / 0.5528 GB, free: 10.9 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01516/0.4094, allocations: 5.518 MB / 0.5582 GB, free: 5.367 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007912/0.4174, allocations: 191.4 kB / 0.5584 GB, free: 5.18 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02236/0.4398, allocations: 9.484 MB / 0.5676 GB, free: 11.67 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009367/0.4492, allocations: 2.144 MB / 0.5697 GB, free: 9.523 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005811/0.455, allocations: 1.902 MB / 0.5716 GB, free: 7.641 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01931/0.4744, allocations: 14.47 MB / 0.5857 GB, free: 9.117 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05287/0.5273, allocations: 34.29 MB / 0.6192 GB, free: 6.602 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0128/0.5402, allocations: 7.972 MB / 0.627 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01529/0.5555, allocations: 8.725 MB / 0.6355 GB, free: 5.855 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006473/0.562, allocations: 2.102 MB / 0.6376 GB, free: 3.754 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007872/0.5699, allocations: 2.347 MB / 0.6399 GB, free: 1.406 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008246/0.5782, allocations: 4.325 MB / 0.6441 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.02085/0.5991, allocations: 8.424 MB / 0.6523 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.03987/0.639, allocations: 28.77 MB / 0.6804 GB, free: 7.746 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.639, allocations: 3.938 kB / 0.6804 GB, free: 7.742 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.623e-06/0.639, allocations: 0 / 0.6804 GB, free: 7.742 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0008536/0.6399, allocations: 0 / 0.6804 GB, free: 7.742 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3858 * Number of variables: 3858 Notification: Performance of Generate backend data structure: time 0.06334/0.7033, allocations: 19.01 MB / 0.699 GB, free: 4.605 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.707e-05/0.7033, allocations: 8.031 kB / 0.699 GB, free: 4.598 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008734/0.7121, allocations: 2.013 MB / 0.701 GB, free: 2.574 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0643/0.7764, allocations: 11.48 MB / 0.7122 GB, free: 7.062 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5175/1.294, allocations: 8.894 MB / 0.7209 GB, free: 141.9 MB / 0.5607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001517/1.296, allocations: 1.06 MB / 0.7219 GB, free: 141.9 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007527/1.303, allocations: 1.369 MB / 0.7232 GB, free: 141.7 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0639/1.367, allocations: 23.62 MB / 0.7463 GB, free: 132.5 MB / 0.5607 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007567/1.368, allocations: 21.97 kB / 0.7463 GB, free: 132.5 MB / 0.5607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004776/1.373, allocations: 0.5735 MB / 0.7469 GB, free: 132 MB / 0.5607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006427/1.373, allocations: 0.6969 MB / 0.7476 GB, free: 131.9 MB / 0.5607 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04098/1.414, allocations: 21.74 MB / 0.7688 GB, free: 110.5 MB / 0.5607 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1148/1.529, allocations: 72.05 MB / 0.8391 GB, free: 37.75 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0274/1.557, allocations: 28.68 MB / 0.8672 GB, free: 6.379 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008962/1.566, allocations: 4.965 MB / 0.872 GB, free: 1.391 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03867/1.604, allocations: 16.55 MB / 0.8882 GB, free: 0.5977 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.495e-05/1.605, allocations: 86.05 kB / 0.8883 GB, free: 0.5039 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=465): time 6.612e-06/1.605, allocations: 0 / 0.8883 GB, free: 0.5039 MB / 0.5763 GB Notification: Performance of matching and sorting (n=465): time 0.04213/1.647, allocations: 15.77 MB / 0.9037 GB, free: 0.6562 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.663e-05/1.647, allocations: 128.6 kB / 0.9038 GB, free: 0.5117 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008892/1.656, allocations: 5.114 MB / 0.9088 GB, free: 11.46 MB / 0.6076 GB Notification: Performance of collectPreVariables (initialization): time 0.0009395/1.657, allocations: 101.7 kB / 0.9089 GB, free: 11.36 MB / 0.6076 GB Notification: Performance of collectInitialEqns (initialization): time 0.00506/1.662, allocations: 6.097 MB / 0.9148 GB, free: 5.773 MB / 0.6076 GB Notification: Performance of collectInitialBindings (initialization): time 0.002563/1.664, allocations: 1.67 MB / 0.9164 GB, free: 4.09 MB / 0.6076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002886/1.667, allocations: 1.551 MB / 0.918 GB, free: 2.531 MB / 0.6076 GB Notification: Performance of setup shared object (initialization): time 0.0001366/1.667, allocations: 309.1 kB / 0.9183 GB, free: 2.227 MB / 0.6076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007363/1.675, allocations: 4.148 MB / 0.9223 GB, free: 14.07 MB / 0.6232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01087/1.686, allocations: 7.267 MB / 0.9294 GB, free: 5.359 MB / 0.6232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01823/1.704, allocations: 11.96 MB / 0.9411 GB, free: 7.934 MB / 0.6388 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.711e-05/1.704, allocations: 31.94 kB / 0.9411 GB, free: 7.902 MB / 0.6388 GB Notification: Performance of matching and sorting (n=961) (initialization): time 0.02675/1.731, allocations: 13.16 MB / 0.954 GB, free: 10.72 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 9.021e-05/1.731, allocations: 52 kB / 0.954 GB, free: 10.67 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001665/1.731, allocations: 108.1 kB / 0.9541 GB, free: 10.56 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007094/1.738, allocations: 3.086 MB / 0.9571 GB, free: 7.469 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006787/1.745, allocations: 1.603 MB / 0.9587 GB, free: 5.863 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001055/1.746, allocations: 335 kB / 0.959 GB, free: 5.523 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007753/1.754, allocations: 1.075 MB / 0.9601 GB, free: 4.441 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001887/1.756, allocations: 384 kB / 0.9604 GB, free: 4.066 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 473 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep4[3].y,booleanStep4[2].y,booleanStep4[1].y,booleanStep3[3].y,booleanStep3[2].y,booleanStep3[1].y,booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,booleanStep1[3].y,booleanStep1[2].y,booleanStep1[1].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (814): * Single equations (assignments): 811 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(20,30), (20,28), (20,28)} Notification: Performance of prepare postOptimizeDAE: time 0.3254/2.081, allocations: 5.389 MB / 0.9657 GB, free: 216.9 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001535/2.083, allocations: 0.5236 MB / 0.9662 GB, free: 216.9 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01706/2.1, allocations: 9.632 MB / 0.9756 GB, free: 214.8 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.812e-05/2.1, allocations: 46.59 kB / 0.9757 GB, free: 214.8 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.47e-05/2.1, allocations: 4.438 kB / 0.9757 GB, free: 214.8 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.36e-05/2.1, allocations: 26.48 kB / 0.9757 GB, free: 214.8 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03645/2.137, allocations: 20.82 MB / 0.996 GB, free: 207.3 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-05/2.137, allocations: 0 / 0.996 GB, free: 207.3 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003147/2.14, allocations: 0.7422 MB / 0.9967 GB, free: 207.2 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005705/2.146, allocations: 2.973 MB / 0.9996 GB, free: 206.4 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008981/2.146, allocations: 104.2 kB / 0.9997 GB, free: 206.4 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006106/2.147, allocations: 143.2 kB / 0.9999 GB, free: 206.3 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/2.147, allocations: 0 / 0.9999 GB, free: 206.3 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01903/2.166, allocations: 14.27 MB / 1.014 GB, free: 199.3 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003346/2.17, allocations: 1.389 MB / 1.015 GB, free: 198.2 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009404/2.17, allocations: 84 kB / 1.015 GB, free: 198.1 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002722/2.173, allocations: 363.2 kB / 1.016 GB, free: 197.9 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000637/2.174, allocations: 329.7 kB / 1.016 GB, free: 197.7 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000287/2.174, allocations: 133.9 kB / 1.016 GB, free: 197.6 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.004782/2.179, allocations: 3.423 MB / 1.019 GB, free: 194.8 MB / 0.6544 GB Notification: Performance of sort global known variables: time 4.61e-07/2.179, allocations: 0 / 1.019 GB, free: 194.8 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.008894/2.188, allocations: 3.234 MB / 1.023 GB, free: 192 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (voltageSource.plug_p.reference.gamma) * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y,booleanStep4[1].y,booleanStep4[2].y,booleanStep4[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (357): * Single equations (assignments): 354 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(20,30), (20,28), (20,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02006/2.208, allocations: 14.98 MB / 1.037 GB, free: 177 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0167/2.225, allocations: 9.933 MB / 1.047 GB, free: 167.1 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.216e-05/2.225, allocations: 4 kB / 1.047 GB, free: 167.1 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.01007/2.235, allocations: 4.451 MB / 1.051 GB, free: 162.6 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007792/2.243, allocations: 1.272 MB / 1.052 GB, free: 161.4 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1142/2.357, allocations: 77.84 MB / 1.128 GB, free: 79.89 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01301/2.37, allocations: 9.006 MB / 1.137 GB, free: 70.84 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.006353/2.376, allocations: 2.873 MB / 1.14 GB, free: 67.96 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006281/2.383, allocations: 4.697 MB / 1.145 GB, free: 63.26 MB / 0.6544 GB Notification: Performance of SimCode: time 6.71e-07/2.383, allocations: 0 / 1.145 GB, free: 63.26 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.492/2.875, allocations: 177.7 MB / 1.318 GB, free: 150.7 MB / 0.6701 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.68/27.55, allocations: 5.438 kB / 1.318 GB, free: 150.7 MB / 0.6701 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.Polyphase.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_Polyphase_Ideal.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.pipe 2>&1)