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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 179.7 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 221.3 MB / 236 MB, free: 2.953 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009157/0.0009157, allocations: 91.67 kB / 287 MB, free: 248 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2059/0.2059, allocations: 44.16 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.064e-05/3.066e-05, allocations: 224 / 451.8 MB, free: 9.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1441/0.1442, allocations: 61.91 MB / 0.5017 GB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4454/0.5896, allocations: 115.9 MB / 0.6148 GB, free: 5.418 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000217/0.5898, allocations: 83.94 kB / 0.6149 GB, free: 5.336 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.379/1.969, allocations: 469.4 MB / 1.073 GB, free: 33.01 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.954e-06/1.969, allocations: 0 / 1.073 GB, free: 33.01 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0006006/1.97, allocations: 303.3 kB / 1.074 GB, free: 32.72 MB / 0.5261 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.04518/2.015, allocations: 13.39 MB / 1.087 GB, free: 19.23 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/2.015, allocations: 12.03 kB / 1.087 GB, free: 19.22 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03917/2.054, allocations: 7.876 MB / 1.094 GB, free: 11.32 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02135/2.076, allocations: 9.059 MB / 1.103 GB, free: 2.18 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001111/2.077, allocations: 0.999 MB / 1.104 GB, free: 1.18 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.3315/2.408, allocations: 1.29 MB / 1.105 GB, free: 47.94 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06121/2.47, allocations: 22.89 MB / 1.128 GB, free: 46.36 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005215/2.47, allocations: 23.61 kB / 1.128 GB, free: 46.36 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004028/2.474, allocations: 0.557 MB / 1.128 GB, free: 46.36 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001508/2.476, allocations: 1.024 MB / 1.129 GB, free: 46.33 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03985/2.516, allocations: 19.51 MB / 1.148 GB, free: 46.2 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1151/2.631, allocations: 72.19 MB / 1.219 GB, free: 20.48 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02255/2.653, allocations: 28.47 MB / 1.247 GB, free: 12.15 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007841/2.661, allocations: 4.797 MB / 1.251 GB, free: 10.32 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03122/2.692, allocations: 15.81 MB / 1.267 GB, free: 3.566 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.062e-05/2.693, allocations: 83.36 kB / 1.267 GB, free: 3.496 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=465): time 6.442e-06/2.693, allocations: 0 / 1.267 GB, free: 3.496 MB / 0.5417 GB Notification: Performance of matching and sorting (n=465): time 0.013/2.706, allocations: 8.19 MB / 1.275 GB, free: 14.73 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.754e-05/2.706, allocations: 124.7 kB / 1.275 GB, free: 14.59 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008184/2.714, allocations: 4.522 MB / 1.28 GB, free: 10.67 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.001143/2.715, allocations: 97.7 kB / 1.28 GB, free: 10.57 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.00453/2.72, allocations: 5.854 MB / 1.285 GB, free: 5.398 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.00321/2.723, allocations: 1.585 MB / 1.287 GB, free: 3.98 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008713/2.724, allocations: 144 kB / 1.287 GB, free: 3.84 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000543/2.724, allocations: 0.6245 MB / 1.288 GB, free: 3.301 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006435/2.731, allocations: 4.003 MB / 1.292 GB, free: 0 / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008565/2.739, allocations: 6.982 MB / 1.298 GB, free: 8.309 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008773/2.748, allocations: 5.441 MB / 1.304 GB, free: 3.895 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001034/2.748, allocations: 30.34 kB / 1.304 GB, free: 3.867 MB / 0.573 GB Notification: Performance of matching and sorting (n=949) (initialization): time 0.02584/2.774, allocations: 12.7 MB / 1.316 GB, free: 9.605 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001053/2.774, allocations: 48 kB / 1.316 GB, free: 9.559 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002104/2.775, allocations: 100 kB / 1.316 GB, free: 9.461 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006329/2.781, allocations: 3.083 MB / 1.319 GB, free: 7.09 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006162/2.787, allocations: 1.571 MB / 1.321 GB, free: 5.871 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008204/2.795, allocations: 6.431 MB / 1.327 GB, free: 264 kB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.3618/3.157, allocations: 1.125 MB / 1.328 GB, free: 103.8 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001976/3.159, allocations: 375.2 kB / 1.329 GB, free: 103.8 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 461 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (802): * Single equations (assignments): 799 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {20 28,20 28,20 28} Notification: Performance of prepare postOptimizeDAE: time 0.00189/3.161, allocations: 0.5756 MB / 1.329 GB, free: 103.7 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001429/3.163, allocations: 0.4934 MB / 1.33 GB, free: 103.7 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01793/3.18, allocations: 9.361 MB / 1.339 GB, free: 103.5 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.558e-05/3.181, allocations: 48.09 kB / 1.339 GB, free: 103.5 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.658e-05/3.181, allocations: 0 / 1.339 GB, free: 103.5 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.904e-05/3.181, allocations: 24.55 kB / 1.339 GB, free: 103.5 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04503/3.226, allocations: 20.48 MB / 1.359 GB, free: 102.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.538e-05/3.226, allocations: 0 / 1.359 GB, free: 102.8 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003064/3.229, allocations: 0.739 MB / 1.359 GB, free: 102.8 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005546/3.234, allocations: 2.954 MB / 1.362 GB, free: 102.7 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008407/3.235, allocations: 96.5 kB / 1.362 GB, free: 102.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006542/3.242, allocations: 6.231 MB / 1.369 GB, free: 101.1 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/3.242, allocations: 0 / 1.369 GB, free: 101.1 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01854/3.26, allocations: 13.74 MB / 1.382 GB, free: 100.4 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004367/3.265, allocations: 1.399 MB / 1.383 GB, free: 100 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001808/3.267, allocations: 84.69 kB / 1.383 GB, free: 100 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004073/3.271, allocations: 388 kB / 1.384 GB, free: 100 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009005/3.272, allocations: 321.5 kB / 1.384 GB, free: 100 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005652/3.272, allocations: 129.7 kB / 1.384 GB, free: 100 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.006878/3.279, allocations: 3.359 MB / 1.387 GB, free: 99.82 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5.01e-07/3.279, allocations: 5.125 kB / 1.387 GB, free: 99.82 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01254/3.292, allocations: 3.19 MB / 1.391 GB, free: 99.31 MB / 0.5886 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {20 28,20 28,20 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.001744/3.293, allocations: 295.7 kB / 1.391 GB, free: 99.22 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01727/3.311, allocations: 9.797 MB / 1.4 GB, free: 98.88 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/3.311, allocations: 2.812 kB / 1.4 GB, free: 98.88 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.009296/3.32, allocations: 4.564 MB / 1.405 GB, free: 98.6 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006829/3.327, allocations: 1.154 MB / 1.406 GB, free: 98.58 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05202/3.379, allocations: 20.57 MB / 1.426 GB, free: 95.1 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01377/3.393, allocations: 9.252 MB / 1.435 GB, free: 92.62 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.008073/3.401, allocations: 2.847 MB / 1.438 GB, free: 92.46 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001354/3.402, allocations: 369.1 kB / 1.438 GB, free: 92.43 MB / 0.5886 GB Notification: Performance of SimCode: time 1.072e-06/3.402, allocations: 0 / 1.438 GB, free: 92.43 MB / 0.5886 GB Notification: Performance of Templates: time 0.1463/3.549, allocations: 90.99 MB / 1.527 GB, free: 32.89 MB / 0.5886 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","../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches