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.001544/0.001544, allocations: 108.5 kB / 16.41 MB, free: 6.496 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.001537/0.001537, allocations: 185.5 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.367/1.367, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.2031/0.2031, allocations: 43.53 MB / 314.1 MB, free: 464 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.002048/0.002048, allocations: 71.91 kB / 441.3 MB, free: 6.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1032, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal): time 0.02554/0.1287, allocations: 22.89 MB / 0.5098 GB, free: 5.305 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01254/0.1413, allocations: 5.514 MB / 0.5151 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004301/0.1457, allocations: 163.5 kB / 0.5153 GB, free: 15.61 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02165/0.1674, allocations: 9.49 MB / 0.5246 GB, free: 6.078 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008467/0.1759, allocations: 2.389 MB / 0.5269 GB, free: 3.676 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005125/0.181, allocations: 1.714 MB / 0.5286 GB, free: 1.969 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.2098/0.3909, allocations: 14.65 MB / 0.5429 GB, free: 3.641 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04582/0.4367, allocations: 34.39 MB / 0.5765 GB, free: 3.012 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0266/0.4634, allocations: 9.531 MB / 0.5858 GB, free: 15.86 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01507/0.4785, allocations: 8.845 MB / 0.5944 GB, free: 7.41 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005293/0.4838, allocations: 2.113 MB / 0.5965 GB, free: 5.297 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007666/0.4915, allocations: 2.342 MB / 0.5988 GB, free: 2.984 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0062/0.4977, allocations: 4.4 MB / 0.6031 GB, free: 14.71 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01618/0.5139, allocations: 8.521 MB / 0.6114 GB, free: 6.289 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03458/0.5485, allocations: 28.78 MB / 0.6395 GB, free: 10.07 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.443e-06/0.5486, allocations: 0 / 0.6395 GB, free: 10.07 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5486, allocations: 0 / 0.6395 GB, free: 10.07 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0006342/0.5492, allocations: 0 / 0.6395 GB, free: 10.07 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.05728/0.6065, allocations: 19.25 MB / 0.6583 GB, free: 6.883 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.6066, allocations: 15.89 kB / 0.6583 GB, free: 6.867 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006576/0.6131, allocations: 2.049 MB / 0.6603 GB, free: 4.82 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06778/0.6809, allocations: 12.74 MB / 0.6727 GB, free: 8.203 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01627/0.6972, allocations: 7.965 MB / 0.6805 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001158/0.6984, allocations: 1.07 MB / 0.6816 GB, free: 15.52 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005224/0.7037, allocations: 1.402 MB / 0.6829 GB, free: 14.13 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0569/0.7606, allocations: 24.1 MB / 0.7065 GB, free: 5.977 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004946/0.7611, allocations: 19.91 kB / 0.7065 GB, free: 5.957 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004177/0.7653, allocations: 0.5748 MB / 0.707 GB, free: 5.395 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008352/0.7662, allocations: 0.7335 MB / 0.7078 GB, free: 4.66 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04692/0.8131, allocations: 22.44 MB / 0.7297 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5203/1.333, allocations: 72.59 MB / 0.8006 GB, free: 118.2 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01944/1.353, allocations: 31.63 MB / 0.8315 GB, free: 93.36 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007022/1.36, allocations: 5.069 MB / 0.8364 GB, free: 91.49 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02105/1.381, allocations: 15.81 MB / 0.8518 GB, free: 84.7 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.189e-05/1.381, allocations: 88.83 kB / 0.8519 GB, free: 84.62 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=465): time 6.041e-06/1.381, allocations: 0 / 0.8519 GB, free: 84.62 MB / 0.5919 GB Notification: Performance of matching and sorting (n=465): time 0.03093/1.412, allocations: 15.69 MB / 0.8672 GB, free: 76.16 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.566e-05/1.412, allocations: 128.6 kB / 0.8674 GB, free: 76.05 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006122/1.418, allocations: 5.259 MB / 0.8725 GB, free: 73.38 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0005014/1.419, allocations: 95.92 kB / 0.8726 GB, free: 73.29 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.002462/1.421, allocations: 6.266 MB / 0.8787 GB, free: 68.76 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.001227/1.423, allocations: 1.668 MB / 0.8803 GB, free: 67.21 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001871/1.424, allocations: 1.615 MB / 0.8819 GB, free: 65.59 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 3.461e-05/1.424, allocations: 305.1 kB / 0.8822 GB, free: 65.29 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004753/1.429, allocations: 4.204 MB / 0.8863 GB, free: 61.08 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005746/1.435, allocations: 7.558 MB / 0.8937 GB, free: 52 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01117/1.446, allocations: 12.32 MB / 0.9057 GB, free: 38.57 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-05/1.446, allocations: 32 kB / 0.9058 GB, free: 38.54 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1000) (initialization): time 0.01726/1.463, allocations: 13.47 MB / 0.9189 GB, free: 25.73 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 6.721e-05/1.464, allocations: 52.78 kB / 0.919 GB, free: 25.68 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001347/1.464, allocations: 112.9 kB / 0.9191 GB, free: 25.57 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005404/1.469, allocations: 3.106 MB / 0.9221 GB, free: 22.46 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005281/1.474, allocations: 1.674 MB / 0.9237 GB, free: 20.91 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005211/1.475, allocations: 322.7 kB / 0.924 GB, free: 20.63 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005298/1.48, allocations: 1.122 MB / 0.9251 GB, free: 19.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006919/1.481, allocations: 400 kB / 0.9255 GB, free: 19.11 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.006646/1.488, allocations: 5.471 MB / 0.9309 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008288/1.488, allocations: 0.5317 MB / 0.9314 GB, free: 13.22 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01251/1.501, allocations: 9.658 MB / 0.9408 GB, free: 3.539 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-05/1.501, allocations: 48 kB / 0.9409 GB, free: 3.492 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/1.501, allocations: 0 / 0.9409 GB, free: 3.492 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.571e-05/1.501, allocations: 19.92 kB / 0.9409 GB, free: 3.473 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03513/1.536, allocations: 20.87 MB / 0.9613 GB, free: 14.66 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-05/1.536, allocations: 0 / 0.9613 GB, free: 14.66 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003165/1.539, allocations: 0.7369 MB / 0.962 GB, free: 13.96 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006472/1.546, allocations: 2.954 MB / 0.9649 GB, free: 10.99 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004621/1.546, allocations: 99.97 kB / 0.965 GB, free: 10.89 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005647/1.547, allocations: 134.1 kB / 0.9651 GB, free: 10.76 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/1.547, allocations: 3.984 kB / 0.9651 GB, free: 10.75 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02227/1.569, allocations: 14.18 MB / 0.9789 GB, free: 12.56 MB / 0.6388 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003465/1.573, allocations: 1.402 MB / 0.9803 GB, free: 11.14 MB / 0.6388 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001145/1.574, allocations: 80.06 kB / 0.9804 GB, free: 11.06 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003012/1.577, allocations: 371.4 kB / 0.9807 GB, free: 10.7 MB / 0.6388 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007702/1.578, allocations: 319.4 kB / 0.981 GB, free: 10.38 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003432/1.578, allocations: 124 kB / 0.9812 GB, free: 10.26 MB / 0.6388 GB Notification: Performance of sorting global known variables: time 0.005478/1.584, allocations: 3.507 MB / 0.9846 GB, free: 6.766 MB / 0.6388 GB Notification: Performance of sort global known variables: time 1.5e-07/1.584, allocations: 0 / 0.9846 GB, free: 6.766 MB / 0.6388 GB Notification: Performance of remove unused functions: time 0.007968/1.592, allocations: 3.277 MB / 0.9878 GB, free: 3.477 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.02273/1.614, allocations: 14.91 MB / 1.002 GB, free: 4.582 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.2163/1.831, allocations: 10.03 MB / 1.012 GB, free: 248.5 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/1.831, allocations: 0 / 1.012 GB, free: 248.5 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.008078/1.839, allocations: 4.452 MB / 1.016 GB, free: 247.7 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006215/1.845, allocations: 1.273 MB / 1.018 GB, free: 247.2 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09947/1.944, allocations: 79.73 MB / 1.096 GB, free: 187.2 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00796/1.952, allocations: 9.112 MB / 1.104 GB, free: 178 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.006161/1.959, allocations: 2.94 MB / 1.107 GB, free: 175.1 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004845/1.963, allocations: 4.76 MB / 1.112 GB, free: 170.3 MB / 0.6544 GB Notification: Performance of SimCode: time 8.52e-07/1.963, allocations: 0 / 1.112 GB, free: 170.3 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4138/2.377, allocations: 180.5 MB / 1.288 GB, free: 214.4 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.43/24.8, allocations: 5.938 kB / 1.288 GB, free: 214.4 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