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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001275/0.001275, allocations: 112.5 kB / 17.06 MB, free: 6.012 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.001475/0.001475, allocations: 195.9 kB / 18 MB, free: 5.094 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.622/1.622, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009711/0.0009712, allocations: 43.92 kB / 351.3 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4013/0.4023, allocations: 49.43 MB / 400.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003479/0.4058, allocations: 1.875 MB / 402.6 MB, free: 7.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001787/0.4076, allocations: 1.071 MB / 403.7 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000126/0.4077, allocations: 0 / 403.7 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006078/0.4084, allocations: 158.5 kB / 403.8 MB, free: 5.789 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002915/0.4087, allocations: 115.6 kB / 403.9 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005279/0.4092, allocations: 203 kB / 404.1 MB, free: 5.48 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002438/0.4095, allocations: 183.5 kB / 404.3 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001275/0.4096, allocations: 29.55 kB / 404.3 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001075/0.4097, allocations: 75.62 kB / 404.4 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001124/0.4098, allocations: 75.64 kB / 404.5 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.683e-05/0.4099, allocations: 8 kB / 404.5 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001383/0.41, allocations: 55.95 kB / 404.5 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.43e-05/0.4101, allocations: 43.84 kB / 404.6 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.653e-05/0.4102, allocations: 67.55 kB / 404.7 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003123/0.4105, allocations: 207.1 kB / 404.9 MB, free: 4.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.4105, allocations: 0 / 404.9 MB, free: 4.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4105, allocations: 4 kB / 404.9 MB, free: 4.746 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.4105, allocations: 0 / 404.9 MB, free: 4.746 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007588/0.4113, allocations: 0.5145 MB / 405.4 MB, free: 4.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.4114, allocations: 11.89 kB / 405.4 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.798e-05/0.4114, allocations: 32.72 kB / 405.4 MB, free: 4.137 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003114/0.4117, allocations: 267 kB / 405.7 MB, free: 3.836 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.321e-05/0.4118, allocations: 384 / 405.7 MB, free: 3.836 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.385e-05/0.4118, allocations: 16.12 kB / 405.7 MB, free: 3.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003079/0.4121, allocations: 142.7 kB / 405.8 MB, free: 3.656 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.4121, allocations: 3.938 kB / 405.8 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.408e-05/0.4121, allocations: 4 kB / 405.8 MB, free: 3.648 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.4122, allocations: 4 kB / 405.8 MB, free: 3.645 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.996e-05/0.4123, allocations: 31.92 kB / 405.9 MB, free: 3.613 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004614/0.4127, allocations: 358.4 kB / 406.2 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002114/0.4129, allocations: 111.9 kB / 406.3 MB, free: 3.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.034e-05/0.413, allocations: 46.5 kB / 406.4 MB, free: 3.016 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.501e-05/0.4131, allocations: 7.984 kB / 406.4 MB, free: 3.008 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001499/0.4132, allocations: 75.34 kB / 406.5 MB, free: 2.922 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.483e-06/0.4133, allocations: 0 / 406.5 MB, free: 2.922 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003637/0.4136, allocations: 137.5 kB / 406.6 MB, free: 2.781 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.006e-05/0.4137, allocations: 140.5 kB / 406.7 MB, free: 2.613 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000265/0.414, allocations: 257 kB / 407 MB, free: 2.348 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.522e-05/0.414, allocations: 29.7 kB / 407 MB, free: 2.312 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.196e-05/0.4141, allocations: 120.1 kB / 407.1 MB, free: 2.191 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.394e-05/0.4141, allocations: 19.89 kB / 407.2 MB, free: 2.172 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.971e-05/0.4142, allocations: 29.97 kB / 407.2 MB, free: 2.137 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.4143, allocations: 330.8 kB / 407.5 MB, free: 1.805 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.166e-05/0.4144, allocations: 23.94 kB / 407.5 MB, free: 1.781 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.744e-05/0.4145, allocations: 66 kB / 407.6 MB, free: 1.695 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001252/0.4146, allocations: 80.25 kB / 407.7 MB, free: 1.602 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.4146, allocations: 0 / 407.7 MB, free: 1.602 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001949/0.4148, allocations: 117.7 kB / 407.8 MB, free: 1.48 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.4148, allocations: 8 kB / 407.8 MB, free: 1.473 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.4148, allocations: 128 / 407.8 MB, free: 1.473 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.4149, allocations: 4 kB / 407.8 MB, free: 1.469 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.392e-05/0.415, allocations: 19.92 kB / 407.8 MB, free: 1.449 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.415, allocations: 0 / 407.8 MB, free: 1.449 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.709e-05/0.415, allocations: 19.83 kB / 407.8 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.267e-06/0.4151, allocations: 4 kB / 407.8 MB, free: 1.426 MB / 318.1 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.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 (11): * Single equations (assignments): 11 * 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.0001111/0.4152, allocations: 141.8 kB / 408 MB, free: 1.277 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.089e-05/0.4153, allocations: 65.53 kB / 408 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.927e-05/0.4153, allocations: 25.77 kB / 408.1 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.4153, allocations: 0 / 408.1 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.84e-06/0.4153, allocations: 4 kB / 408.1 MB, free: 1.176 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.4153, allocations: 3.938 kB / 408.1 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001724/0.4155, allocations: 225.6 kB / 408.3 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.4155, allocations: 0 / 408.3 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.605e-05/0.4156, allocations: 8 kB / 408.3 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.4156, allocations: 4 kB / 408.3 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.4156, allocations: 3.984 kB / 408.3 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.4156, allocations: 4 kB / 408.3 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.4156, allocations: 7.875 kB / 408.3 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002222/0.4158, allocations: 150.7 kB / 408.5 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.809e-05/0.4159, allocations: 116.9 kB / 408.6 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.577e-05/0.416, allocations: 4 kB / 408.6 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.96e-05/0.416, allocations: 8 kB / 408.6 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.392e-05/0.4161, allocations: 11.98 kB / 408.6 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.702e-05/0.4161, allocations: 7.938 kB / 408.6 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001678/0.4163, allocations: 196.4 kB / 408.8 MB, free: 356 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4163, allocations: 0 / 408.8 MB, free: 356 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002505/0.4165, allocations: 31.94 kB / 408.8 MB, free: 324 kB / 318.1 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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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.0009247/0.4175, allocations: 416.7 kB / 409.2 MB, free: 64 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002147/0.4177, allocations: 72.14 kB / 409.3 MB, free: 15.99 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.4177, allocations: 0 / 409.3 MB, free: 15.99 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.741e-05/0.4178, allocations: 27.88 kB / 409.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003749/0.4182, allocations: 69.77 kB / 409.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005388/0.4187, allocations: 308.5 kB / 409.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002912/0.419, allocations: 0.732 MB / 410.4 MB, free: 14.81 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.858e-05/0.4191, allocations: 21.53 kB / 410.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.097e-05/0.4191, allocations: 19.44 kB / 410.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4191, allocations: 0 / 410.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of Templates: time 0.005842/0.425, allocations: 2.468 MB / 413 MB, free: 12.33 MB / 334.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches