Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.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 3.2.3+maint.om/package.mo", uses=false) 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 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(Modelica.Mechanics.Translational.Examples.Sensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass.s|mass.v",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors") translateModel(Modelica.Mechanics.Translational.Examples.Sensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass.s|mass.v",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 98.17 kB / 16.95 MB, free: 6.035 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.001406/0.001407, allocations: 173.5 kB / 17.83 MB, free: 5.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.477/1.477, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006265/0.0006266, allocations: 8 kB / 280.8 MB, free: 3.75 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1207, allocations: 47.59 MB / 328.4 MB, free: 4.09 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.002369/0.1231, allocations: 1.624 MB / 330 MB, free: 2.449 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00114/0.1243, allocations: 0.5038 MB / 330.5 MB, free: 1.938 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001608/0.1245, allocations: 4 kB / 330.5 MB, free: 1.934 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001291/0.1246, allocations: 11.86 kB / 330.5 MB, free: 1.922 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001087/0.1248, allocations: 31.75 kB / 330.5 MB, free: 1.891 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002691/0.125, allocations: 35.97 kB / 330.6 MB, free: 1.855 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002564/0.1253, allocations: 135.5 kB / 330.7 MB, free: 1.723 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002146/0.1255, allocations: 58.14 kB / 330.8 MB, free: 1.664 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001726/0.1257, allocations: 55.77 kB / 330.8 MB, free: 1.609 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001453/0.1259, allocations: 47.78 kB / 330.9 MB, free: 1.562 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.94e-05/0.1259, allocations: 8 kB / 330.9 MB, free: 1.555 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.754e-05/0.1259, allocations: 8 kB / 330.9 MB, free: 1.547 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.396e-05/0.126, allocations: 27.91 kB / 330.9 MB, free: 1.52 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.519e-05/0.126, allocations: 49.58 kB / 330.9 MB, free: 1.465 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001767/0.1262, allocations: 127.9 kB / 331.1 MB, free: 1.34 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.1262, allocations: 0 / 331.1 MB, free: 1.34 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1263, allocations: 0 / 331.1 MB, free: 1.34 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.1263, allocations: 4 kB / 331.1 MB, free: 1.336 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0006928/0.127, allocations: 414.9 kB / 331.5 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.127, allocations: 8.031 kB / 331.5 MB, free: 0.875 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.741e-05/0.1271, allocations: 11.91 kB / 331.5 MB, free: 0.8633 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003366/0.1274, allocations: 206.7 kB / 331.7 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.919e-05/0.1275, allocations: 12 kB / 331.7 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.933e-05/0.1275, allocations: 23.94 kB / 331.7 MB, free: 0.5859 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003178/0.1278, allocations: 141.1 kB / 331.9 MB, free: 452 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.1279, allocations: 0 / 331.9 MB, free: 452 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.857e-05/0.1279, allocations: 8 kB / 331.9 MB, free: 444 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.1279, allocations: 4 kB / 331.9 MB, free: 440 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000206/0.1281, allocations: 95.88 kB / 332 MB, free: 344 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008582/0.129, allocations: 0.5249 MB / 332.5 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001642/0.1292, allocations: 86.48 kB / 332.6 MB, free: 15.66 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.096e-05/0.1292, allocations: 36.78 kB / 332.6 MB, free: 15.62 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.794e-05/0.1293, allocations: 4 kB / 332.6 MB, free: 15.62 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.276e-05/0.1293, allocations: 30.56 kB / 332.7 MB, free: 15.58 MB / 286.1 MB Notification: Performance of pre-optimization done (n=9): time 2.535e-06/0.1293, allocations: 3.984 kB / 332.7 MB, free: 15.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.001092/0.1304, allocations: 0.614 MB / 333.3 MB, free: 14.87 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.837e-05/0.1305, allocations: 59.34 kB / 333.3 MB, free: 14.8 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/0.1306, allocations: 129.8 kB / 333.5 MB, free: 14.66 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.721e-05/0.1306, allocations: 25.7 kB / 333.5 MB, free: 14.63 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.307e-05/0.1307, allocations: 128 kB / 333.6 MB, free: 14.5 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.87e-05/0.1308, allocations: 47.28 kB / 333.7 MB, free: 14.45 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.854e-06/0.1308, allocations: 4 kB / 333.7 MB, free: 14.45 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.1309, allocations: 322.8 kB / 334 MB, free: 14.12 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.026e-05/0.131, allocations: 31.98 kB / 334 MB, free: 14.09 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001134/0.1311, allocations: 86.84 kB / 334.1 MB, free: 13.98 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001223/0.1313, allocations: 52.95 kB / 334.1 MB, free: 13.93 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.1313, allocations: 0 / 334.1 MB, free: 13.93 MB / 286.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000283/0.1316, allocations: 165.3 kB / 334.3 MB, free: 13.77 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.1316, allocations: 8 kB / 334.3 MB, free: 13.76 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.1316, allocations: 192 / 334.3 MB, free: 13.76 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.1316, allocations: 8 kB / 334.3 MB, free: 13.75 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001608/0.1318, allocations: 35.92 kB / 334.4 MB, free: 13.71 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/0.1318, allocations: 7.984 kB / 334.4 MB, free: 13.71 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.06e-05/0.1319, allocations: 4 kB / 334.4 MB, free: 13.7 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.442e-05/0.1319, allocations: 12 kB / 334.4 MB, free: 13.69 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (19): * Single equations (assignments): 19 * 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 0.0001157/0.132, allocations: 121.8 kB / 334.5 MB, free: 13.56 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.194e-05/0.1321, allocations: 11.86 kB / 334.5 MB, free: 13.55 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.456e-05/0.1321, allocations: 24.36 kB / 334.5 MB, free: 13.53 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.1321, allocations: 0 / 334.5 MB, free: 13.53 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.1321, allocations: 0 / 334.5 MB, free: 13.53 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.1321, allocations: 0 / 334.5 MB, free: 13.53 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005378/0.1327, allocations: 444 kB / 335 MB, free: 13.03 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.1327, allocations: 8.062 kB / 335 MB, free: 13.02 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001319/0.1328, allocations: 23.98 kB / 335 MB, free: 13 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.1329, allocations: 0 / 335 MB, free: 13 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.31e-05/0.1329, allocations: 8 kB / 335 MB, free: 12.99 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.1329, allocations: 0 / 335 MB, free: 12.99 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.53e-05/0.1329, allocations: 3.938 kB / 335 MB, free: 12.99 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003428/0.1332, allocations: 257.1 kB / 335.3 MB, free: 12.71 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.88e-05/0.1333, allocations: 93.03 kB / 335.4 MB, free: 12.61 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.004e-05/0.1333, allocations: 4 kB / 335.4 MB, free: 12.6 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.733e-05/0.1334, allocations: 0 / 335.4 MB, free: 12.6 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.132e-05/0.1335, allocations: 11.98 kB / 335.4 MB, free: 12.59 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.531e-06/0.1335, allocations: 8.062 kB / 335.4 MB, free: 12.58 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.324e-05/0.1336, allocations: 96.39 kB / 335.5 MB, free: 12.49 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1336, allocations: 3.938 kB / 335.5 MB, free: 12.48 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002697/0.1339, allocations: 28 kB / 335.5 MB, free: 12.46 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mass.s,mass.v) * 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 (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 Backend phase and start with SimCode phase: time 0.0001094/0.134, allocations: 95.25 kB / 335.6 MB, free: 12.35 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002324/0.1342, allocations: 96.39 kB / 335.7 MB, free: 12.26 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.1342, allocations: 192 / 335.7 MB, free: 12.26 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 8.638e-05/0.1343, allocations: 47.86 kB / 335.7 MB, free: 12.21 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003338/0.1347, allocations: 19.89 kB / 335.8 MB, free: 12.19 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00084/0.1355, allocations: 0.5191 MB / 336.3 MB, free: 11.64 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003288/0.1359, allocations: 0.716 MB / 337 MB, free: 10.9 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 6.295e-05/0.1359, allocations: 4.891 kB / 337 MB, free: 10.89 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.641e-05/0.136, allocations: 19.44 kB / 337 MB, free: 10.88 MB / 286.1 MB Notification: Performance of SimCode: time 2.1e-07/0.136, allocations: 0 / 337 MB, free: 10.88 MB / 286.1 MB Notification: Performance of Templates: time 0.003348/0.1393, allocations: 0.7585 MB / 337.8 MB, free: 10.12 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Sensors/Sensors.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches