Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.conf.json 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/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Sensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass.s|mass.v",fileNamePrefix="Modelica_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00102/0.001019, allocations: 197.4 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.507/1.507, allocations: 226.5 MB / 244.7 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008722/0.0008722, allocations: 100.8 kB / 296.8 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002411/0.0002411, allocations: 8 kB / 356.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2046/0.2049, allocations: 51.3 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.001573/0.2065, allocations: 1.641 MB / 409.7 MB, free: 26.06 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006523/0.2071, allocations: 0.5128 MB / 410.2 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.247e-05/0.2072, allocations: 4 kB / 410.2 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.666e-05/0.2073, allocations: 9.578 kB / 410.2 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.735e-05/0.2074, allocations: 23.78 kB / 410.2 MB, free: 25.51 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001771/0.2076, allocations: 45.02 kB / 410.3 MB, free: 25.47 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000136/0.2077, allocations: 135.5 kB / 410.4 MB, free: 25.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000134/0.2079, allocations: 59.44 kB / 410.5 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001123/0.208, allocations: 48.95 kB / 410.5 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.93e-05/0.2081, allocations: 59.69 kB / 410.6 MB, free: 25.17 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.871e-05/0.2081, allocations: 10.34 kB / 410.6 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.502e-05/0.2082, allocations: 12 kB / 410.6 MB, free: 25.15 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.925e-05/0.2082, allocations: 23.92 kB / 410.6 MB, free: 25.13 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.85e-05/0.2082, allocations: 81.44 kB / 410.7 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001154/0.2084, allocations: 116.7 kB / 410.8 MB, free: 24.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.2084, allocations: 3.938 kB / 410.8 MB, free: 24.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2084, allocations: 2.969 kB / 410.8 MB, free: 24.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.2084, allocations: 0 / 410.8 MB, free: 24.93 MB / 298.7 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.0004198/0.2088, allocations: 426.8 kB / 411.2 MB, free: 24.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.319e-05/0.2089, allocations: 11.97 kB / 411.2 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001393/0.209, allocations: 32.73 kB / 411.3 MB, free: 24.42 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001443/0.2092, allocations: 208.1 kB / 411.5 MB, free: 24.18 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/0.2092, allocations: 8.375 kB / 411.5 MB, free: 24.17 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.878e-05/0.2092, allocations: 20.38 kB / 411.5 MB, free: 24.15 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002307/0.2094, allocations: 142.5 kB / 411.6 MB, free: 24 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.2095, allocations: 0 / 411.6 MB, free: 24 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.599e-05/0.2095, allocations: 8 kB / 411.7 MB, free: 24 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.2095, allocations: 4 kB / 411.7 MB, free: 23.99 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001699/0.2097, allocations: 99.69 kB / 411.8 MB, free: 23.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005814/0.2103, allocations: 0.5289 MB / 412.3 MB, free: 23.31 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001325/0.2104, allocations: 74.5 kB / 412.4 MB, free: 23.23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.055e-05/0.2105, allocations: 36.84 kB / 412.4 MB, free: 23.19 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.376e-05/0.2105, allocations: 7.984 kB / 412.4 MB, free: 23.18 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.127e-05/0.2105, allocations: 34.56 kB / 412.4 MB, free: 23.14 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.072e-06/0.2105, allocations: 0 / 412.4 MB, free: 23.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007654/0.2113, allocations: 0.6103 MB / 413 MB, free: 22.44 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.899e-05/0.2113, allocations: 59.34 kB / 413.1 MB, free: 22.37 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.771e-05/0.2114, allocations: 135.7 kB / 413.2 MB, free: 22.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.146e-06/0.2114, allocations: 25.7 kB / 413.3 MB, free: 22.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.88e-05/0.2115, allocations: 136 kB / 413.4 MB, free: 22.06 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.037e-05/0.2115, allocations: 39.44 kB / 413.4 MB, free: 22.02 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.523e-06/0.2115, allocations: 4 kB / 413.4 MB, free: 22.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.914e-05/0.2115, allocations: 326.8 kB / 413.8 MB, free: 21.69 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.636e-05/0.2116, allocations: 32.17 kB / 413.8 MB, free: 21.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.654e-05/0.2117, allocations: 85.08 kB / 413.9 MB, free: 21.55 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001472/0.2118, allocations: 138.7 kB / 414 MB, free: 21.39 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.2119, allocations: 0 / 414 MB, free: 21.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002129/0.2121, allocations: 153.4 kB / 414.2 MB, free: 21.23 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.2121, allocations: 4 kB / 414.2 MB, free: 21.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.2121, allocations: 7.938 kB / 414.2 MB, free: 21.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.2121, allocations: 0 / 414.2 MB, free: 21.22 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001381/0.2123, allocations: 48.16 kB / 414.2 MB, free: 21.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.2123, allocations: 3.938 kB / 414.2 MB, free: 21.17 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.558e-05/0.2124, allocations: 15.91 kB / 414.2 MB, free: 21.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.011e-05/0.2124, allocations: 8 kB / 414.2 MB, free: 21.15 MB / 298.7 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 6.083e-05/0.2124, allocations: 125.8 kB / 414.4 MB, free: 21.02 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.601e-05/0.2125, allocations: 7.906 kB / 414.4 MB, free: 21.01 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.115e-05/0.2125, allocations: 16.36 kB / 414.4 MB, free: 20.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.2125, allocations: 4 kB / 414.4 MB, free: 20.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.2125, allocations: 7.938 kB / 414.4 MB, free: 20.97 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-06/0.2125, allocations: 0 / 414.4 MB, free: 20.97 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003801/0.2129, allocations: 447.9 kB / 414.8 MB, free: 20.47 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.2129, allocations: 0 / 414.8 MB, free: 20.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.2131, allocations: 31.98 kB / 414.9 MB, free: 20.44 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.2131, allocations: 4 kB / 414.9 MB, free: 20.44 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.298e-06/0.2131, allocations: 192 / 414.9 MB, free: 20.44 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.2131, allocations: 0 / 414.9 MB, free: 20.44 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.2131, allocations: 11.88 kB / 414.9 MB, free: 20.43 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002561/0.2134, allocations: 260.8 kB / 415.1 MB, free: 20.15 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.256e-05/0.2134, allocations: 85.05 kB / 415.2 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.749e-05/0.2134, allocations: 4 kB / 415.2 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.622e-05/0.2135, allocations: 4 kB / 415.2 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.319e-05/0.2135, allocations: 7.984 kB / 415.2 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-06/0.2135, allocations: 8 kB / 415.2 MB, free: 20.03 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.905e-05/0.2136, allocations: 100.3 kB / 415.3 MB, free: 19.93 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2136, allocations: 0 / 415.3 MB, free: 19.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002336/0.2138, allocations: 24 kB / 415.4 MB, free: 19.91 MB / 298.7 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 7.773e-05/0.2139, allocations: 99.25 kB / 415.5 MB, free: 19.8 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001749/0.2141, allocations: 96.14 kB / 415.6 MB, free: 19.71 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2141, allocations: 4 kB / 415.6 MB, free: 19.7 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.406e-05/0.2142, allocations: 39.92 kB / 415.6 MB, free: 19.66 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.2145, allocations: 19.92 kB / 415.6 MB, free: 19.64 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005792/0.2151, allocations: 0.5364 MB / 416.2 MB, free: 19.07 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001034/0.2152, allocations: 0.716 MB / 416.9 MB, free: 18.33 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.322e-05/0.2152, allocations: 15.44 kB / 416.9 MB, free: 18.32 MB / 298.7 MB Notification: Performance of SimCode: time 3.11e-07/0.2152, allocations: 0 / 416.9 MB, free: 18.32 MB / 298.7 MB Notification: Performance of Templates: time 0.002208/0.2174, allocations: 1.43 MB / 418.3 MB, free: 16.89 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Sensors/Sensors.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches