Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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) 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(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 112.1 kB / 17.71 MB, free: 5.258 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.001023/0.001023, allocations: 192.1 kB / 18.64 MB, free: 4.34 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.293/1.293, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009744/0.0009744, allocations: 55.92 kB / 351.9 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.244, allocations: 49.43 MB / 401.3 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.00306/0.2471, allocations: 1.914 MB / 403.3 MB, free: 6.984 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001604/0.2487, allocations: 1.091 MB / 404.4 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.2488, allocations: 7.938 kB / 404.4 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005203/0.2494, allocations: 147.5 kB / 404.5 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002689/0.2496, allocations: 111.5 kB / 404.6 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005001/0.2502, allocations: 218.7 kB / 404.8 MB, free: 5.414 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002158/0.2504, allocations: 187.5 kB / 405 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001207/0.2505, allocations: 33.66 kB / 405 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.875e-05/0.2506, allocations: 79.69 kB / 405.1 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001076/0.2507, allocations: 79.56 kB / 405.2 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.228e-05/0.2508, allocations: 12 kB / 405.2 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001182/0.2509, allocations: 59.95 kB / 405.3 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.239e-05/0.251, allocations: 39.84 kB / 405.3 MB, free: 4.93 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.326e-05/0.251, allocations: 71.55 kB / 405.4 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002617/0.2513, allocations: 220.3 kB / 405.6 MB, free: 4.648 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.2513, allocations: 0 / 405.6 MB, free: 4.648 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2513, allocations: 0 / 405.6 MB, free: 4.648 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.2513, allocations: 0 / 405.6 MB, free: 4.648 MB / 318.1 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.0007143/0.2521, allocations: 0.5157 MB / 406.1 MB, free: 4.078 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.2521, allocations: 11.89 kB / 406.1 MB, free: 4.066 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.731e-05/0.2522, allocations: 24.75 kB / 406.1 MB, free: 4.043 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003319/0.2525, allocations: 282.6 kB / 406.4 MB, free: 3.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.712e-05/0.2525, allocations: 12.31 kB / 406.4 MB, free: 3.719 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.709e-05/0.2525, allocations: 8.125 kB / 406.4 MB, free: 3.711 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003306/0.2529, allocations: 175.5 kB / 406.6 MB, free: 3.512 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.2529, allocations: 0 / 406.6 MB, free: 3.512 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/0.2529, allocations: 0 / 406.6 MB, free: 3.512 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.2529, allocations: 4 kB / 406.6 MB, free: 3.508 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001005/0.253, allocations: 39.92 kB / 406.7 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004519/0.2535, allocations: 367.2 kB / 407 MB, free: 3.051 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002264/0.2537, allocations: 134.5 kB / 407.1 MB, free: 2.883 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000106/0.2539, allocations: 55.36 kB / 407.2 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.2539, allocations: 7.984 kB / 407.2 MB, free: 2.809 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001562/0.254, allocations: 75.39 kB / 407.3 MB, free: 2.723 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.663e-06/0.2541, allocations: 4 kB / 407.3 MB, free: 2.719 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.000356/0.2544, allocations: 153.3 kB / 407.4 MB, free: 2.562 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.409e-05/0.2545, allocations: 166.1 kB / 407.6 MB, free: 2.363 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002602/0.2548, allocations: 277.2 kB / 407.9 MB, free: 2.078 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.665e-05/0.2548, allocations: 33.7 kB / 407.9 MB, free: 2.039 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.251e-05/0.2549, allocations: 120.5 kB / 408 MB, free: 1.914 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.445e-05/0.2549, allocations: 19.8 kB / 408 MB, free: 1.895 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.525e-05/0.255, allocations: 25.72 kB / 408.1 MB, free: 1.863 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.2551, allocations: 338.8 kB / 408.4 MB, free: 1.523 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.349e-05/0.2552, allocations: 19.98 kB / 408.4 MB, free: 1.504 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.066e-05/0.2553, allocations: 83.72 kB / 408.5 MB, free: 1.395 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001456/0.2554, allocations: 97.91 kB / 408.6 MB, free: 1.277 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.2554, allocations: 0 / 408.6 MB, free: 1.277 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002095/0.2556, allocations: 125.4 kB / 408.7 MB, free: 1.148 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.2557, allocations: 8 kB / 408.7 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.2557, allocations: 0 / 408.7 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.2557, allocations: 4.188 kB / 408.7 MB, free: 1.137 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.798e-05/0.2558, allocations: 19.92 kB / 408.7 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.2558, allocations: 4 kB / 408.7 MB, free: 1.113 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.224e-05/0.2559, allocations: 11.84 kB / 408.8 MB, free: 1.102 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/0.2559, allocations: 8 kB / 408.8 MB, free: 1.094 MB / 318.1 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001157/0.256, allocations: 149.7 kB / 408.9 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.2561, allocations: 77.38 kB / 409 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.184e-05/0.2562, allocations: 33.72 kB / 409 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.2562, allocations: 4.312 kB / 409 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.2562, allocations: 0 / 409 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.2562, allocations: 3.938 kB / 409 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001871/0.2564, allocations: 237.5 kB / 409.3 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2564, allocations: 3.938 kB / 409.3 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.605e-05/0.2565, allocations: 4 kB / 409.3 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.2565, allocations: 4 kB / 409.3 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.298e-06/0.2565, allocations: 0 / 409.3 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5e-06/0.2565, allocations: 7.984 kB / 409.3 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.061e-06/0.2565, allocations: 0 / 409.3 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002404/0.2568, allocations: 175.3 kB / 409.4 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.99e-05/0.2569, allocations: 116.8 kB / 409.6 MB, free: 184 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.631e-05/0.2569, allocations: 0 / 409.6 MB, free: 184 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.223e-05/0.257, allocations: 4 kB / 409.6 MB, free: 180 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.563e-05/0.257, allocations: 15.98 kB / 409.6 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.546e-05/0.257, allocations: 7.938 kB / 409.6 MB, free: 156 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001893/0.2572, allocations: 200.4 kB / 409.8 MB, free: 15.96 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2572, allocations: 0 / 409.8 MB, free: 15.96 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002496/0.2575, allocations: 32 kB / 409.8 MB, free: 15.93 MB / 334.1 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,sample1.u,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008932/0.2584, allocations: 427.1 kB / 410.2 MB, free: 15.66 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002126/0.2586, allocations: 79.91 kB / 410.3 MB, free: 15.58 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.2586, allocations: 0 / 410.3 MB, free: 15.58 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.733e-05/0.2587, allocations: 27.92 kB / 410.3 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004047/0.2591, allocations: 71.41 kB / 410.4 MB, free: 15.49 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000518/0.2596, allocations: 356 kB / 410.8 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002756/0.2599, allocations: 0.7358 MB / 411.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.308e-05/0.26, allocations: 23.44 kB / 411.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.26, allocations: 3.938 kB / 411.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of Templates: time 0.004554/0.2645, allocations: 2.796 MB / 414.3 MB, free: 11.54 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches