Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.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.Magnetic.FluxTubes.Sensors,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|magneticPotentialDifferenceSensor.Phi|magneticFluxSensor.Phi|magneticPotentialDifferenceSensor.V_m",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors") translateModel(ModelicaTest.Magnetic.FluxTubes.Sensors,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|magneticPotentialDifferenceSensor.Phi|magneticFluxSensor.Phi|magneticPotentialDifferenceSensor.V_m",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008373/0.0008373, allocations: 91.05 kB / 17.35 MB, free: 6.375 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.000914/0.0009144, allocations: 179.7 kB / 18.26 MB, free: 5.52 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.456/1.456, allocations: 223.3 MB / 242.3 MB, free: 14.48 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.2405/0.2405, allocations: 44.25 MB / 337.7 MB, free: 2.422 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003434/0.0003434, allocations: 8.688 kB / 410.3 MB, free: 27.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.1301, allocations: 61.92 MB / 472.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sensors): time 0.002336/0.1325, allocations: 1.613 MB / 473.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009194/0.1334, allocations: 0.5416 MB / 474.4 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.853e-05/0.1335, allocations: 7.938 kB / 474.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001616/0.1337, allocations: 27.8 kB / 474.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001154/0.1338, allocations: 27.83 kB / 474.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001507/0.134, allocations: 31.97 kB / 474.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001923/0.1342, allocations: 147.4 kB / 474.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001722/0.1343, allocations: 57.72 kB / 474.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001357/0.1345, allocations: 51.83 kB / 474.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.518e-05/0.1346, allocations: 59.7 kB / 474.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.648e-05/0.1346, allocations: 8 kB / 474.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.352e-05/0.1346, allocations: 8 kB / 474.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.924e-05/0.1347, allocations: 19.92 kB / 474.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.724e-05/0.1348, allocations: 81.38 kB / 474.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001754/0.135, allocations: 159.6 kB / 475.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.135, allocations: 0 / 475.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.135, allocations: 0 / 475.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.135, allocations: 0 / 475.1 MB, free: 10.46 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.0006091/0.1356, allocations: 425.6 kB / 475.5 MB, free: 9.992 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.1357, allocations: 8.031 kB / 475.5 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.936e-05/0.1357, allocations: 16.75 kB / 475.5 MB, free: 9.969 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002168/0.1359, allocations: 204 kB / 475.7 MB, free: 9.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.136, allocations: 12.64 kB / 475.7 MB, free: 9.719 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.293e-05/0.136, allocations: 16.36 kB / 475.7 MB, free: 9.703 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003476/0.1363, allocations: 156.1 kB / 475.9 MB, free: 9.547 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.769e-06/0.1364, allocations: 0 / 475.9 MB, free: 9.547 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.078e-05/0.1364, allocations: 8 kB / 475.9 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.293e-06/0.1364, allocations: 0 / 475.9 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002965/0.1367, allocations: 116.8 kB / 476 MB, free: 9.426 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001077/0.1378, allocations: 0.6184 MB / 476.6 MB, free: 8.738 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000271/0.1381, allocations: 70.56 kB / 476.7 MB, free: 8.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001174/0.1382, allocations: 45.02 kB / 476.7 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.909e-05/0.1382, allocations: 0 / 476.7 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.417e-05/0.1383, allocations: 34.55 kB / 476.8 MB, free: 8.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.172e-06/0.1383, allocations: 0 / 476.8 MB, free: 8.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0004181/0.1387, allocations: 129.5 kB / 476.9 MB, free: 8.438 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.046e-05/0.1388, allocations: 51.41 kB / 477 MB, free: 8.375 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001342/0.1389, allocations: 156 kB / 477.1 MB, free: 8.215 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.521e-05/0.1389, allocations: 25.7 kB / 477.1 MB, free: 8.184 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.105e-05/0.139, allocations: 139.4 kB / 477.3 MB, free: 8.043 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.537e-05/0.139, allocations: 19.73 kB / 477.3 MB, free: 8.023 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.063e-05/0.1391, allocations: 17.72 kB / 477.3 MB, free: 8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.1392, allocations: 322.8 kB / 477.6 MB, free: 7.676 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.1393, allocations: 31.98 kB / 477.7 MB, free: 7.645 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001272/0.1395, allocations: 72.2 kB / 477.7 MB, free: 7.559 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002282/0.1397, allocations: 104.2 kB / 477.8 MB, free: 7.441 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/0.1397, allocations: 0 / 477.8 MB, free: 7.441 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003039/0.14, allocations: 137.4 kB / 478 MB, free: 7.301 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.14, allocations: 7.984 kB / 478 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.1401, allocations: 4 kB / 478 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.1401, allocations: 0 / 478 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001427/0.1402, allocations: 43.8 kB / 478 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.1402, allocations: 0 / 478 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.98e-05/0.1403, allocations: 15.98 kB / 478 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.186e-06/0.1404, allocations: 4.281 kB / 478 MB, free: 7.227 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001028/0.1405, allocations: 125.8 kB / 478.2 MB, free: 7.094 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.976e-05/0.1405, allocations: 7.906 kB / 478.2 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.824e-05/0.1406, allocations: 12.3 kB / 478.2 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.1406, allocations: 11.94 kB / 478.2 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.1406, allocations: 0 / 478.2 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.1406, allocations: 3.984 kB / 478.2 MB, free: 7.062 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002129/0.1408, allocations: 209.5 kB / 478.4 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.1408, allocations: 0 / 478.4 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.2e-05/0.1409, allocations: 27.92 kB / 478.4 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.1409, allocations: 0 / 478.4 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.095e-06/0.1409, allocations: 0 / 478.4 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.1409, allocations: 3.938 kB / 478.4 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.1409, allocations: 80 / 478.4 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002903/0.1412, allocations: 195.4 kB / 478.6 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.243e-05/0.1413, allocations: 89 kB / 478.7 MB, free: 6.465 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.744e-05/0.1413, allocations: 0 / 478.7 MB, free: 6.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.533e-05/0.1414, allocations: 11.94 kB / 478.7 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.419e-05/0.1415, allocations: 7.984 kB / 478.7 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.06e-06/0.1415, allocations: 4 kB / 478.7 MB, free: 6.441 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.206e-05/0.1416, allocations: 112.2 kB / 478.8 MB, free: 6.332 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1416, allocations: 0 / 478.8 MB, free: 6.332 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002395/0.1418, allocations: 27.94 kB / 478.9 MB, free: 6.305 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.912e-05/0.1419, allocations: 95.72 kB / 479 MB, free: 6.199 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002722/0.1422, allocations: 87.94 kB / 479 MB, free: 6.113 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1422, allocations: 0 / 479 MB, free: 6.113 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001027/0.1423, allocations: 31.98 kB / 479.1 MB, free: 6.082 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.1426, allocations: 7.984 kB / 479.1 MB, free: 6.074 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000529/0.1432, allocations: 345.7 kB / 479.4 MB, free: 5.711 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002751/0.1435, allocations: 0.7157 MB / 480.1 MB, free: 4.969 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.405e-05/0.1435, allocations: 0.6719 kB / 480.1 MB, free: 4.961 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.597e-05/0.1435, allocations: 11.44 kB / 480.2 MB, free: 4.953 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1435, allocations: 0 / 480.2 MB, free: 4.953 MB / 350.1 MB Notification: Performance of Templates: time 0.003031/0.1466, allocations: 0.6236 MB / 480.8 MB, free: 4.336 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.sim & ./ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sensors/Sensors.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches