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.001088/0.001088, allocations: 103.5 kB / 16.27 MB, free: 5.977 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.001055/0.001055, allocations: 192.1 kB / 17.2 MB, free: 5.609 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.268/1.268, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.188/0.188, allocations: 43.52 MB / 313.9 MB, free: 0.5273 MB / 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.001452/0.001452, allocations: 68.78 kB / 382.8 MB, free: 56.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07746/0.07892, allocations: 57.79 MB / 440.6 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal): time 0.02063/0.09959, allocations: 22.89 MB / 463.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01158/0.1112, allocations: 5.498 MB / 469 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004001/0.1152, allocations: 163.4 kB / 469.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02013/0.1354, allocations: 9.503 MB / 478.7 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007937/0.1434, allocations: 2.381 MB / 481.1 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0047/0.1481, allocations: 1.699 MB / 482.8 MB, free: 12.53 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01517/0.1633, allocations: 14.58 MB / 497.3 MB, free: 13.9 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04525/0.2086, allocations: 34.46 MB / 0.5193 GB, free: 11.21 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01086/0.2195, allocations: 8.038 MB / 0.5272 GB, free: 3.152 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3344/0.5539, allocations: 8.847 MB / 0.5358 GB, free: 37.49 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007358/0.5613, allocations: 2.113 MB / 0.5379 GB, free: 37.49 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007779/0.5691, allocations: 2.349 MB / 0.5402 GB, free: 37.49 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006676/0.5758, allocations: 4.392 MB / 0.5445 GB, free: 37.49 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01566/0.5915, allocations: 8.541 MB / 0.5528 GB, free: 34.92 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02287/0.6144, allocations: 28.52 MB / 0.5807 GB, free: 18.58 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.6144, allocations: 0 / 0.5807 GB, free: 18.58 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.6144, allocations: 0 / 0.5807 GB, free: 18.58 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0007305/0.6152, allocations: 0.7812 kB / 0.5807 GB, free: 18.58 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: 3927 * Number of variables: 3927 Notification: Performance of Generate backend data structure: time 0.05405/0.6692, allocations: 18.93 MB / 0.5991 GB, free: 6.699 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/0.6693, allocations: 11.89 kB / 0.5992 GB, free: 6.688 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007009/0.6763, allocations: 2.047 MB / 0.6012 GB, free: 4.641 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06781/0.7441, allocations: 12.68 MB / 0.6135 GB, free: 8.082 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01742/0.7616, allocations: 7.901 MB / 0.6213 GB, free: 0.5195 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001117/0.7627, allocations: 1.073 MB / 0.6223 GB, free: 15.46 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005041/0.7678, allocations: 1.396 MB / 0.6237 GB, free: 14.07 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05811/0.8259, allocations: 24.1 MB / 0.6472 GB, free: 5.918 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005461/0.8265, allocations: 15.91 kB / 0.6472 GB, free: 5.902 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004777/0.8313, allocations: 0.5749 MB / 0.6478 GB, free: 5.34 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008817/0.8322, allocations: 0.7296 MB / 0.6485 GB, free: 4.609 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04786/0.8801, allocations: 22.45 MB / 0.6704 GB, free: 14.15 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3261/1.206, allocations: 73.29 MB / 0.742 GB, free: 142.9 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0237/1.23, allocations: 31.62 MB / 0.7729 GB, free: 118.9 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007347/1.237, allocations: 5.066 MB / 0.7778 GB, free: 118.8 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02621/1.264, allocations: 15.84 MB / 0.7933 GB, free: 116.4 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.114e-05/1.264, allocations: 81.7 kB / 0.7934 GB, free: 116.4 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=465): time 7.243e-06/1.264, allocations: 0 / 0.7934 GB, free: 116.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=465): time 0.03388/1.298, allocations: 15.67 MB / 0.8087 GB, free: 111.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.672e-05/1.298, allocations: 125.8 kB / 0.8088 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008087/1.306, allocations: 5.251 MB / 0.8139 GB, free: 109.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007088/1.307, allocations: 97.86 kB / 0.814 GB, free: 109.5 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002921/1.309, allocations: 6.047 MB / 0.8199 GB, free: 104.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001572/1.311, allocations: 1.59 MB / 0.8215 GB, free: 103 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003204/1.314, allocations: 1.602 MB / 0.823 GB, free: 102.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.248e-05/1.314, allocations: 305.2 kB / 0.8233 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006027/1.32, allocations: 4.203 MB / 0.8274 GB, free: 99.65 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007279/1.328, allocations: 7.561 MB / 0.8348 GB, free: 92.88 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01295/1.341, allocations: 12.32 MB / 0.8468 GB, free: 82.98 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.651e-05/1.341, allocations: 32 kB / 0.8469 GB, free: 82.95 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1000) (initialization): time 0.01946/1.36, allocations: 13.44 MB / 0.86 GB, free: 69.48 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.756e-05/1.36, allocations: 52.94 kB / 0.86 GB, free: 69.43 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001349/1.36, allocations: 116 kB / 0.8601 GB, free: 69.32 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005566/1.366, allocations: 3.122 MB / 0.8632 GB, free: 66.19 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005638/1.372, allocations: 1.669 MB / 0.8648 GB, free: 64.52 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006456/1.372, allocations: 319 kB / 0.8651 GB, free: 64.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006087/1.379, allocations: 1.1 MB / 0.8662 GB, free: 63.09 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001153/1.38, allocations: 411.9 kB / 0.8666 GB, free: 62.68 MB / 0.5294 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.009647/1.389, allocations: 5.46 MB / 0.8719 GB, free: 57.21 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001608/1.391, allocations: 0.5053 MB / 0.8724 GB, free: 56.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01522/1.406, allocations: 9.659 MB / 0.8818 GB, free: 47 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.149e-05/1.406, allocations: 51.98 kB / 0.8819 GB, free: 46.95 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.41e-05/1.406, allocations: 4 kB / 0.8819 GB, free: 46.95 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.492e-05/1.406, allocations: 27.91 kB / 0.8819 GB, free: 46.92 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0353/1.442, allocations: 20.89 MB / 0.9023 GB, free: 26.05 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.346e-05/1.442, allocations: 0 / 0.9023 GB, free: 26.05 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002865/1.445, allocations: 0.7216 MB / 0.903 GB, free: 25.33 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005173/1.45, allocations: 2.992 MB / 0.906 GB, free: 22.32 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003719/1.45, allocations: 91.98 kB / 0.906 GB, free: 22.23 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005062/1.451, allocations: 130.5 kB / 0.9062 GB, free: 22.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/1.451, allocations: 3.984 kB / 0.9062 GB, free: 22.09 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01667/1.467, allocations: 14.14 MB / 0.92 GB, free: 7.91 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002567/1.47, allocations: 1.38 MB / 0.9213 GB, free: 6.504 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001085/1.471, allocations: 76 kB / 0.9214 GB, free: 6.43 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003089/1.474, allocations: 367.6 kB / 0.9218 GB, free: 6.07 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006981/1.475, allocations: 319.4 kB / 0.9221 GB, free: 5.758 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003176/1.475, allocations: 132 kB / 0.9222 GB, free: 5.629 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005589/1.481, allocations: 3.505 MB / 0.9256 GB, free: 2.133 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2e-07/1.481, allocations: 0 / 0.9256 GB, free: 2.133 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009564/1.49, allocations: 3.23 MB / 0.9288 GB, free: 14.88 MB / 0.545 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.201/1.691, allocations: 14.88 MB / 0.9433 GB, free: 205 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.04164/1.733, allocations: 19.74 MB / 0.9626 GB, free: 204.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/1.733, allocations: 7.844 kB / 0.9626 GB, free: 204.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008328/1.741, allocations: 4.439 MB / 0.9669 GB, free: 202.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007485/1.749, allocations: 1.275 MB / 0.9682 GB, free: 202.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1187/1.868, allocations: 92.41 MB / 1.058 GB, free: 111.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01386/1.882, allocations: 9.119 MB / 1.067 GB, free: 102.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007272/1.889, allocations: 2.933 MB / 1.07 GB, free: 99.82 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006539/1.895, allocations: 4.764 MB / 1.075 GB, free: 95.06 MB / 0.545 GB Notification: Performance of SimCode: time 1.603e-06/1.895, allocations: 0 / 1.075 GB, free: 95.06 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3849/2.28, allocations: 181.5 MB / 1.252 GB, free: 129.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.68/15.96, allocations: 3.688 kB / 1.252 GB, free: 129.3 MB / 0.545 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