Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001836/0.001836, allocations: 112.6 kB / 17.06 MB, free: 6.016 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.002425/0.002425, allocations: 195.9 kB / 18 MB, free: 5.098 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.691/1.691, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.001391, allocations: 51.92 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4045/0.4059, allocations: 49.42 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.005427/0.4114, allocations: 1.882 MB / 402.6 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002433/0.414, allocations: 1.145 MB / 403.7 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001857/0.4142, allocations: 3.938 kB / 403.7 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000377/0.4147, allocations: 63.72 kB / 403.8 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003247/0.415, allocations: 91.59 kB / 403.9 MB, free: 5.684 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001042/0.416, allocations: 262.6 kB / 404.1 MB, free: 5.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003795/0.4164, allocations: 171.5 kB / 404.3 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001931/0.4166, allocations: 29.55 kB / 404.3 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000157/0.4168, allocations: 71.69 kB / 404.4 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001537/0.417, allocations: 79.67 kB / 404.5 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.393e-05/0.417, allocations: 8 kB / 404.5 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002237/0.4172, allocations: 67.91 kB / 404.6 MB, free: 5.012 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001147/0.4174, allocations: 55.83 kB / 404.6 MB, free: 4.957 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001342/0.4175, allocations: 71.48 kB / 404.7 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000557/0.4181, allocations: 236.3 kB / 404.9 MB, free: 4.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.097e-06/0.4181, allocations: 0 / 404.9 MB, free: 4.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 6.362e-06/0.4181, allocations: 0 / 404.9 MB, free: 4.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.829e-06/0.4181, allocations: 3.938 kB / 404.9 MB, free: 4.656 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.001163/0.4193, allocations: 0.5311 MB / 405.5 MB, free: 4.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.829e-05/0.4194, allocations: 15.89 kB / 405.5 MB, free: 4.055 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.807e-05/0.4195, allocations: 20.66 kB / 405.5 MB, free: 4.035 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004551/0.4199, allocations: 295.6 kB / 405.8 MB, free: 3.707 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.4199, allocations: 4.312 kB / 405.8 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.1e-05/0.42, allocations: 8.125 kB / 405.8 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004188/0.4204, allocations: 159.5 kB / 405.9 MB, free: 3.512 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.4204, allocations: 4 kB / 405.9 MB, free: 3.508 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.101e-05/0.4205, allocations: 4 kB / 406 MB, free: 3.504 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.625e-06/0.4205, allocations: 0 / 406 MB, free: 3.504 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000128/0.4206, allocations: 39.91 kB / 406 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006301/0.4212, allocations: 374.5 kB / 406.4 MB, free: 3.043 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002755/0.4215, allocations: 115.9 kB / 406.5 MB, free: 2.902 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.4216, allocations: 46.56 kB / 406.5 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.395e-05/0.4217, allocations: 8 kB / 406.5 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000182/0.4219, allocations: 79.31 kB / 406.6 MB, free: 2.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.964e-06/0.4219, allocations: 0 / 406.6 MB, free: 2.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004231/0.4223, allocations: 157.3 kB / 406.8 MB, free: 2.59 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/0.4224, allocations: 162.4 kB / 406.9 MB, free: 2.395 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003826/0.4228, allocations: 326.7 kB / 407.2 MB, free: 2.066 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.4229, allocations: 29.7 kB / 407.3 MB, free: 2.031 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.423, allocations: 128 kB / 407.4 MB, free: 1.902 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.308e-05/0.423, allocations: 27.72 kB / 407.4 MB, free: 1.875 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.232e-05/0.4231, allocations: 29.72 kB / 407.4 MB, free: 1.84 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.4232, allocations: 334.8 kB / 407.8 MB, free: 1.504 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.884e-05/0.4233, allocations: 27.98 kB / 407.8 MB, free: 1.477 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001211/0.4234, allocations: 86.84 kB / 407.9 MB, free: 1.367 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001494/0.4236, allocations: 84.22 kB / 408 MB, free: 1.27 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.4236, allocations: 0 / 408 MB, free: 1.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002462/0.4239, allocations: 117.4 kB / 408.1 MB, free: 1.148 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.81e-05/0.4239, allocations: 8 kB / 408.1 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.4239, allocations: 0 / 408.1 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.4239, allocations: 4 kB / 408.1 MB, free: 1.137 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.4241, allocations: 16.11 kB / 408.1 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.4241, allocations: 11.94 kB / 408.1 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.101e-05/0.4242, allocations: 15.84 kB / 408.1 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.4242, allocations: 4 kB / 408.1 MB, free: 1.09 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,table.y,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.0001471/0.4243, allocations: 153.8 kB / 408.3 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.633e-05/0.4244, allocations: 73.34 kB / 408.4 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.231e-05/0.4245, allocations: 18.03 kB / 408.4 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.4245, allocations: 4 kB / 408.4 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.084e-06/0.4245, allocations: 8.047 kB / 408.4 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.4245, allocations: 7.938 kB / 408.4 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002157/0.4248, allocations: 237.5 kB / 408.6 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.4248, allocations: 0 / 408.6 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.268e-05/0.4248, allocations: 8 kB / 408.6 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.646e-06/0.4249, allocations: 7.938 kB / 408.6 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.993e-05/0.4249, allocations: 7.984 kB / 408.7 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.4249, allocations: 4 kB / 408.7 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.359e-06/0.4249, allocations: 0 / 408.7 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002716/0.4252, allocations: 174.3 kB / 408.8 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.4253, allocations: 105 kB / 408.9 MB, free: 192 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.667e-05/0.4253, allocations: 15.97 kB / 408.9 MB, free: 176 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.422e-05/0.4254, allocations: 4 kB / 408.9 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.963e-05/0.4255, allocations: 15.92 kB / 409 MB, free: 156 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.826e-05/0.4255, allocations: 7.938 kB / 409 MB, free: 148 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003124/0.4258, allocations: 241.9 kB / 409.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4258, allocations: 4 kB / 409.2 MB, free: 15.9 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002765/0.4261, allocations: 32 kB / 409.2 MB, free: 15.87 MB / 334.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,table.y,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.001022/0.4271, allocations: 422.9 kB / 409.7 MB, free: 15.61 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002567/0.4274, allocations: 75.89 kB / 409.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4274, allocations: 0 / 409.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.742e-05/0.4275, allocations: 40.17 kB / 409.8 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004399/0.428, allocations: 57.98 kB / 409.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006277/0.4286, allocations: 364.9 kB / 410.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003131/0.4289, allocations: 0.7477 MB / 410.9 MB, free: 14.28 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.07e-05/0.429, allocations: 29.48 kB / 411 MB, free: 14.25 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.712e-05/0.4291, allocations: 19.42 kB / 411 MB, free: 14.23 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4291, allocations: 4 kB / 411 MB, free: 14.23 MB / 334.1 MB Notification: Performance of Templates: time 0.00659/0.4357, allocations: 2.852 MB / 413.8 MB, free: 11.4 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches