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.001253/0.001253, allocations: 110.3 kB / 17.06 MB, free: 6.129 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.001327/0.001327, allocations: 191 kB / 18 MB, free: 5.207 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.533/1.533, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009941/0.0009941, allocations: 51.92 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3898/0.3908, allocations: 49.43 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.003516/0.3944, allocations: 1.916 MB / 402.6 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002092/0.3965, allocations: 1.079 MB / 403.7 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000166/0.3967, allocations: 4 kB / 403.7 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007199/0.3974, allocations: 155.5 kB / 403.9 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000331/0.3978, allocations: 115.5 kB / 404 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006822/0.3985, allocations: 205 kB / 404.2 MB, free: 5.398 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002836/0.3988, allocations: 203.4 kB / 404.4 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.3989, allocations: 37.66 kB / 404.4 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001164/0.3991, allocations: 79.62 kB / 404.5 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001175/0.3992, allocations: 75.62 kB / 404.6 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.943e-05/0.3992, allocations: 12 kB / 404.6 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001528/0.3994, allocations: 51.97 kB / 404.6 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.703e-05/0.3995, allocations: 51.77 kB / 404.7 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000107/0.3996, allocations: 71.55 kB / 404.8 MB, free: 4.824 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000343/0.3999, allocations: 211 kB / 405 MB, free: 4.621 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.261e-06/0.3999, allocations: 0 / 405 MB, free: 4.621 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.4, allocations: 8 kB / 405 MB, free: 4.613 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.4, allocations: 0 / 405 MB, free: 4.613 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.000859/0.4008, allocations: 0.517 MB / 405.5 MB, free: 4.043 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.4009, allocations: 15.89 kB / 405.5 MB, free: 4.027 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.781e-05/0.401, allocations: 16.75 kB / 405.5 MB, free: 4.012 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000421/0.4014, allocations: 282.7 kB / 405.8 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.75e-05/0.4014, allocations: 384 / 405.8 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.058e-05/0.4014, allocations: 16.12 kB / 405.8 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004019/0.4019, allocations: 163.5 kB / 406 MB, free: 3.496 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.4019, allocations: 0 / 406 MB, free: 3.496 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.4019, allocations: 8 kB / 406 MB, free: 3.488 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.4019, allocations: 0 / 406 MB, free: 3.488 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001136/0.402, allocations: 47.84 kB / 406 MB, free: 3.441 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005563/0.4026, allocations: 367.2 kB / 406.4 MB, free: 3.023 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000268/0.4029, allocations: 138.5 kB / 406.5 MB, free: 2.852 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.858e-05/0.403, allocations: 55.42 kB / 406.6 MB, free: 2.785 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.119e-05/0.403, allocations: 8 kB / 406.6 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001673/0.4032, allocations: 71.33 kB / 406.6 MB, free: 2.695 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.553e-06/0.4032, allocations: 0 / 406.6 MB, free: 2.695 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004668/0.4037, allocations: 169.8 kB / 406.8 MB, free: 2.523 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.4038, allocations: 154.2 kB / 407 MB, free: 2.336 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000295/0.4041, allocations: 276.8 kB / 407.2 MB, free: 2.051 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.469e-05/0.4041, allocations: 29.7 kB / 407.3 MB, free: 2.016 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.813e-05/0.4042, allocations: 116.4 kB / 407.4 MB, free: 1.895 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.112e-05/0.4043, allocations: 19.8 kB / 407.4 MB, free: 1.875 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.764e-05/0.4043, allocations: 37.8 kB / 407.4 MB, free: 1.832 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.4045, allocations: 330.8 kB / 407.8 MB, free: 1.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.602e-05/0.4046, allocations: 19.98 kB / 407.8 MB, free: 1.48 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/0.4047, allocations: 83.66 kB / 407.9 MB, free: 1.371 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001492/0.4048, allocations: 93.97 kB / 407.9 MB, free: 1.258 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.4049, allocations: 0 / 407.9 MB, free: 1.258 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002247/0.4051, allocations: 141.2 kB / 408.1 MB, free: 1.113 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.4051, allocations: 4 kB / 408.1 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.4051, allocations: 4 kB / 408.1 MB, free: 1.105 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.4051, allocations: 0 / 408.1 MB, free: 1.105 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.912e-05/0.4052, allocations: 15.98 kB / 408.1 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.4053, allocations: 0 / 408.1 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.356e-05/0.4053, allocations: 15.84 kB / 408.1 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.4054, allocations: 8 kB / 408.1 MB, free: 1.066 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.0001479/0.4055, allocations: 149.9 kB / 408.3 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.4056, allocations: 77.44 kB / 408.4 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.137e-05/0.4057, allocations: 25.69 kB / 408.4 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.4057, allocations: 0 / 408.4 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.4057, allocations: 4 kB / 408.4 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.4057, allocations: 3.938 kB / 408.4 MB, free: 0.793 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00022/0.4059, allocations: 233.5 kB / 408.6 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.406, allocations: 4.094 kB / 408.6 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.628e-05/0.406, allocations: 11.94 kB / 408.6 MB, free: 0.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.838e-06/0.406, allocations: 3.984 kB / 408.6 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.406, allocations: 12.11 kB / 408.6 MB, free: 496 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.406, allocations: 3.938 kB / 408.7 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.406, allocations: 4 kB / 408.7 MB, free: 488 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002548/0.4063, allocations: 171.4 kB / 408.8 MB, free: 288 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.351e-05/0.4064, allocations: 112.8 kB / 408.9 MB, free: 156 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.793e-05/0.4064, allocations: 4 kB / 408.9 MB, free: 152 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.422e-05/0.4065, allocations: 7.984 kB / 408.9 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.579e-05/0.4066, allocations: 8 kB / 409 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.574e-05/0.4066, allocations: 7.938 kB / 409 MB, free: 128 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001995/0.4068, allocations: 196.5 kB / 409.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4068, allocations: 3.938 kB / 409.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002633/0.4071, allocations: 39.98 kB / 409.2 MB, free: 15.89 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.001041/0.4081, allocations: 423.2 kB / 409.6 MB, free: 15.63 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002568/0.4084, allocations: 75.84 kB / 409.7 MB, free: 15.56 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.4084, allocations: 4 kB / 409.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.751e-05/0.4085, allocations: 23.98 kB / 409.7 MB, free: 15.53 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005072/0.409, allocations: 72.75 kB / 409.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007435/0.4097, allocations: 325.6 kB / 410.1 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000462/0.4102, allocations: 0.7361 MB / 410.8 MB, free: 14.35 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.786e-05/0.4103, allocations: 21.48 kB / 410.9 MB, free: 14.33 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.709e-05/0.4104, allocations: 27.42 kB / 410.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4104, allocations: 0 / 410.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of Templates: time 0.007544/0.418, allocations: 2.67 MB / 413.6 MB, free: 11.67 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