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.001123/0.001123, allocations: 104.1 kB / 16.27 MB, free: 6.41 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.001054/0.001054, allocations: 191.8 kB / 17.2 MB, free: 5.953 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.359/1.359, 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.1946/0.1946, allocations: 43.51 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.001773/0.001773, allocations: 65.73 kB / 382.8 MB, free: 56.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09577/0.09756, allocations: 57.79 MB / 440.6 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal): time 0.02141/0.119, allocations: 22.89 MB / 463.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0121/0.1312, allocations: 5.498 MB / 469 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004646/0.1358, allocations: 159.5 kB / 469.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02056/0.1565, allocations: 9.511 MB / 478.7 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009687/0.1662, allocations: 2.381 MB / 481.1 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006075/0.1723, allocations: 1.695 MB / 482.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01676/0.1891, allocations: 14.58 MB / 497.3 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04775/0.2368, allocations: 34.46 MB / 0.5193 GB, free: 11.19 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009565/0.2464, allocations: 8.034 MB / 0.5272 GB, free: 3.133 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3449/0.5914, allocations: 8.844 MB / 0.5358 GB, free: 37.48 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006977/0.5984, allocations: 2.114 MB / 0.5379 GB, free: 37.48 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008143/0.6065, allocations: 2.354 MB / 0.5402 GB, free: 37.48 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006496/0.6131, allocations: 4.393 MB / 0.5445 GB, free: 37.48 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01303/0.6261, allocations: 8.533 MB / 0.5528 GB, free: 34.95 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01895/0.6451, allocations: 28.53 MB / 0.5807 GB, free: 18.6 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.6451, allocations: 0 / 0.5807 GB, free: 18.6 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.6451, allocations: 5.875 kB / 0.5807 GB, free: 18.6 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0006031/0.6457, allocations: 0 / 0.5807 GB, free: 18.6 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.04944/0.6952, allocations: 18.93 MB / 0.5991 GB, free: 6.688 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.6953, allocations: 11.89 kB / 0.5992 GB, free: 6.676 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005222/0.7005, allocations: 2.047 MB / 0.6012 GB, free: 4.629 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06451/0.765, allocations: 12.67 MB / 0.6135 GB, free: 8.074 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01677/0.7818, allocations: 7.906 MB / 0.6213 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001108/0.783, allocations: 1.07 MB / 0.6223 GB, free: 15.45 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005569/0.7885, allocations: 1.398 MB / 0.6237 GB, free: 14.07 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05397/0.8425, allocations: 24.1 MB / 0.6472 GB, free: 5.914 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005256/0.8431, allocations: 19.91 kB / 0.6472 GB, free: 5.895 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004421/0.8475, allocations: 0.5761 MB / 0.6478 GB, free: 5.332 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007748/0.8483, allocations: 0.7335 MB / 0.6485 GB, free: 4.598 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0449/0.8932, allocations: 22.44 MB / 0.6704 GB, free: 14.15 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3315/1.225, allocations: 73.3 MB / 0.742 GB, free: 142.8 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02428/1.249, allocations: 31.61 MB / 0.7729 GB, free: 118.8 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006969/1.256, allocations: 5.064 MB / 0.7778 GB, free: 118.7 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02654/1.283, allocations: 15.84 MB / 0.7933 GB, free: 116.3 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.62e-05/1.283, allocations: 85.48 kB / 0.7934 GB, free: 116.2 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=465): time 7.674e-06/1.283, allocations: 3.875 kB / 0.7934 GB, free: 116.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=465): time 0.03371/1.317, allocations: 15.65 MB / 0.8087 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.004e-05/1.317, allocations: 130 kB / 0.8088 GB, free: 111.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01032/1.327, allocations: 5.251 MB / 0.8139 GB, free: 109.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008495/1.328, allocations: 100.5 kB / 0.814 GB, free: 109.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003205/1.331, allocations: 6.05 MB / 0.8199 GB, free: 104.3 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001934/1.333, allocations: 1.587 MB / 0.8215 GB, free: 102.9 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003774/1.337, allocations: 1.6 MB / 0.823 GB, free: 102 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.285e-05/1.337, allocations: 301.1 kB / 0.8233 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006226/1.343, allocations: 4.2 MB / 0.8274 GB, free: 99.52 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008517/1.352, allocations: 7.561 MB / 0.8348 GB, free: 92.74 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01301/1.365, allocations: 12.32 MB / 0.8468 GB, free: 82.94 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.216e-05/1.365, allocations: 32 kB / 0.8469 GB, free: 82.91 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1000) (initialization): time 0.01913/1.384, allocations: 13.44 MB / 0.86 GB, free: 69.44 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.837e-05/1.384, allocations: 58.25 kB / 0.86 GB, free: 69.39 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001239/1.384, allocations: 112 kB / 0.8601 GB, free: 69.28 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005586/1.39, allocations: 3.121 MB / 0.8632 GB, free: 66.15 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005138/1.395, allocations: 1.669 MB / 0.8648 GB, free: 64.48 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005217/1.395, allocations: 322.9 kB / 0.8651 GB, free: 64.15 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005385/1.401, allocations: 1.096 MB / 0.8662 GB, free: 63.05 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008116/1.402, allocations: 408 kB / 0.8666 GB, free: 62.65 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.007957/1.41, allocations: 5.461 MB / 0.8719 GB, free: 57.17 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001181/1.411, allocations: 0.5053 MB / 0.8724 GB, free: 56.66 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01409/1.425, allocations: 9.671 MB / 0.8819 GB, free: 46.96 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-05/1.425, allocations: 44 kB / 0.8819 GB, free: 46.91 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/1.425, allocations: 4 kB / 0.8819 GB, free: 46.91 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.033e-05/1.425, allocations: 27.89 kB / 0.8819 GB, free: 46.88 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0303/1.455, allocations: 20.89 MB / 0.9023 GB, free: 26.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-05/1.455, allocations: 0 / 0.9023 GB, free: 26.02 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002898/1.458, allocations: 0.7333 MB / 0.903 GB, free: 25.28 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005198/1.464, allocations: 2.985 MB / 0.906 GB, free: 22.29 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003415/1.464, allocations: 95.98 kB / 0.906 GB, free: 22.19 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000498/1.464, allocations: 126.5 kB / 0.9062 GB, free: 22.06 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/1.464, allocations: 7.984 kB / 0.9062 GB, free: 22.05 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01606/1.48, allocations: 14.15 MB / 0.92 GB, free: 7.863 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002616/1.483, allocations: 1.372 MB / 0.9213 GB, free: 6.465 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007476/1.484, allocations: 80 kB / 0.9214 GB, free: 6.387 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002638/1.487, allocations: 367.5 kB / 0.9218 GB, free: 6.027 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006542/1.487, allocations: 315.4 kB / 0.9221 GB, free: 5.719 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002803/1.488, allocations: 128 kB / 0.9222 GB, free: 5.594 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004119/1.492, allocations: 3.505 MB / 0.9256 GB, free: 2.098 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.51e-07/1.492, allocations: 0 / 0.9256 GB, free: 2.098 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006951/1.499, allocations: 3.229 MB / 0.9288 GB, free: 14.85 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.1859/1.684, allocations: 14.88 MB / 0.9433 GB, free: 205.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.04079/1.725, allocations: 19.75 MB / 0.9626 GB, free: 204.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/1.725, allocations: 2.375 kB / 0.9626 GB, free: 204.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007758/1.733, allocations: 4.445 MB / 0.9669 GB, free: 202.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007317/1.74, allocations: 1.278 MB / 0.9682 GB, free: 202.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1181/1.859, allocations: 92.41 MB / 1.058 GB, free: 111.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008177/1.867, allocations: 9.117 MB / 1.067 GB, free: 102.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00677/1.874, allocations: 2.936 MB / 1.07 GB, free: 99.73 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006125/1.88, allocations: 4.756 MB / 1.075 GB, free: 94.97 MB / 0.545 GB Notification: Performance of SimCode: time 1.232e-06/1.88, allocations: 0 / 1.075 GB, free: 94.97 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3974/2.277, allocations: 181.5 MB / 1.252 GB, free: 129.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.24/19.52, allocations: 12.22 kB / 1.252 GB, free: 129.2 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Electrical_QuasiStatic_MultiPhase_Ideal_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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