Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.Polyphase.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(ModelicaTest.Electrical.QuasiStatic.Polyphase.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_4.0.0_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal") translateModel(ModelicaTest.Electrical.QuasiStatic.Polyphase.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_4.0.0_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 110.4 kB / 17.78 MB, free: 5.289 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.001435/0.001435, allocations: 187.1 kB / 18.71 MB, free: 4.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.523/1.523, allocations: 222.9 MB / 242.4 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2169/0.2169, allocations: 44.19 MB / 336.7 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 59.91 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4531/0.4543, allocations: 60.84 MB / 0.5189 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal): time 0.02686/0.4812, allocations: 22.72 MB / 0.5411 GB, free: 2.348 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01825/0.4995, allocations: 5.463 MB / 0.5464 GB, free: 13.81 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008697/0.5083, allocations: 192.3 kB / 0.5466 GB, free: 13.77 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02268/0.5311, allocations: 9.487 MB / 0.5559 GB, free: 6.09 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01157/0.5427, allocations: 2.303 MB / 0.5581 GB, free: 3.781 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006397/0.5491, allocations: 1.686 MB / 0.5598 GB, free: 2.113 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01932/0.5684, allocations: 14.48 MB / 0.5739 GB, free: 3.578 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05919/0.6277, allocations: 34.28 MB / 0.6074 GB, free: 1.074 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01335/0.6411, allocations: 7.992 MB / 0.6152 GB, free: 9.062 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01568/0.6568, allocations: 8.717 MB / 0.6237 GB, free: 324 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006321/0.6632, allocations: 2.106 MB / 0.6258 GB, free: 14.21 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01153/0.6747, allocations: 2.34 MB / 0.628 GB, free: 11.87 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0115/0.6863, allocations: 4.318 MB / 0.6323 GB, free: 7.543 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02264/0.7089, allocations: 8.432 MB / 0.6405 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.04102/0.75, allocations: 28.68 MB / 0.6685 GB, free: 2.32 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 9.698e-06/0.7501, allocations: 0 / 0.6685 GB, free: 2.32 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.355e-06/0.7501, allocations: 0 / 0.6685 GB, free: 2.32 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.001005/0.7511, allocations: 0 / 0.6685 GB, free: 2.32 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3858 * Number of variables: 3858 Notification: Performance of Generate backend data structure: time 0.06998/0.8211, allocations: 18.69 MB / 0.6868 GB, free: 15.52 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.465e-05/0.8212, allocations: 8.031 kB / 0.6868 GB, free: 15.52 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06236/0.8836, allocations: 11.7 MB / 0.6982 GB, free: 3.789 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02375/0.9073, allocations: 8.839 MB / 0.7068 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001463/0.9088, allocations: 1.056 MB / 0.7078 GB, free: 9.797 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007992/0.9169, allocations: 1.379 MB / 0.7092 GB, free: 8.422 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7143/1.631, allocations: 23.57 MB / 0.7322 GB, free: 143.2 MB / 0.5607 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001031/1.632, allocations: 25.34 kB / 0.7322 GB, free: 143.2 MB / 0.5607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007628/1.64, allocations: 0.5678 MB / 0.7328 GB, free: 142.8 MB / 0.5607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001533/1.641, allocations: 0.7011 MB / 0.7335 GB, free: 142.7 MB / 0.5607 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05359/1.695, allocations: 21.68 MB / 0.7547 GB, free: 132.8 MB / 0.5607 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.146/1.841, allocations: 70.85 MB / 0.8238 GB, free: 61.73 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02478/1.866, allocations: 28.66 MB / 0.8518 GB, free: 30.39 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008291/1.874, allocations: 4.961 MB / 0.8567 GB, free: 25.4 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02746/1.902, allocations: 15.67 MB / 0.872 GB, free: 9.574 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001045/1.902, allocations: 82.11 kB / 0.8721 GB, free: 9.484 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=465): time 8.526e-06/1.902, allocations: 0 / 0.8721 GB, free: 9.484 MB / 0.5607 GB Notification: Performance of matching and sorting (n=465): time 0.03882/1.941, allocations: 15.7 MB / 0.8874 GB, free: 9.695 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/1.941, allocations: 124.7 kB / 0.8875 GB, free: 9.555 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01267/1.954, allocations: 5.101 MB / 0.8925 GB, free: 4.449 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.001533/1.955, allocations: 97.7 kB / 0.8926 GB, free: 4.348 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.005589/1.961, allocations: 5.889 MB / 0.8983 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.002996/1.964, allocations: 1.591 MB / 0.8999 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003009/1.967, allocations: 1.535 MB / 0.9014 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.00012/1.967, allocations: 305.2 kB / 0.9017 GB, free: 10.93 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006921/1.974, allocations: 4.137 MB / 0.9057 GB, free: 6.785 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01047/1.985, allocations: 7.27 MB / 0.9128 GB, free: 14.07 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01984/2.004, allocations: 11.93 MB / 0.9245 GB, free: 0.6797 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001629/2.005, allocations: 28 kB / 0.9245 GB, free: 0.6523 MB / 0.6075 GB Notification: Performance of matching and sorting (n=961) (initialization): time 0.02687/2.031, allocations: 13.1 MB / 0.9373 GB, free: 3.523 MB / 0.6232 GB Notification: Performance of prepare postOptimizeDAE: time 9.022e-05/2.032, allocations: 52.22 kB / 0.9373 GB, free: 3.473 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000198/2.032, allocations: 108 kB / 0.9374 GB, free: 3.367 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006843/2.039, allocations: 3.09 MB / 0.9405 GB, free: 276 kB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00685/2.046, allocations: 1.595 MB / 0.942 GB, free: 14.67 MB / 0.6388 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001042/2.047, allocations: 335 kB / 0.9423 GB, free: 14.33 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007711/2.054, allocations: 1.061 MB / 0.9434 GB, free: 13.26 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001963/2.056, allocations: 376 kB / 0.9437 GB, free: 12.89 MB / 0.6388 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 473 * 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 (814): * Single equations (assignments): 811 * 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.01529/2.072, allocations: 5.39 MB / 0.949 GB, free: 7.488 MB / 0.6388 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002815/2.074, allocations: 0.4977 MB / 0.9495 GB, free: 6.984 MB / 0.6388 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02237/2.097, allocations: 9.623 MB / 0.9589 GB, free: 13.33 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.843e-05/2.097, allocations: 48 kB / 0.9589 GB, free: 13.28 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.91e-05/2.097, allocations: 4 kB / 0.9589 GB, free: 13.28 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001168/2.097, allocations: 35.78 kB / 0.959 GB, free: 13.24 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.479/2.576, allocations: 20.75 MB / 0.9792 GB, free: 223.6 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.966e-05/2.576, allocations: 0 / 0.9792 GB, free: 223.6 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003551/2.58, allocations: 0.7333 MB / 0.9799 GB, free: 223.6 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006312/2.586, allocations: 2.967 MB / 0.9828 GB, free: 222.8 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006019/2.587, allocations: 95.25 kB / 0.9829 GB, free: 222.7 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006204/2.587, allocations: 145.8 kB / 0.9831 GB, free: 222.7 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/2.587, allocations: 1.125 kB / 0.9831 GB, free: 222.7 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01987/2.607, allocations: 14.21 MB / 0.9969 GB, free: 217.4 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003574/2.611, allocations: 1.363 MB / 0.9983 GB, free: 217 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007156/2.612, allocations: 82.06 kB / 0.9984 GB, free: 216.9 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002469/2.614, allocations: 366.1 kB / 0.9987 GB, free: 216.9 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006921/2.615, allocations: 316.8 kB / 0.999 GB, free: 216.8 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002956/2.615, allocations: 134.7 kB / 0.9991 GB, free: 216.8 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.005061/2.62, allocations: 3.424 MB / 1.002 GB, free: 215.6 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.9e-07/2.62, allocations: 2.656 kB / 1.002 GB, free: 215.6 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.008698/2.629, allocations: 3.178 MB / 1.006 GB, free: 214.7 MB / 0.6544 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.0007841/2.63, allocations: 267 kB / 1.006 GB, free: 214.5 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.01445/2.644, allocations: 9.902 MB / 1.016 GB, free: 211.1 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/2.644, allocations: 0 / 1.016 GB, free: 211.1 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.007373/2.652, allocations: 4.45 MB / 1.02 GB, free: 208.7 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006684/2.658, allocations: 1.261 MB / 1.021 GB, free: 207.7 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04982/2.708, allocations: 23.97 MB / 1.044 GB, free: 186.2 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01369/2.722, allocations: 9.003 MB / 1.053 GB, free: 177.9 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.008115/2.73, allocations: 2.867 MB / 1.056 GB, free: 175 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002155/2.732, allocations: 379.4 kB / 1.056 GB, free: 174.6 MB / 0.6544 GB Notification: Performance of SimCode: time 1.984e-06/2.732, allocations: 0 / 1.056 GB, free: 174.6 MB / 0.6544 GB Notification: Performance of Templates: time 0.1495/2.882, allocations: 95.05 MB / 1.149 GB, free: 80.21 MB / 0.6544 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/QuasiStatic/Polyphase/Ideal/Ideal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches