Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001197/0.001197, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 226.6 MB / 244.3 MB, free: 8.316 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007206/0.0007206, allocations: 106 kB / 296.4 MB, free: 7.023 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002394/0.0002397, allocations: 4 kB / 356.2 MB, free: 11.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2385, allocations: 51.31 MB / 407.5 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.001848/0.2404, allocations: 1.602 MB / 409.1 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001428/0.2418, allocations: 1.218 MB / 410.3 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.242, allocations: 0 / 410.3 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002707/0.2422, allocations: 65.5 kB / 410.4 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002431/0.2425, allocations: 107.6 kB / 410.5 MB, free: 24.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005337/0.243, allocations: 219.1 kB / 410.7 MB, free: 24.65 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001593/0.2432, allocations: 167.5 kB / 410.9 MB, free: 24.48 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.854e-05/0.2433, allocations: 35.44 kB / 410.9 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.112e-05/0.2434, allocations: 67.64 kB / 411 MB, free: 24.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.818e-05/0.2435, allocations: 72.33 kB / 411 MB, free: 24.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.926e-05/0.2435, allocations: 4 kB / 411 MB, free: 24.31 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001059/0.2437, allocations: 44.58 kB / 411.1 MB, free: 24.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.598e-05/0.2437, allocations: 55.75 kB / 411.1 MB, free: 24.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.772e-05/0.2438, allocations: 56.48 kB / 411.2 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001709/0.2439, allocations: 176.6 kB / 411.4 MB, free: 23.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.2439, allocations: 0 / 411.4 MB, free: 23.98 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.244, allocations: 0 / 411.4 MB, free: 23.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.244, allocations: 0 / 411.4 MB, free: 23.98 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005304/0.2445, allocations: 0.5116 MB / 411.9 MB, free: 23.42 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.2445, allocations: 10.5 kB / 411.9 MB, free: 23.41 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.063e-05/0.2446, allocations: 27.62 kB / 411.9 MB, free: 23.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002714/0.2449, allocations: 290.4 kB / 412.2 MB, free: 23.06 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.795e-05/0.2449, allocations: 4 kB / 412.2 MB, free: 23.05 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.688e-05/0.2449, allocations: 11.94 kB / 412.2 MB, free: 23.04 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002974/0.2452, allocations: 181.2 kB / 412.4 MB, free: 22.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.2452, allocations: 0 / 412.4 MB, free: 22.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.2453, allocations: 4 kB / 412.4 MB, free: 22.83 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.2453, allocations: 4 kB / 412.4 MB, free: 22.83 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001058/0.2454, allocations: 43.91 kB / 412.4 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003943/0.2458, allocations: 399.2 kB / 412.8 MB, free: 22.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002092/0.246, allocations: 142.5 kB / 413 MB, free: 22.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.314e-05/0.2461, allocations: 55.42 kB / 413 MB, free: 22.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/0.2461, allocations: 11.94 kB / 413 MB, free: 22.08 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001571/0.2463, allocations: 79.28 kB / 413.1 MB, free: 21.99 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.513e-06/0.2463, allocations: 0 / 413.1 MB, free: 21.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003383/0.2467, allocations: 173.6 kB / 413.3 MB, free: 21.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.457e-05/0.2467, allocations: 191.9 kB / 413.5 MB, free: 21.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002642/0.247, allocations: 339 kB / 413.8 MB, free: 21.24 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.41e-05/0.247, allocations: 33.64 kB / 413.8 MB, free: 21.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.113e-05/0.2471, allocations: 128.4 kB / 414 MB, free: 21.07 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.007e-05/0.2471, allocations: 19.8 kB / 414 MB, free: 21.05 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.532e-06/0.2471, allocations: 4 kB / 414 MB, free: 21.05 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.503e-05/0.2472, allocations: 334.8 kB / 414.3 MB, free: 20.71 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.487e-05/0.2472, allocations: 27.98 kB / 414.3 MB, free: 20.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.719e-05/0.2473, allocations: 108.1 kB / 414.4 MB, free: 20.55 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.615e-05/0.2474, allocations: 39.92 kB / 414.5 MB, free: 20.51 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2475, allocations: 0 / 414.5 MB, free: 20.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000206/0.2477, allocations: 137.3 kB / 414.6 MB, free: 20.37 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/0.2477, allocations: 4 kB / 414.6 MB, free: 20.37 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.2477, allocations: 4 kB / 414.6 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.2477, allocations: 8.172 kB / 414.6 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.2478, allocations: 23.94 kB / 414.7 MB, free: 20.33 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/0.2478, allocations: 0 / 414.7 MB, free: 20.33 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.223e-05/0.2479, allocations: 19.83 kB / 414.7 MB, free: 20.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.698e-06/0.2479, allocations: 8 kB / 414.7 MB, free: 20.3 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.000102/0.2481, allocations: 153.8 kB / 414.8 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.812e-05/0.2481, allocations: 85.38 kB / 414.9 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.72e-05/0.2482, allocations: 29.83 kB / 414.9 MB, free: 20.03 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.2482, allocations: 4 kB / 414.9 MB, free: 20.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.2482, allocations: 0 / 414.9 MB, free: 20.02 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.2482, allocations: 4 kB / 415 MB, free: 20.02 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001404/0.2484, allocations: 245.6 kB / 415.2 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.2484, allocations: 0 / 415.2 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.051e-05/0.2484, allocations: 24.23 kB / 415.2 MB, free: 19.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.2485, allocations: 3.938 kB / 415.2 MB, free: 19.7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.208e-05/0.2485, allocations: 12 kB / 415.2 MB, free: 19.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.2485, allocations: 3.984 kB / 415.2 MB, free: 19.69 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2485, allocations: 4 kB / 415.2 MB, free: 19.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000216/0.2487, allocations: 179.3 kB / 415.4 MB, free: 19.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.206e-05/0.2488, allocations: 128.7 kB / 415.5 MB, free: 19.34 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.891e-05/0.2488, allocations: 4 kB / 415.5 MB, free: 19.33 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.192e-05/0.2489, allocations: 8 kB / 415.6 MB, free: 19.32 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.415e-05/0.249, allocations: 11.98 kB / 415.6 MB, free: 19.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.584e-05/0.249, allocations: 4 kB / 415.6 MB, free: 19.31 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001755/0.2492, allocations: 249.9 kB / 415.8 MB, free: 19.06 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2492, allocations: 0 / 415.8 MB, free: 19.06 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002334/0.2494, allocations: 35.98 kB / 415.8 MB, free: 19.03 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000771/0.2502, allocations: 427 kB / 416.3 MB, free: 18.74 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001965/0.2504, allocations: 83.84 kB / 416.3 MB, free: 18.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2504, allocations: 0 / 416.3 MB, free: 18.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.75e-05/0.2505, allocations: 27.98 kB / 416.4 MB, free: 18.63 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003887/0.2509, allocations: 76.62 kB / 416.4 MB, free: 18.56 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004927/0.2514, allocations: 464.4 kB / 416.9 MB, free: 18.07 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000168/0.2516, allocations: 0.744 MB / 417.6 MB, free: 17.3 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.532e-05/0.2516, allocations: 23.44 kB / 417.7 MB, free: 17.28 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2516, allocations: 4 kB / 417.7 MB, free: 17.27 MB / 298.7 MB Notification: Performance of Templates: time 0.00392/0.2555, allocations: 3.116 MB / 420.8 MB, free: 14.17 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches