Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 223.2 MB / 240.3 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009562/0.0009564, allocations: 97.61 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003235/0.0003233, allocations: 8 kB / 351.1 MB, free: 15.12 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2824, allocations: 50.42 MB / 401.5 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1038/0.3863, allocations: 81.06 MB / 482.6 MB, free: 15.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002746/0.3866, allocations: 87.95 kB / 482.6 MB, free: 15.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01606/0.4027, allocations: 5.969 MB / 488.6 MB, free: 9.359 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.4028, allocations: 0 / 488.6 MB, free: 9.359 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.992e-05/0.4028, allocations: 0 / 488.6 MB, free: 9.359 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006951/0.4035, allocations: 0.5041 MB / 489.1 MB, free: 8.801 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.4036, allocations: 16.03 kB / 489.1 MB, free: 8.785 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.842e-05/0.4036, allocations: 19.72 kB / 489.1 MB, free: 8.766 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003971/0.404, allocations: 257.7 kB / 489.4 MB, free: 8.473 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.906e-05/0.4041, allocations: 0 / 489.4 MB, free: 8.473 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.038e-05/0.4041, allocations: 15.98 kB / 489.4 MB, free: 8.457 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000339/0.4044, allocations: 146.7 kB / 489.6 MB, free: 8.289 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.4044, allocations: 0 / 489.6 MB, free: 8.289 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.328e-05/0.4045, allocations: 0 / 489.6 MB, free: 8.289 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.4045, allocations: 7.953 kB / 489.6 MB, free: 8.281 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001065/0.4046, allocations: 31.97 kB / 489.6 MB, free: 8.25 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005345/0.4051, allocations: 374.3 kB / 490 MB, free: 7.828 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002259/0.4054, allocations: 116.1 kB / 490.1 MB, free: 7.688 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.294e-05/0.4054, allocations: 0 / 490.1 MB, free: 7.688 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001526/0.4056, allocations: 91.41 kB / 490.2 MB, free: 7.586 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.282e-06/0.4056, allocations: 0 / 490.2 MB, free: 7.586 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003587/0.4059, allocations: 137.4 kB / 490.3 MB, free: 7.445 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.936e-05/0.406, allocations: 136.5 kB / 490.4 MB, free: 7.281 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002695/0.4063, allocations: 248.3 kB / 490.7 MB, free: 7.031 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.217e-05/0.4064, allocations: 25.7 kB / 490.7 MB, free: 7 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.317e-05/0.4064, allocations: 116.1 kB / 490.8 MB, free: 6.883 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.107e-05/0.4065, allocations: 11.81 kB / 490.8 MB, free: 6.871 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.362e-06/0.4065, allocations: 4 kB / 490.8 MB, free: 6.867 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.4066, allocations: 330.8 kB / 491.2 MB, free: 6.535 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.843e-05/0.4067, allocations: 19.98 kB / 491.2 MB, free: 6.516 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.012e-05/0.4067, allocations: 77.88 kB / 491.2 MB, free: 6.418 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.536e-05/0.4068, allocations: 28 kB / 491.3 MB, free: 6.391 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-06/0.4068, allocations: 0 / 491.3 MB, free: 6.391 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001934/0.407, allocations: 121.7 kB / 491.4 MB, free: 6.266 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.4071, allocations: 11.95 kB / 491.4 MB, free: 6.254 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.4071, allocations: 7.922 kB / 491.4 MB, free: 6.246 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.4071, allocations: 4 kB / 491.4 MB, free: 6.242 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.448e-05/0.4072, allocations: 8 kB / 491.4 MB, free: 6.234 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.4072, allocations: 4 kB / 491.4 MB, free: 6.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.615e-05/0.4073, allocations: 4 kB / 491.4 MB, free: 6.227 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.204e-05/0.4073, allocations: 7.984 kB / 491.4 MB, free: 6.219 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,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 (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 prepare postOptimizeDAE: time 0.0001175/0.4074, allocations: 145.9 kB / 491.6 MB, free: 6.066 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.461e-05/0.4075, allocations: 65.36 kB / 491.6 MB, free: 5.996 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002271/0.4077, allocations: 127.3 kB / 491.8 MB, free: 5.863 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.4077, allocations: 0 / 491.8 MB, free: 5.863 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.4077, allocations: 4 kB / 491.8 MB, free: 5.859 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.4077, allocations: 3.984 kB / 491.8 MB, free: 5.855 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001945/0.4079, allocations: 225.6 kB / 492 MB, free: 5.586 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.408, allocations: 0 / 492 MB, free: 5.586 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.124e-05/0.408, allocations: 4 kB / 492 MB, free: 5.582 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.408, allocations: 8.062 kB / 492 MB, free: 5.574 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.295e-05/0.408, allocations: 7.938 kB / 492 MB, free: 5.566 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.408, allocations: 3.953 kB / 492 MB, free: 5.562 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.408, allocations: 4 kB / 492 MB, free: 5.559 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002472/0.4083, allocations: 178 kB / 492.2 MB, free: 5.348 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001083/0.4084, allocations: 120.8 kB / 492.3 MB, free: 5.211 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.146e-05/0.4084, allocations: 8 kB / 492.3 MB, free: 5.203 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.403e-05/0.4085, allocations: 4 kB / 492.3 MB, free: 5.199 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.133e-05/0.4086, allocations: 7.984 kB / 492.3 MB, free: 5.191 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.447e-06/0.4086, allocations: 4 kB / 492.3 MB, free: 5.188 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001779/0.4088, allocations: 192.5 kB / 492.5 MB, free: 4.996 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.623e-06/0.4088, allocations: 0 / 492.5 MB, free: 4.996 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002675/0.409, allocations: 39.94 kB / 492.6 MB, free: 4.957 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.0009106/0.41, allocations: 439 kB / 493 MB, free: 4.688 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000224/0.4102, allocations: 71.84 kB / 493.1 MB, free: 4.617 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/0.4102, allocations: 4 kB / 493.1 MB, free: 4.613 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.388e-05/0.4103, allocations: 27.98 kB / 493.1 MB, free: 4.586 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003188/0.4106, allocations: 56.86 kB / 493.2 MB, free: 4.531 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005064/0.4111, allocations: 352.7 kB / 493.5 MB, free: 4.148 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000283/0.4114, allocations: 0.7361 MB / 494.2 MB, free: 3.387 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.246e-05/0.4115, allocations: 25.67 kB / 494.3 MB, free: 3.363 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.766e-05/0.4116, allocations: 27.42 kB / 494.3 MB, free: 3.336 MB / 362.7 MB Notification: Performance of SimCode: time 3.41e-07/0.4116, allocations: 3.938 kB / 494.3 MB, free: 3.332 MB / 362.7 MB Notification: Performance of Templates: time 0.005238/0.4168, allocations: 2.352 MB / 496.6 MB, free: 1.012 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches