Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest.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.MulitSensorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inductorA.i|inductorM.inductor.1..i|inductorM.inductor.2..i|inductorM.inductor.3..i|meanpowerA.x|meanpowerM.1..x|meanpowerM.2..x|meanpowerM.3..x|resistorQM.plug_p.reference.gamma|resistorQS.pin_p.reference.gamma|rmsiA.mean.x|rmsiM.1..mean.x|rmsiM.2..mean.x|rmsiM.3..mean.x|rmsvA.mean.x|rmsvM.1..mean.x|rmsvM.2..mean.x|rmsvM.3..mean.x",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest") translateModel(ModelicaTest.Electrical.MulitSensorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inductorA.i|inductorM.inductor.1..i|inductorM.inductor.2..i|inductorM.inductor.3..i|meanpowerA.x|meanpowerM.1..x|meanpowerM.2..x|meanpowerM.3..x|resistorQM.plug_p.reference.gamma|resistorQS.pin_p.reference.gamma|rmsiA.mean.x|rmsiM.1..mean.x|rmsiM.2..mean.x|rmsiM.3..mean.x|rmsvA.mean.x|rmsvM.1..mean.x|rmsvM.2..mean.x|rmsvM.3..mean.x",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001578/0.001578, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.003/2.003, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001104/0.001104, allocations: 86.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2842/0.2842, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.173e-05/3.187e-05, allocations: 8 kB / 425.3 MB, free: 23.37 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1364, allocations: 58.86 MB / 484.1 MB, free: 12.47 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5203/0.6568, allocations: 108.7 MB / 0.5789 GB, free: 11.08 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/0.6571, allocations: 68.53 kB / 0.579 GB, free: 11.05 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8445/1.502, allocations: 131.9 MB / 0.7078 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.124e-06/1.502, allocations: 0 / 0.7078 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003946/1.502, allocations: 107.3 kB / 0.7079 GB, free: 106.3 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1296 * Number of variables: 1296 Notification: Performance of Generate backend data structure: time 0.02422/1.526, allocations: 4.628 MB / 0.7124 GB, free: 105.4 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/1.526, allocations: 12.17 kB / 0.7124 GB, free: 105.4 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02194/1.548, allocations: 2.431 MB / 0.7148 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01119/1.56, allocations: 2.879 MB / 0.7176 GB, free: 104.6 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008705/1.561, allocations: 359.2 kB / 0.7179 GB, free: 104.6 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002874/1.563, allocations: 470 kB / 0.7184 GB, free: 104.6 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02741/1.591, allocations: 7.413 MB / 0.7256 GB, free: 104.1 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003443/1.591, allocations: 11.22 kB / 0.7256 GB, free: 104.1 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002072/1.593, allocations: 200.3 kB / 0.7258 GB, free: 104.1 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004879/1.594, allocations: 308 kB / 0.7261 GB, free: 104 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01977/1.614, allocations: 6.66 MB / 0.7326 GB, free: 104 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.063/1.677, allocations: 22.71 MB / 0.7548 GB, free: 99.71 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01449/1.691, allocations: 7.268 MB / 0.7619 GB, free: 95.12 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00694/1.698, allocations: 3.001 MB / 0.7648 GB, free: 93.91 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006857/1.699, allocations: 173.7 kB / 0.765 GB, free: 93.8 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007867/1.707, allocations: 3.114 MB / 0.768 GB, free: 92.59 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=414): time 1.13e-05/1.707, allocations: 0 / 0.768 GB, free: 92.59 MB / 0.4948 GB Notification: Performance of matching and sorting (n=414): time 0.0156/1.723, allocations: 5.727 MB / 0.7736 GB, free: 90.42 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002005/1.723, allocations: 470.4 kB / 0.7741 GB, free: 89.91 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003182/1.726, allocations: 1.433 MB / 0.7755 GB, free: 89.38 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0009974/1.727, allocations: 107.3 kB / 0.7756 GB, free: 89.29 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001697/1.729, allocations: 1.628 MB / 0.7772 GB, free: 88.04 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00214/1.731, allocations: 1.374 MB / 0.7785 GB, free: 86.98 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005813/1.732, allocations: 75.06 kB / 0.7786 GB, free: 86.92 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003697/1.732, allocations: 484.2 kB / 0.779 GB, free: 86.53 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005726/1.738, allocations: 2.247 MB / 0.7812 GB, free: 85.69 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006961/1.745, allocations: 3.083 MB / 0.7843 GB, free: 83.91 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007024/1.752, allocations: 2.752 MB / 0.7869 GB, free: 82.87 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.721e-05/1.752, allocations: 3.875 kB / 0.7869 GB, free: 82.87 MB / 0.4948 GB Notification: Performance of matching and sorting (n=526) (initialization): time 0.01769/1.77, allocations: 6.478 MB / 0.7933 GB, free: 80.48 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 4.85e-05/1.77, allocations: 13.81 kB / 0.7933 GB, free: 80.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.847e-05/1.77, allocations: 24.19 kB / 0.7933 GB, free: 80.48 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00432/1.774, allocations: 1.402 MB / 0.7947 GB, free: 80.05 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005966/1.78, allocations: 0.7549 MB / 0.7954 GB, free: 80.03 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006439/1.787, allocations: 4.596 MB / 0.7999 GB, free: 76.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004972/1.792, allocations: 478.5 kB / 0.8004 GB, free: 76.46 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001158/1.793, allocations: 163.5 kB / 0.8005 GB, free: 76.43 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 91 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.meanpowerA.y,meanpowerA.y,$whenCondition12,$whenCondition11,$whenCondition10,$PRE.rmsiA.mean.y,rmsiA.mean.y,$PRE.rmsvA.mean.y,rmsvA.mean.y,$PRE.meanpowerM[1].y,meanpowerM[1].y,$PRE.meanpowerM[2].y,meanpowerM[2].y,$PRE.meanpowerM[3].y,meanpowerM[3].y,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rmsiM[3].mean.y,rmsiM[3].mean.y,$PRE.rmsiM[2].mean.y,rmsiM[2].mean.y,$PRE.rmsiM[1].mean.y,rmsiM[1].mean.y,$PRE.rmsvM[3].mean.y,rmsvM[3].mean.y,$PRE.rmsvM[2].mean.y,rmsvM[2].mean.y,$PRE.rmsvM[1].mean.y,rmsvM[1].mean.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (415): * Single equations (assignments): 394 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 2 {6 9,6 45} Notification: Performance of prepare postOptimizeDAE: time 0.001411/1.794, allocations: 343.9 kB / 0.8008 GB, free: 76.19 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001008/1.795, allocations: 255.9 kB / 0.8011 GB, free: 75.96 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01517/1.811, allocations: 5.651 MB / 0.8066 GB, free: 71.13 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001528/1.811, allocations: 87.31 kB / 0.8067 GB, free: 71.05 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-05/1.811, allocations: 0 / 0.8067 GB, free: 71.05 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001118/1.811, allocations: 22.28 kB / 0.8067 GB, free: 71.05 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03139/1.842, allocations: 12.52 MB / 0.8189 GB, free: 60.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.203e-05/1.842, allocations: 3.391 kB / 0.8189 GB, free: 60.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005218/1.848, allocations: 0.5842 MB / 0.8195 GB, free: 60.15 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004124/1.852, allocations: 1.379 MB / 0.8209 GB, free: 58.99 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001063/1.853, allocations: 98.95 kB / 0.821 GB, free: 58.91 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006137/1.859, allocations: 4.56 MB / 0.8254 GB, free: 54.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/1.859, allocations: 7.953 kB / 0.8254 GB, free: 54.5 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02387/1.883, allocations: 9.719 MB / 0.8349 GB, free: 45.86 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001175/1.884, allocations: 403.6 kB / 0.8353 GB, free: 45.46 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001611/1.886, allocations: 87.17 kB / 0.8354 GB, free: 45.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004071/1.89, allocations: 220.5 kB / 0.8356 GB, free: 45.23 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001399/1.892, allocations: 290.4 kB / 0.8359 GB, free: 45.05 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005324/1.892, allocations: 126.4 kB / 0.836 GB, free: 44.94 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002318/1.894, allocations: 1.092 MB / 0.837 GB, free: 43.98 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.91e-07/1.894, allocations: 0 / 0.837 GB, free: 43.98 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005805/1.9, allocations: 1.265 MB / 0.8383 GB, free: 42.71 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 18 (inductorQS.pin_p.reference.gamma,sineVoltageQM.plug_p.reference.gamma,inductorM.inductor[1].i,inductorM.inductor[2].i,inductorM.inductor[3].i,rmsvM[1].mean.x,rmsvM[2].mean.x,rmsvM[3].mean.x,rmsiM[1].mean.x,rmsiM[2].mean.x,rmsiM[3].mean.x,meanpowerM[1].x,meanpowerM[2].x,meanpowerM[3].x,inductorA.i,rmsvA.mean.x,rmsiA.mean.x,meanpowerA.x) * Number of discrete variables: 24 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rmsvM[1].mean.y,rmsvM[2].mean.y,rmsvM[3].mean.y,rmsiM[1].mean.y,rmsiM[2].mean.y,rmsiM[3].mean.y,meanpowerM[1].y,meanpowerM[2].y,meanpowerM[3].y,$whenCondition12,$whenCondition11,$whenCondition10,rmsvA.mean.y,rmsiA.mean.y,meanpowerA.y) * Number of discrete states: 12 (meanpowerA.x,rmsiA.mean.x,rmsvA.mean.x,rmsvM[1].mean.x,rmsvM[2].mean.x,rmsvM[3].mean.x,rmsiM[1].mean.x,rmsiM[2].mean.x,rmsiM[3].mean.x,meanpowerM[1].x,meanpowerM[2].x,meanpowerM[3].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (322): * Single equations (assignments): 289 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 12 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 2 {6 9,6 45} Notification: Performance of Backend phase and start with SimCode phase: time 0.001447/1.902, allocations: 305.5 kB / 0.8386 GB, free: 42.46 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01465/1.916, allocations: 5.643 MB / 0.8441 GB, free: 37.48 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.143e-05/1.917, allocations: 320 / 0.8441 GB, free: 37.48 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008484/1.925, allocations: 3.153 MB / 0.8472 GB, free: 34.68 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004239/1.929, allocations: 398.7 kB / 0.8475 GB, free: 34.37 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02347/1.953, allocations: 8.709 MB / 0.856 GB, free: 26.7 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0053/1.958, allocations: 3.368 MB / 0.8593 GB, free: 24.07 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0021/1.96, allocations: 242.5 kB / 0.8596 GB, free: 23.85 MB / 0.4948 GB Notification: Performance of SimCode: time 1.974e-06/1.96, allocations: 0 / 0.8596 GB, free: 23.85 MB / 0.4948 GB Notification: Performance of Templates: time 0.5732/2.534, allocations: 123.7 MB / 0.9804 GB, free: 90.25 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/MulitSensorTest/MulitSensorTest.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches