Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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 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(ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Electrical_QuasiStatic_MultiPhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Electrical_QuasiStatic_MultiPhase_Ideal",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.00131/0.00131, allocations: 108 kB / 16.41 MB, free: 6.484 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.001278/0.001278, allocations: 188.1 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.306/1.306, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1979/0.1979, allocations: 43.52 MB / 314.1 MB, free: 468 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 60.47 kB / 441.3 MB, free: 6.188 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09007/0.09144, allocations: 57.79 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal): time 0.02129/0.1128, allocations: 22.89 MB / 0.5097 GB, free: 5.324 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01048/0.1233, allocations: 5.514 MB / 0.5151 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003554/0.1269, allocations: 167.4 kB / 0.5153 GB, free: 15.62 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01985/0.1467, allocations: 9.521 MB / 0.5246 GB, free: 6.062 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007542/0.1543, allocations: 2.409 MB / 0.5269 GB, free: 3.641 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004872/0.1592, allocations: 1.716 MB / 0.5286 GB, free: 1.93 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.2131/0.3723, allocations: 14.65 MB / 0.5429 GB, free: 3.66 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03938/0.4117, allocations: 34.36 MB / 0.5765 GB, free: 2.883 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02576/0.4375, allocations: 9.555 MB / 0.5858 GB, free: 15.7 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01418/0.4517, allocations: 8.85 MB / 0.5945 GB, free: 7.25 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004946/0.4567, allocations: 2.113 MB / 0.5965 GB, free: 5.137 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007055/0.4638, allocations: 2.344 MB / 0.5988 GB, free: 2.824 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006142/0.47, allocations: 4.395 MB / 0.6031 GB, free: 14.57 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01469/0.4847, allocations: 8.533 MB / 0.6114 GB, free: 6.133 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02915/0.5139, allocations: 28.77 MB / 0.6395 GB, free: 9.918 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.5139, allocations: 0 / 0.6395 GB, free: 9.918 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.436e-06/0.5139, allocations: 3.984 kB / 0.6395 GB, free: 9.914 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0007755/0.5147, allocations: 0 / 0.6395 GB, free: 9.914 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3927 * Number of variables: 3927 Notification: Performance of Generate backend data structure: time 0.05612/0.5708, allocations: 19.25 MB / 0.6583 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.506e-05/0.5709, allocations: 15.89 kB / 0.6583 GB, free: 6.719 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006395/0.5773, allocations: 2.045 MB / 0.6603 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06597/0.6433, allocations: 12.74 MB / 0.6728 GB, free: 8.055 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01821/0.6615, allocations: 7.966 MB / 0.6806 GB, free: 444 kB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001123/0.6627, allocations: 1.075 MB / 0.6816 GB, free: 15.37 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00505/0.6678, allocations: 1.397 MB / 0.683 GB, free: 13.99 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05369/0.7215, allocations: 24.1 MB / 0.7065 GB, free: 5.832 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000554/0.7221, allocations: 19.89 kB / 0.7065 GB, free: 5.812 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004145/0.7262, allocations: 0.5791 MB / 0.7071 GB, free: 5.246 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000782/0.727, allocations: 0.7296 MB / 0.7078 GB, free: 4.516 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0432/0.7702, allocations: 22.44 MB / 0.7297 GB, free: 14.06 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5138/1.284, allocations: 72.6 MB / 0.8006 GB, free: 118.2 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01889/1.303, allocations: 31.62 MB / 0.8315 GB, free: 93.33 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00649/1.31, allocations: 5.067 MB / 0.8364 GB, free: 91.46 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02285/1.332, allocations: 15.82 MB / 0.8519 GB, free: 84.57 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.215e-05/1.333, allocations: 90.75 kB / 0.852 GB, free: 84.5 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=465): time 6.662e-06/1.333, allocations: 0 / 0.852 GB, free: 84.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=465): time 0.03033/1.363, allocations: 15.68 MB / 0.8673 GB, free: 76 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.483e-05/1.363, allocations: 126.7 kB / 0.8674 GB, free: 75.9 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006057/1.369, allocations: 5.264 MB / 0.8725 GB, free: 73.22 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0004776/1.37, allocations: 102.9 kB / 0.8726 GB, free: 73.13 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.002365/1.372, allocations: 6.269 MB / 0.8788 GB, free: 68.52 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.001241/1.373, allocations: 1.668 MB / 0.8804 GB, free: 66.96 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001877/1.375, allocations: 1.611 MB / 0.882 GB, free: 65.34 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 4.161e-05/1.375, allocations: 305.1 kB / 0.8823 GB, free: 65.04 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004844/1.38, allocations: 4.196 MB / 0.8864 GB, free: 60.84 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005817/1.386, allocations: 7.558 MB / 0.8937 GB, free: 51.77 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01142/1.397, allocations: 12.32 MB / 0.9058 GB, free: 38.33 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.3e-05/1.397, allocations: 32 kB / 0.9058 GB, free: 38.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1000) (initialization): time 0.01713/1.414, allocations: 13.47 MB / 0.919 GB, free: 25.5 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 6.042e-05/1.414, allocations: 56.97 kB / 0.919 GB, free: 25.44 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001101/1.415, allocations: 115.9 kB / 0.9191 GB, free: 25.33 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00532/1.42, allocations: 3.101 MB / 0.9221 GB, free: 22.22 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004941/1.425, allocations: 1.667 MB / 0.9238 GB, free: 20.68 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004799/1.425, allocations: 323.7 kB / 0.9241 GB, free: 20.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005022/1.43, allocations: 1.118 MB / 0.9252 GB, free: 19.28 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005017/1.431, allocations: 404 kB / 0.9256 GB, free: 18.88 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 512 * 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 (853): * Single equations (assignments): 850 * 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.006477/1.437, allocations: 5.47 MB / 0.9309 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008001/1.438, allocations: 0.5317 MB / 0.9314 GB, free: 12.99 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01201/1.45, allocations: 9.662 MB / 0.9409 GB, free: 3.305 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.541e-05/1.45, allocations: 44 kB / 0.9409 GB, free: 3.262 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.909e-06/1.45, allocations: 4 kB / 0.9409 GB, free: 3.258 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.369e-05/1.45, allocations: 23.91 kB / 0.9409 GB, free: 3.234 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03323/1.484, allocations: 20.86 MB / 0.9613 GB, free: 14.43 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.777e-05/1.484, allocations: 0 / 0.9613 GB, free: 14.43 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003227/1.487, allocations: 0.7312 MB / 0.962 GB, free: 13.73 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006382/1.493, allocations: 2.969 MB / 0.9649 GB, free: 10.75 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007645/1.494, allocations: 95.98 kB / 0.965 GB, free: 10.66 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005905/1.495, allocations: 126.5 kB / 0.9651 GB, free: 10.52 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/1.495, allocations: 0 / 0.9651 GB, free: 10.52 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02277/1.517, allocations: 14.18 MB / 0.979 GB, free: 12.32 MB / 0.6388 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003665/1.521, allocations: 1.402 MB / 0.9803 GB, free: 10.9 MB / 0.6388 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001148/1.522, allocations: 80.06 kB / 0.9804 GB, free: 10.82 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003171/1.525, allocations: 371.5 kB / 0.9808 GB, free: 10.46 MB / 0.6388 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007706/1.526, allocations: 311.4 kB / 0.9811 GB, free: 10.16 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003842/1.527, allocations: 132 kB / 0.9812 GB, free: 10.03 MB / 0.6388 GB Notification: Performance of sorting global known variables: time 0.005554/1.532, allocations: 3.505 MB / 0.9846 GB, free: 6.531 MB / 0.6388 GB Notification: Performance of sort global known variables: time 3.81e-07/1.532, allocations: 0 / 0.9846 GB, free: 6.531 MB / 0.6388 GB Notification: Performance of remove unused functions: time 0.008223/1.54, allocations: 3.273 MB / 0.9878 GB, free: 3.246 MB / 0.6388 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.02246/1.563, allocations: 14.9 MB / 1.002 GB, free: 4.355 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.2202/1.783, allocations: 10.04 MB / 1.012 GB, free: 249 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/1.783, allocations: 5.406 kB / 1.012 GB, free: 249 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.008139/1.791, allocations: 4.442 MB / 1.017 GB, free: 248 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005888/1.797, allocations: 1.279 MB / 1.018 GB, free: 247.6 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1007/1.898, allocations: 79.73 MB / 1.096 GB, free: 187 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008322/1.906, allocations: 9.117 MB / 1.105 GB, free: 177.9 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.006062/1.912, allocations: 2.94 MB / 1.107 GB, free: 174.9 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005051/1.918, allocations: 4.752 MB / 1.112 GB, free: 170.2 MB / 0.6544 GB Notification: Performance of SimCode: time 1.082e-06/1.918, allocations: 4 kB / 1.112 GB, free: 170.2 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4077/2.325, allocations: 180.5 MB / 1.288 GB, free: 214.5 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.99/24.31, allocations: 5.938 kB / 1.288 GB, free: 214.5 MB / 0.6544 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.MultiPhase.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_3_2_3_ModelicaTest_Electrical_QuasiStatic_MultiPhase_Ideal.fmu > ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/QuasiStatic/MultiPhase/Ideal/Ideal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches