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.001279/0.001279, allocations: 109 kB / 17.06 MB, free: 6.02 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.001147/0.001147, allocations: 191 kB / 18 MB, free: 5.109 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.613/1.613, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 47.92 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3803/0.3815, allocations: 49.43 MB / 400.7 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.004196/0.3857, allocations: 1.916 MB / 402.6 MB, free: 7.125 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002201/0.388, allocations: 1.087 MB / 403.7 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001831/0.3882, allocations: 7.938 kB / 403.7 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007102/0.3889, allocations: 151.5 kB / 403.9 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003663/0.3893, allocations: 119.6 kB / 404 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007537/0.3901, allocations: 205.4 kB / 404.2 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00029/0.3904, allocations: 187.5 kB / 404.4 MB, free: 5.375 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002/0.3906, allocations: 45.58 kB / 404.4 MB, free: 5.328 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001517/0.3907, allocations: 79.64 kB / 404.5 MB, free: 5.25 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001346/0.3909, allocations: 79.62 kB / 404.6 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.251e-05/0.3909, allocations: 12 kB / 404.6 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001777/0.3911, allocations: 55.95 kB / 404.6 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.268e-05/0.3912, allocations: 43.84 kB / 404.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.405e-05/0.3913, allocations: 71.48 kB / 404.8 MB, free: 4.992 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003727/0.3917, allocations: 216.5 kB / 405 MB, free: 4.785 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.3917, allocations: 0 / 405 MB, free: 4.785 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3917, allocations: 0 / 405 MB, free: 4.785 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.948e-06/0.3917, allocations: 4 kB / 405 MB, free: 4.781 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.001082/0.3928, allocations: 0.5186 MB / 405.5 MB, free: 4.211 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.702e-05/0.3929, allocations: 15.89 kB / 405.5 MB, free: 4.195 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.666e-05/0.393, allocations: 16.75 kB / 405.5 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004558/0.3934, allocations: 278.7 kB / 405.8 MB, free: 3.871 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.259e-05/0.3935, allocations: 4.375 kB / 405.8 MB, free: 3.867 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.053e-05/0.3935, allocations: 16.12 kB / 405.8 MB, free: 3.852 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004133/0.3939, allocations: 167.5 kB / 406 MB, free: 3.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.3939, allocations: 0 / 406 MB, free: 3.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.034e-05/0.394, allocations: 8 kB / 406 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.394, allocations: 4 kB / 406 MB, free: 3.648 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001174/0.3941, allocations: 39.91 kB / 406 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000604/0.3947, allocations: 371.2 kB / 406.4 MB, free: 3.188 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002548/0.395, allocations: 134.5 kB / 406.5 MB, free: 3.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001014/0.3951, allocations: 55.42 kB / 406.6 MB, free: 2.953 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.492e-05/0.3951, allocations: 11.94 kB / 406.6 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001754/0.3953, allocations: 75.33 kB / 406.7 MB, free: 2.855 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.854e-06/0.3953, allocations: 0 / 406.7 MB, free: 2.855 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004136/0.3957, allocations: 149.7 kB / 406.8 MB, free: 2.703 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001278/0.3959, allocations: 170.2 kB / 407 MB, free: 2.5 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002926/0.3962, allocations: 272.9 kB / 407.2 MB, free: 2.219 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.217e-05/0.3962, allocations: 25.7 kB / 407.3 MB, free: 2.188 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001819/0.3964, allocations: 124.3 kB / 407.4 MB, free: 2.059 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.233e-05/0.3964, allocations: 19.88 kB / 407.4 MB, free: 2.039 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.719e-05/0.3965, allocations: 33.7 kB / 407.4 MB, free: 2 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.3967, allocations: 334.8 kB / 407.8 MB, free: 1.664 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.486e-05/0.3967, allocations: 24.23 kB / 407.8 MB, free: 1.641 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000107/0.3968, allocations: 79.72 kB / 407.9 MB, free: 1.535 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001483/0.397, allocations: 101.9 kB / 408 MB, free: 1.414 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.397, allocations: 0 / 408 MB, free: 1.414 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002157/0.3972, allocations: 125.4 kB / 408.1 MB, free: 1.285 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.3973, allocations: 11.98 kB / 408.1 MB, free: 1.273 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.3973, allocations: 0 / 408.1 MB, free: 1.273 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.299e-05/0.3973, allocations: 7.984 kB / 408.1 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001028/0.3974, allocations: 19.94 kB / 408.1 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.3974, allocations: 0 / 408.1 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.991e-05/0.3975, allocations: 19.83 kB / 408.1 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.153e-05/0.3975, allocations: 4 kB / 408.1 MB, free: 1.223 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.0001696/0.3977, allocations: 153.8 kB / 408.3 MB, free: 1.062 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001045/0.3978, allocations: 69.44 kB / 408.4 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.724e-05/0.3979, allocations: 21.72 kB / 408.4 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.3979, allocations: 4 kB / 408.4 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.3979, allocations: 0 / 408.4 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/0.3979, allocations: 11.92 kB / 408.4 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003444/0.3983, allocations: 225.5 kB / 408.6 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/0.3983, allocations: 4 kB / 408.6 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.879e-05/0.3983, allocations: 7.984 kB / 408.6 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.3983, allocations: 4.094 kB / 408.6 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/0.3984, allocations: 4 kB / 408.6 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.3984, allocations: 64 / 408.6 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.713e-06/0.3984, allocations: 7.938 kB / 408.6 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002978/0.3987, allocations: 179.4 kB / 408.8 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.799e-05/0.3988, allocations: 104.8 kB / 408.9 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.357e-05/0.3988, allocations: 15.92 kB / 408.9 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.245e-05/0.3989, allocations: 4 kB / 408.9 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.915e-05/0.399, allocations: 0 / 408.9 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.419e-05/0.399, allocations: 19.92 kB / 409 MB, free: 296 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001972/0.3992, allocations: 192.5 kB / 409.2 MB, free: 104 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3992, allocations: 0 / 409.2 MB, free: 104 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002799/0.3995, allocations: 31.98 kB / 409.2 MB, free: 72 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.0012/0.4007, allocations: 430.7 kB / 409.6 MB, free: 15.81 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002933/0.401, allocations: 79.84 kB / 409.7 MB, free: 15.73 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.401, allocations: 0 / 409.7 MB, free: 15.73 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.434e-05/0.4011, allocations: 35.91 kB / 409.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005095/0.4016, allocations: 68.91 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.0007916/0.4024, allocations: 329.8 kB / 410.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005582/0.403, allocations: 0.7319 MB / 410.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001044/0.4031, allocations: 29.52 kB / 410.9 MB, free: 14.49 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.508e-05/0.4032, allocations: 27.42 kB / 410.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4032, allocations: 0 / 410.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of Templates: time 0.008031/0.4112, allocations: 2.659 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