Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001263/0.001263, allocations: 95 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001475/0.001475, allocations: 194.4 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.534/1.534, allocations: 227.7 MB / 246.4 MB, free: 11.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2638/0.2638, allocations: 46.19 MB / 344.8 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003054/0.0003054, allocations: 4 kB / 418.8 MB, free: 20.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1451/0.1454, allocations: 63.57 MB / 482.4 MB, free: 4.523 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sensors): time 0.002222/0.1477, allocations: 1.603 MB / 484 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009065/0.1486, allocations: 0.5497 MB / 484.6 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.961e-05/0.1487, allocations: 7.938 kB / 484.6 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001335/0.1488, allocations: 23.86 kB / 484.6 MB, free: 2.324 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000147/0.149, allocations: 31.77 kB / 484.6 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001509/0.1491, allocations: 31.97 kB / 484.7 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001707/0.1493, allocations: 135.5 kB / 484.8 MB, free: 2.129 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001356/0.1495, allocations: 41.86 kB / 484.8 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.545e-05/0.1496, allocations: 47.78 kB / 484.9 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.415e-05/0.1497, allocations: 51.77 kB / 484.9 MB, free: 1.988 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.795e-05/0.1497, allocations: 8 kB / 484.9 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.204e-05/0.1497, allocations: 8 kB / 484.9 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.832e-05/0.1498, allocations: 31.91 kB / 485 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.514e-05/0.1498, allocations: 41.64 kB / 485 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000142/0.1499, allocations: 123.9 kB / 485.1 MB, free: 1.773 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.15, allocations: 0 / 485.1 MB, free: 1.773 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.15, allocations: 0 / 485.1 MB, free: 1.773 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.15, allocations: 0 / 485.1 MB, free: 1.773 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.000621/0.1506, allocations: 431.2 kB / 485.6 MB, free: 1.301 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.1507, allocations: 11.97 kB / 485.6 MB, free: 1.289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.667e-05/0.1507, allocations: 15.81 kB / 485.6 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002192/0.1509, allocations: 194.9 kB / 485.8 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.745e-05/0.151, allocations: 12.28 kB / 485.8 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.262e-05/0.151, allocations: 15.94 kB / 485.8 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003149/0.1513, allocations: 144.7 kB / 485.9 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.1513, allocations: 4 kB / 485.9 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/0.1514, allocations: 4 kB / 485.9 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.1514, allocations: 4 kB / 485.9 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002633/0.1516, allocations: 108.8 kB / 486.1 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009488/0.1526, allocations: 0.6341 MB / 486.7 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002407/0.1528, allocations: 66.58 kB / 486.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.623e-05/0.1529, allocations: 37.02 kB / 486.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.389e-05/0.153, allocations: 7.984 kB / 486.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.411e-05/0.153, allocations: 30.56 kB / 486.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=5): time 2.926e-06/0.153, allocations: 3.938 kB / 486.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003749/0.1534, allocations: 129.5 kB / 487 MB, free: 15.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.224e-05/0.1535, allocations: 55.36 kB / 487 MB, free: 15.69 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001316/0.1536, allocations: 154.9 kB / 487.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.608e-05/0.1536, allocations: 25.7 kB / 487.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.185e-05/0.1537, allocations: 131.5 kB / 487.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.046e-05/0.1537, allocations: 23.73 kB / 487.3 MB, free: 15.33 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.18e-06/0.1537, allocations: 0 / 487.3 MB, free: 15.33 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.1539, allocations: 322.8 kB / 487.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.595e-05/0.154, allocations: 31.98 kB / 487.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001141/0.1541, allocations: 68.2 kB / 487.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000104/0.1543, allocations: 39.98 kB / 487.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.1543, allocations: 0 / 487.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003012/0.1546, allocations: 141.5 kB / 487.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.1546, allocations: 7.938 kB / 487.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.1546, allocations: 4 kB / 487.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.1546, allocations: 0 / 487.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001509/0.1548, allocations: 27.98 kB / 488 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.1548, allocations: 8.062 kB / 488 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.095e-05/0.1549, allocations: 23.84 kB / 488 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.374e-06/0.1549, allocations: 0 / 488 MB, free: 14.64 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.482e-05/0.155, allocations: 125.8 kB / 488.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.907e-05/0.155, allocations: 11.89 kB / 488.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.591e-05/0.1551, allocations: 12.31 kB / 488.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.1551, allocations: 0 / 488.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.247e-06/0.1551, allocations: 0 / 488.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.1551, allocations: 7.953 kB / 488.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002021/0.1553, allocations: 205.6 kB / 488.4 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1553, allocations: 0 / 488.4 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.705e-05/0.1554, allocations: 19.98 kB / 488.4 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.59e-06/0.1554, allocations: 0 / 488.4 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.298e-06/0.1555, allocations: 7.938 kB / 488.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.1555, allocations: 0 / 488.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.1555, allocations: 4.25 kB / 488.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002679/0.1557, allocations: 199.4 kB / 488.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.682e-05/0.1558, allocations: 81.02 kB / 488.7 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.609e-05/0.1558, allocations: 3.938 kB / 488.7 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.612e-05/0.1559, allocations: 19.98 kB / 488.7 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.004e-05/0.156, allocations: 7.984 kB / 488.7 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.406e-06/0.156, allocations: 0 / 488.7 MB, free: 13.86 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.247e-05/0.156, allocations: 111.4 kB / 488.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1561, allocations: 4 kB / 488.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002417/0.1563, allocations: 27.84 kB / 488.8 MB, free: 13.72 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001137/0.1564, allocations: 91.77 kB / 488.9 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002689/0.1567, allocations: 87.95 kB / 489 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1567, allocations: 3.938 kB / 489 MB, free: 13.53 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.1e-05/0.1568, allocations: 31.98 kB / 489 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003251/0.1571, allocations: 16.2 kB / 489.1 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006871/0.1578, allocations: 333.9 kB / 489.4 MB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003315/0.1582, allocations: 0.702 MB / 490.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.596e-05/0.1583, allocations: 16.64 kB / 490.1 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.622e-05/0.1583, allocations: 11.44 kB / 490.1 MB, free: 12.38 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1583, allocations: 0 / 490.1 MB, free: 12.38 MB / 366.1 MB Notification: Performance of Templates: time 0.003386/0.1617, allocations: 0.6039 MB / 490.7 MB, free: 11.78 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.sim & ./ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Magnetic.FluxTubes.Sensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches