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.00117/0.00117, allocations: 112.9 kB / 17.05 MB, free: 6.086 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.001292/0.001292, allocations: 187 kB / 17.99 MB, free: 5.184 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.526/1.526, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001046/0.001046, allocations: 43.94 kB / 351.3 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.345/0.3461, allocations: 49.43 MB / 400.7 MB, free: 9 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.003691/0.3498, allocations: 1.92 MB / 402.6 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002054/0.3519, allocations: 1.095 MB / 403.7 MB, free: 6.051 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001545/0.3521, allocations: 7.938 kB / 403.7 MB, free: 6.043 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006286/0.3527, allocations: 143.5 kB / 403.9 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003048/0.353, allocations: 119.5 kB / 404 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000569/0.3536, allocations: 217.7 kB / 404.2 MB, free: 5.574 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002365/0.3539, allocations: 191.4 kB / 404.4 MB, free: 5.387 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.354, allocations: 29.67 kB / 404.4 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001066/0.3541, allocations: 79.69 kB / 404.5 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001125/0.3542, allocations: 75.62 kB / 404.6 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.8e-05/0.3543, allocations: 8 kB / 404.6 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001436/0.3544, allocations: 59.91 kB / 404.6 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.123e-05/0.3545, allocations: 43.84 kB / 404.7 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.603e-05/0.3546, allocations: 75.53 kB / 404.7 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003281/0.3549, allocations: 223 kB / 405 MB, free: 4.801 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3549, allocations: 0 / 405 MB, free: 4.801 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3549, allocations: 0 / 405 MB, free: 4.801 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.251e-06/0.355, allocations: 0 / 405 MB, free: 4.801 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.0008076/0.3558, allocations: 0.5193 MB / 405.5 MB, free: 4.227 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.3558, allocations: 11.89 kB / 405.5 MB, free: 4.215 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.538e-05/0.3559, allocations: 28.73 kB / 405.5 MB, free: 4.188 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003462/0.3562, allocations: 278.9 kB / 405.8 MB, free: 3.879 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.614e-05/0.3563, allocations: 12.36 kB / 405.8 MB, free: 3.867 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.144e-05/0.3563, allocations: 8.125 kB / 405.8 MB, free: 3.859 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000355/0.3566, allocations: 171.5 kB / 406 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.3567, allocations: 0 / 406 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.325e-05/0.3567, allocations: 0 / 406 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.3567, allocations: 7.984 kB / 406 MB, free: 3.656 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001053/0.3568, allocations: 35.92 kB / 406 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004702/0.3573, allocations: 379.2 kB / 406.4 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002775/0.3576, allocations: 138.5 kB / 406.5 MB, free: 3.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001076/0.3577, allocations: 59.41 kB / 406.6 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.294e-05/0.3577, allocations: 3.938 kB / 406.6 MB, free: 2.945 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001653/0.3579, allocations: 75.39 kB / 406.7 MB, free: 2.859 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.493e-06/0.3579, allocations: 0 / 406.7 MB, free: 2.859 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003636/0.3583, allocations: 161.4 kB / 406.8 MB, free: 2.695 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.269e-05/0.3584, allocations: 162.2 kB / 407 MB, free: 2.5 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002816/0.3587, allocations: 265 kB / 407.2 MB, free: 2.227 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.634e-05/0.3587, allocations: 38.02 kB / 407.3 MB, free: 2.184 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.553e-05/0.3588, allocations: 120.4 kB / 407.4 MB, free: 2.059 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.896e-05/0.3588, allocations: 23.83 kB / 407.4 MB, free: 2.035 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.115e-05/0.3589, allocations: 29.67 kB / 407.4 MB, free: 2 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.359, allocations: 338.8 kB / 407.8 MB, free: 1.66 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.66e-05/0.3591, allocations: 23.98 kB / 407.8 MB, free: 1.637 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.979e-05/0.3592, allocations: 81.47 kB / 407.9 MB, free: 1.531 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000147/0.3594, allocations: 97.91 kB / 408 MB, free: 1.414 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3594, allocations: 0 / 408 MB, free: 1.414 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002111/0.3596, allocations: 125.5 kB / 408.1 MB, free: 1.285 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.3596, allocations: 4 kB / 408.1 MB, free: 1.281 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.3596, allocations: 4 kB / 408.1 MB, free: 1.277 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.3596, allocations: 4 kB / 408.1 MB, free: 1.273 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.39e-05/0.3597, allocations: 15.92 kB / 408.1 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.3597, allocations: 8.188 kB / 408.1 MB, free: 1.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.192e-05/0.3598, allocations: 11.89 kB / 408.1 MB, free: 1.238 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.188e-05/0.3598, allocations: 8 kB / 408.2 MB, free: 1.23 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.0001185/0.36, allocations: 141.8 kB / 408.3 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.3601, allocations: 73.53 kB / 408.4 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.221e-05/0.3601, allocations: 25.7 kB / 408.4 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.3601, allocations: 4.094 kB / 408.4 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.3602, allocations: 4 kB / 408.4 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.3602, allocations: 3.938 kB / 408.4 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001971/0.3604, allocations: 237.7 kB / 408.6 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.3604, allocations: 0 / 408.6 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.904e-05/0.3604, allocations: 11.94 kB / 408.6 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.3604, allocations: 4 kB / 408.6 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.3604, allocations: 11.92 kB / 408.7 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.6e-06/0.3605, allocations: 4 kB / 408.7 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3605, allocations: 0 / 408.7 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002522/0.3607, allocations: 171.4 kB / 408.8 MB, free: 468 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.377e-05/0.3608, allocations: 113 kB / 408.9 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.705e-05/0.3608, allocations: 0 / 408.9 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.698e-05/0.3609, allocations: 7.984 kB / 408.9 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.143e-05/0.361, allocations: 8 kB / 409 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.545e-05/0.361, allocations: 11.94 kB / 409 MB, free: 308 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001843/0.3612, allocations: 196.5 kB / 409.2 MB, free: 112 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3612, allocations: 0 / 409.2 MB, free: 112 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002891/0.3615, allocations: 31.94 kB / 409.2 MB, free: 80 kB / 318.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.0009587/0.3624, allocations: 429.3 kB / 409.6 MB, free: 15.81 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002227/0.3627, allocations: 84.16 kB / 409.7 MB, free: 15.73 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3627, allocations: 0 / 409.7 MB, free: 15.73 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.022e-05/0.3628, allocations: 23.98 kB / 409.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004273/0.3632, allocations: 83.52 kB / 409.8 MB, free: 15.63 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005598/0.3638, allocations: 329.7 kB / 410.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003346/0.3641, allocations: 0.7397 MB / 410.9 MB, free: 14.51 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.605e-05/0.3642, allocations: 25.48 kB / 410.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.7e-05/0.3643, allocations: 15.44 kB / 410.9 MB, free: 14.47 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3643, allocations: 0 / 410.9 MB, free: 14.47 MB / 334.1 MB Notification: Performance of Templates: time 0.007675/0.372, allocations: 2.673 MB / 413.6 MB, free: 11.83 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","/var/lib/jenkins/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