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.001309/0.001309, allocations: 107.1 kB / 17.06 MB, free: 5.824 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.001345/0.001345, allocations: 191 kB / 18 MB, free: 4.977 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.551/1.551, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001026/0.001026, allocations: 55.86 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4104/0.4114, allocations: 49.42 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003562/0.415, allocations: 1.89 MB / 402.6 MB, free: 7.004 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002136/0.4172, allocations: 1.064 MB / 403.7 MB, free: 5.934 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001841/0.4174, allocations: 8 kB / 403.7 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007649/0.4182, allocations: 151.5 kB / 403.8 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003613/0.4186, allocations: 114.7 kB / 403.9 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007076/0.4193, allocations: 202.8 kB / 404.1 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002709/0.4196, allocations: 183.5 kB / 404.3 MB, free: 5.293 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001519/0.4198, allocations: 37.52 kB / 404.3 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001188/0.4199, allocations: 75.64 kB / 404.4 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001189/0.42, allocations: 71.69 kB / 404.5 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.71e-05/0.42, allocations: 8 kB / 404.5 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001741/0.4202, allocations: 55.89 kB / 404.5 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.923e-05/0.4203, allocations: 43.84 kB / 404.6 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.389e-05/0.4204, allocations: 71.55 kB / 404.7 MB, free: 4.938 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003268/0.4207, allocations: 214.9 kB / 404.9 MB, free: 4.73 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.4207, allocations: 0 / 404.9 MB, free: 4.73 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4208, allocations: 0 / 404.9 MB, free: 4.73 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.4208, allocations: 0 / 404.9 MB, free: 4.73 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.0008482/0.4216, allocations: 0.5015 MB / 405.4 MB, free: 4.176 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.4217, allocations: 15.89 kB / 405.4 MB, free: 4.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.294e-05/0.4217, allocations: 20.66 kB / 405.4 MB, free: 4.141 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003418/0.4221, allocations: 270.8 kB / 405.7 MB, free: 3.836 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.4221, allocations: 384 / 405.7 MB, free: 3.836 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.983e-05/0.4221, allocations: 12.12 kB / 405.7 MB, free: 3.824 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003296/0.4225, allocations: 138.7 kB / 405.8 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.4225, allocations: 4 kB / 405.8 MB, free: 3.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.645e-05/0.4225, allocations: 4 kB / 405.8 MB, free: 3.656 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.4226, allocations: 4 kB / 405.8 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001026/0.4227, allocations: 35.91 kB / 405.9 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000483/0.4232, allocations: 354.4 kB / 406.2 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003054/0.4235, allocations: 111.9 kB / 406.3 MB, free: 3.078 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.494e-05/0.4236, allocations: 42.56 kB / 406.4 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.354e-05/0.4236, allocations: 7.938 kB / 406.4 MB, free: 3.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001643/0.4238, allocations: 79.3 kB / 406.5 MB, free: 2.93 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.823e-06/0.4238, allocations: 0 / 406.5 MB, free: 2.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003863/0.4242, allocations: 137.6 kB / 406.6 MB, free: 2.789 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.4243, allocations: 144.4 kB / 406.7 MB, free: 2.617 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003045/0.4246, allocations: 261.2 kB / 407 MB, free: 2.348 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.585e-05/0.4246, allocations: 33.7 kB / 407 MB, free: 2.309 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.657e-05/0.4248, allocations: 116 kB / 407.1 MB, free: 2.191 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.468e-05/0.4248, allocations: 7.906 kB / 407.1 MB, free: 2.184 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.824e-05/0.4249, allocations: 41.55 kB / 407.2 MB, free: 2.137 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.425, allocations: 330.8 kB / 407.5 MB, free: 1.805 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.39e-05/0.4251, allocations: 19.98 kB / 407.5 MB, free: 1.785 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.626e-05/0.4252, allocations: 70 kB / 407.6 MB, free: 1.695 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001278/0.4253, allocations: 72.22 kB / 407.7 MB, free: 1.609 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.4253, allocations: 8.031 kB / 407.7 MB, free: 1.602 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002046/0.4255, allocations: 113.4 kB / 407.8 MB, free: 1.484 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.4256, allocations: 4 kB / 407.8 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.4256, allocations: 4 kB / 407.8 MB, free: 1.477 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.4256, allocations: 0 / 407.8 MB, free: 1.477 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.952e-05/0.4257, allocations: 12 kB / 407.8 MB, free: 1.465 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.4257, allocations: 3.938 kB / 407.8 MB, free: 1.461 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.441e-05/0.4258, allocations: 19.86 kB / 407.8 MB, free: 1.441 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.007e-05/0.4258, allocations: 8.125 kB / 407.8 MB, free: 1.434 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.0001318/0.426, allocations: 141.8 kB / 408 MB, free: 1.285 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.858e-05/0.4261, allocations: 69.3 kB / 408 MB, free: 1.211 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.529e-05/0.4261, allocations: 29.69 kB / 408.1 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.584e-06/0.4261, allocations: 0 / 408.1 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.4261, allocations: 4 kB / 408.1 MB, free: 1.176 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.4261, allocations: 3.938 kB / 408.1 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000203/0.4264, allocations: 225.6 kB / 408.3 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.4264, allocations: 4.062 kB / 408.3 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.537e-05/0.4264, allocations: 4 kB / 408.3 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.4264, allocations: 4 kB / 408.3 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.225e-05/0.4264, allocations: 4.125 kB / 408.3 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.4264, allocations: 0 / 408.3 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.4264, allocations: 4 kB / 408.3 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002433/0.4267, allocations: 158.5 kB / 408.5 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.907e-05/0.4268, allocations: 104.8 kB / 408.6 MB, free: 0.582 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.356e-05/0.4268, allocations: 4 kB / 408.6 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.252e-05/0.4269, allocations: 15.92 kB / 408.6 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.239e-05/0.427, allocations: 3.938 kB / 408.6 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.44e-05/0.427, allocations: 7.938 kB / 408.6 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000188/0.4272, allocations: 196.5 kB / 408.8 MB, free: 368 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4272, allocations: 0 / 408.8 MB, free: 368 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002606/0.4274, allocations: 31.91 kB / 408.8 MB, free: 336 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.001018/0.4285, allocations: 422.8 kB / 409.2 MB, free: 68 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002389/0.4287, allocations: 63.91 kB / 409.3 MB, free: 4 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.4287, allocations: 4 kB / 409.3 MB, free: 0 / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001097/0.4289, allocations: 27.92 kB / 409.3 MB, free: 15.97 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004207/0.4293, allocations: 62.16 kB / 409.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005351/0.4298, allocations: 304.1 kB / 409.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/0.4302, allocations: 0.7357 MB / 410.4 MB, free: 14.83 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.812e-05/0.4303, allocations: 29.52 kB / 410.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.324e-05/0.4303, allocations: 19.44 kB / 410.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of SimCode: time 2.104e-06/0.4303, allocations: 0 / 410.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of Templates: time 0.006204/0.4365, allocations: 2.468 MB / 412.9 MB, free: 12.35 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