Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|I.1..re|I.1..im|I.2..re|I.2..im|I.3..re|I.3..im",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal") translateModel(ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|I.1..re|I.1..im|I.2..re|I.2..im|I.3..re|I.3..im",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009284/0.0009288, allocations: 181.3 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.398/1.398, allocations: 205.4 MB / 223.6 MB, free: 8.945 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000821/0.0008209, allocations: 84.42 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3797/0.3797, allocations: 43.57 MB / 363.8 MB, free: 52.08 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003768/0.0003772, allocations: 8 kB / 432.6 MB, free: 5.875 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.1389, allocations: 58.84 MB / 491.4 MB, free: 10.95 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3661/0.5051, allocations: 113.4 MB / 0.5907 GB, free: 4.949 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002659/0.5054, allocations: 83.95 kB / 0.5908 GB, free: 4.867 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.335/1.84, allocations: 468 MB / 1.048 GB, free: 15.54 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.785e-06/1.841, allocations: 0 / 1.048 GB, free: 15.54 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.00136/1.842, allocations: 303.7 kB / 1.048 GB, free: 15.24 MB / 0.5105 GB 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.06076/1.903, allocations: 13.93 MB / 1.062 GB, free: 1.215 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/1.903, allocations: 8.031 kB / 1.062 GB, free: 1.207 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4243/2.327, allocations: 8.562 MB / 1.07 GB, free: 40.77 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02895/2.356, allocations: 8.962 MB / 1.079 GB, free: 40.29 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002158/2.358, allocations: 1.029 MB / 1.08 GB, free: 40.26 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00829/2.367, allocations: 1.307 MB / 1.081 GB, free: 40.25 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08079/2.447, allocations: 25.06 MB / 1.106 GB, free: 38.66 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008916/2.448, allocations: 16.44 kB / 1.106 GB, free: 38.66 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008352/2.457, allocations: 0.5754 MB / 1.106 GB, free: 38.66 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001821/2.459, allocations: 0.9221 MB / 1.107 GB, free: 38.63 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05901/2.518, allocations: 22.55 MB / 1.129 GB, free: 38.5 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1763/2.694, allocations: 76.47 MB / 1.204 GB, free: 8.535 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03126/2.725, allocations: 21.13 MB / 1.224 GB, free: 10.56 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02546/2.751, allocations: 11.69 MB / 1.236 GB, free: 364 kB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09301/2.844, allocations: 37.76 MB / 1.273 GB, free: 2.418 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001221/2.844, allocations: 132 kB / 1.273 GB, free: 2.281 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=1188): time 1.505e-05/2.844, allocations: 4 kB / 1.273 GB, free: 2.277 MB / 0.5573 GB Notification: Performance of matching and sorting (n=1188): time 0.407/3.251, allocations: 32.98 MB / 1.305 GB, free: 85.36 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.312e-05/3.251, allocations: 176.4 kB / 1.305 GB, free: 85.26 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005321/3.257, allocations: 3.47 MB / 1.309 GB, free: 85.03 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.002478/3.259, allocations: 176.7 kB / 1.309 GB, free: 85 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.002845/3.262, allocations: 4.483 MB / 1.313 GB, free: 83.57 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.005904/3.268, allocations: 3.864 MB / 1.317 GB, free: 81.04 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001359/3.269, allocations: 173 kB / 1.317 GB, free: 81.04 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0009482/3.27, allocations: 0.7552 MB / 1.318 GB, free: 80.71 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01427/3.284, allocations: 8.08 MB / 1.326 GB, free: 80.69 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01877/3.303, allocations: 9.605 MB / 1.335 GB, free: 79.41 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03303/3.336, allocations: 18.45 MB / 1.353 GB, free: 78 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001164/3.336, allocations: 12.91 kB / 1.353 GB, free: 78 MB / 0.5573 GB Notification: Performance of matching and sorting (n=1360) (initialization): time 0.0499/3.386, allocations: 23.96 MB / 1.376 GB, free: 72.49 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 6.72e-05/3.386, allocations: 21.47 kB / 1.377 GB, free: 72.49 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.493e-05/3.387, allocations: 31.81 kB / 1.377 GB, free: 72.49 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01889/3.405, allocations: 10.35 MB / 1.387 GB, free: 69.44 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00663/3.412, allocations: 1.35 MB / 1.388 GB, free: 69.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0297/3.442, allocations: 19.53 MB / 1.407 GB, free: 60.16 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008828/3.451, allocations: 1.118 MB / 1.408 GB, free: 59.55 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003782/3.455, allocations: 389 kB / 1.408 GB, free: 59.47 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * Number of states: 0 () * 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 initialization (695): * Single equations (assignments): 628 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 63 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,6 9,99 312} Notification: Performance of prepare postOptimizeDAE: time 0.02084/3.476, allocations: 5.381 MB / 1.414 GB, free: 57.18 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005095/3.481, allocations: 0.5988 MB / 1.414 GB, free: 56.85 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04495/3.526, allocations: 24.69 MB / 1.438 GB, free: 39.24 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003906/3.526, allocations: 330.4 kB / 1.439 GB, free: 38.96 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.695e-05/3.526, allocations: 4 kB / 1.439 GB, free: 38.96 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001685/3.526, allocations: 49.08 kB / 1.439 GB, free: 38.96 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08246/3.609, allocations: 43.71 MB / 1.481 GB, free: 2.66 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.051e-05/3.609, allocations: 4 kB / 1.481 GB, free: 2.656 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005113/3.614, allocations: 1.081 MB / 1.483 GB, free: 1.84 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.371/3.985, allocations: 10.93 MB / 1.493 GB, free: 80.7 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002942/3.988, allocations: 247.5 kB / 1.493 GB, free: 80.7 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02446/4.012, allocations: 19.46 MB / 1.512 GB, free: 78.46 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/4.013, allocations: 6.781 kB / 1.512 GB, free: 78.46 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06302/4.076, allocations: 36.35 MB / 1.548 GB, free: 77.8 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008356/4.084, allocations: 2.697 MB / 1.551 GB, free: 77.48 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003947/4.088, allocations: 157.8 kB / 1.551 GB, free: 77.48 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007178/4.095, allocations: 0.5264 MB / 1.551 GB, free: 77.48 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004061/4.099, allocations: 0.8863 MB / 1.552 GB, free: 77.48 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002164/4.101, allocations: 310.1 kB / 1.552 GB, free: 77.48 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.004379/4.106, allocations: 2.366 MB / 1.555 GB, free: 77.33 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.11e-07/4.106, allocations: 0 / 1.555 GB, free: 77.33 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01401/4.12, allocations: 3.476 MB / 1.558 GB, free: 76.95 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealClosingSwitch.idealClosingSwitch[1].pin_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 (565): * Single equations (assignments): 498 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 63 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,6 9,99 312} Notification: Performance of Backend phase and start with SimCode phase: time 0.002992/4.123, allocations: 354.4 kB / 1.558 GB, free: 76.86 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.03816/4.161, allocations: 20.19 MB / 1.578 GB, free: 75.12 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 7.845e-06/4.161, allocations: 0 / 1.578 GB, free: 75.12 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.02228/4.183, allocations: 11.12 MB / 1.589 GB, free: 71.07 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01053/4.194, allocations: 1.302 MB / 1.59 GB, free: 70.66 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06441/4.258, allocations: 36.33 MB / 1.626 GB, free: 51.07 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01327/4.272, allocations: 9.18 MB / 1.635 GB, free: 43.92 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002665/4.274, allocations: 431.4 kB / 1.635 GB, free: 43.53 MB / 0.5573 GB Notification: Performance of SimCode: time 1.162e-06/4.274, allocations: 5.938 kB / 1.635 GB, free: 43.53 MB / 0.5573 GB Notification: Performance of Templates: time 1.835/6.11, allocations: 495.6 MB / 2.119 GB, free: 121.4 MB / 0.6043 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches