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.000884/0.0008841, allocations: 91.8 kB / 17.31 MB, free: 6.535 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.001085/0.001085, allocations: 175.3 kB / 18.21 MB, free: 5.68 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.279/1.279, allocations: 223.3 MB / 242.3 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002272/0.0002272, allocations: 12.97 kB / 302.1 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07234/0.07258, allocations: 50.41 MB / 352.5 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.00193/0.07455, allocations: 1.624 MB / 354.1 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001457/0.07602, allocations: 1.025 MB / 355.1 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.802e-05/0.07612, allocations: 7.938 kB / 355.1 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004947/0.07662, allocations: 143.7 kB / 355.3 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002282/0.07686, allocations: 99.69 kB / 355.4 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004496/0.07732, allocations: 188.6 kB / 355.6 MB, free: 380 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002034/0.07753, allocations: 183.5 kB / 355.7 MB, free: 196 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.549e-05/0.07764, allocations: 37.59 kB / 355.8 MB, free: 160 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.313e-05/0.07774, allocations: 67.64 kB / 355.9 MB, free: 92 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.692e-05/0.07784, allocations: 75.56 kB / 355.9 MB, free: 16 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.864e-05/0.07787, allocations: 4 kB / 355.9 MB, free: 12 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001173/0.078, allocations: 51.91 kB / 356 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.04e-05/0.07807, allocations: 39.83 kB / 356 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.502e-05/0.07815, allocations: 85.27 kB / 356.1 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001829/0.07834, allocations: 159.8 kB / 356.3 MB, free: 15.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.07835, allocations: 4 kB / 356.3 MB, free: 15.67 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.07836, allocations: 0 / 356.3 MB, free: 15.67 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.246e-06/0.07837, allocations: 0 / 356.3 MB, free: 15.67 MB / 302.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.0005779/0.07895, allocations: 0.4885 MB / 356.8 MB, free: 15.13 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.036e-05/0.07899, allocations: 12.02 kB / 356.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.727e-05/0.07904, allocations: 24.66 kB / 356.8 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002728/0.07932, allocations: 262.8 kB / 357 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.169e-05/0.07935, allocations: 12.38 kB / 357.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.642e-05/0.07937, allocations: 8.125 kB / 357.1 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003001/0.07968, allocations: 174.7 kB / 357.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.0797, allocations: 0 / 357.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.07972, allocations: 0 / 357.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.07973, allocations: 4 kB / 357.2 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001051/0.07984, allocations: 39.92 kB / 357.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000422/0.08027, allocations: 379.1 kB / 357.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002197/0.0805, allocations: 130.5 kB / 357.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.841e-05/0.0806, allocations: 55.42 kB / 357.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.313e-05/0.08063, allocations: 11.92 kB / 357.8 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001382/0.08078, allocations: 75.33 kB / 357.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.503e-06/0.08079, allocations: 0 / 357.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003467/0.08114, allocations: 161.2 kB / 358.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.042e-05/0.08122, allocations: 158.6 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002567/0.08149, allocations: 273 kB / 358.5 MB, free: 13.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.807e-05/0.08151, allocations: 29.7 kB / 358.5 MB, free: 13.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.962e-05/0.08159, allocations: 120.5 kB / 358.6 MB, free: 13 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.3e-05/0.08162, allocations: 19.8 kB / 358.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.893e-05/0.08165, allocations: 17.72 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.871e-05/0.08176, allocations: 338.8 kB / 359 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.333e-05/0.08183, allocations: 24 kB / 359 MB, free: 12.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.261e-05/0.08193, allocations: 83.64 kB / 359.1 MB, free: 12.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001408/0.08208, allocations: 97.97 kB / 359.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.08209, allocations: 0 / 359.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002217/0.08232, allocations: 133.2 kB / 359.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/0.08234, allocations: 4 kB / 359.3 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.08235, allocations: 4 kB / 359.3 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.997e-06/0.08236, allocations: 192 / 359.3 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-05/0.08244, allocations: 19.98 kB / 359.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.08246, allocations: 7.938 kB / 359.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.75e-05/0.08254, allocations: 15.81 kB / 359.4 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/0.08256, allocations: 8 kB / 359.4 MB, free: 12.17 MB / 302.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.0001095/0.08267, allocations: 147 kB / 359.5 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.591e-05/0.08277, allocations: 77.34 kB / 359.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.921e-05/0.08283, allocations: 29.8 kB / 359.6 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.08284, allocations: 4 kB / 359.6 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.08285, allocations: 0 / 359.6 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.08286, allocations: 3.938 kB / 359.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001723/0.08304, allocations: 225.6 kB / 359.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.08305, allocations: 0 / 359.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.037e-05/0.08308, allocations: 11.94 kB / 359.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.08309, allocations: 3.984 kB / 359.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.626e-06/0.08311, allocations: 0 / 359.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.08312, allocations: 4 kB / 359.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.08312, allocations: 3.938 kB / 359.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002377/0.08337, allocations: 175.4 kB / 360.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.638e-05/0.08346, allocations: 120.7 kB / 360.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.832e-05/0.0835, allocations: 4 kB / 360.2 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.381e-05/0.08358, allocations: 11.98 kB / 360.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.815e-05/0.08362, allocations: 11.94 kB / 360.2 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.414e-05/0.08364, allocations: 7.938 kB / 360.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001826/0.08382, allocations: 196.5 kB / 360.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08383, allocations: 0 / 360.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002616/0.0841, allocations: 32 kB / 360.4 MB, free: 11 MB / 302.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.0008928/0.085, allocations: 422.1 kB / 360.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001928/0.0852, allocations: 83.84 kB / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.08522, allocations: 0 / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.826e-05/0.08529, allocations: 23.98 kB / 361 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004246/0.08572, allocations: 79.2 kB / 361 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005148/0.08625, allocations: 407.1 kB / 361.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002374/0.0865, allocations: 0.7361 MB / 362.2 MB, free: 9.363 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.418e-05/0.08655, allocations: 23.44 kB / 362.2 MB, free: 9.34 MB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.08656, allocations: 3.938 kB / 362.2 MB, free: 9.336 MB / 302.1 MB Notification: Performance of Templates: time 0.004195/0.09076, allocations: 2.755 MB / 365 MB, free: 6.602 MB / 302.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