Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001305/0.001305, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001447/0.001447, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.648/1.648, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 59.91 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3906/0.392, allocations: 50.54 MB / 409.2 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.00375/0.3958, allocations: 1.898 MB / 411.1 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002159/0.398, allocations: 1.278 MB / 412.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001407/0.3982, allocations: 7.938 kB / 412.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003658/0.3986, allocations: 67.67 kB / 412.5 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003863/0.399, allocations: 143.4 kB / 412.6 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007456/0.3997, allocations: 222.8 kB / 412.8 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003506/0.4001, allocations: 179.5 kB / 413 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001585/0.4003, allocations: 33.53 kB / 413 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001644/0.4005, allocations: 83.62 kB / 413.1 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001713/0.4006, allocations: 71.69 kB / 413.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.322e-05/0.4007, allocations: 8 kB / 413.2 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002261/0.4009, allocations: 63.97 kB / 413.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001536/0.4011, allocations: 55.81 kB / 413.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.4012, allocations: 83.36 kB / 413.4 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004044/0.4016, allocations: 239.1 kB / 413.6 MB, free: 13.17 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.4016, allocations: 0 / 413.6 MB, free: 13.17 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.4016, allocations: 0 / 413.6 MB, free: 13.17 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.148e-06/0.4017, allocations: 4 kB / 413.6 MB, free: 13.17 MB / 334.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.0008346/0.4025, allocations: 0.5363 MB / 414.2 MB, free: 12.58 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.4026, allocations: 15.97 kB / 414.2 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.908e-05/0.4026, allocations: 20.66 kB / 414.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004671/0.4031, allocations: 287.6 kB / 414.5 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.4031, allocations: 8.375 kB / 414.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.563e-05/0.4032, allocations: 16.06 kB / 414.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003631/0.4035, allocations: 159.5 kB / 414.7 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.4036, allocations: 3.938 kB / 414.7 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.63e-05/0.4036, allocations: 0 / 414.7 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.4036, allocations: 4 kB / 414.7 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001211/0.4037, allocations: 39.97 kB / 414.7 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005531/0.4043, allocations: 382.4 kB / 415.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002634/0.4046, allocations: 115.9 kB / 415.2 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9e-05/0.4047, allocations: 46.55 kB / 415.3 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.037e-05/0.4047, allocations: 4.062 kB / 415.3 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000204/0.4049, allocations: 87.33 kB / 415.3 MB, free: 11.24 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.503e-06/0.4049, allocations: 3.938 kB / 415.3 MB, free: 11.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004742/0.4054, allocations: 149.3 kB / 415.5 MB, free: 11.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.4055, allocations: 162.2 kB / 415.6 MB, free: 10.89 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003981/0.4059, allocations: 334.7 kB / 416 MB, free: 10.55 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.439e-05/0.406, allocations: 29.95 kB / 416 MB, free: 10.52 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.4061, allocations: 136 kB / 416.1 MB, free: 10.38 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.377e-05/0.4061, allocations: 19.73 kB / 416.2 MB, free: 10.36 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.761e-05/0.4062, allocations: 25.72 kB / 416.2 MB, free: 10.33 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.4064, allocations: 338.8 kB / 416.5 MB, free: 9.988 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.597e-05/0.4064, allocations: 27.92 kB / 416.5 MB, free: 9.961 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001327/0.4066, allocations: 90.84 kB / 416.6 MB, free: 9.848 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001579/0.4068, allocations: 80.22 kB / 416.7 MB, free: 9.754 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.4068, allocations: 0 / 416.7 MB, free: 9.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002613/0.407, allocations: 129.3 kB / 416.8 MB, free: 9.621 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/0.4071, allocations: 8 kB / 416.8 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.4071, allocations: 0 / 416.8 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.272e-05/0.4071, allocations: 4 kB / 416.8 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/0.4072, allocations: 15.98 kB / 416.9 MB, free: 9.594 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.4073, allocations: 4 kB / 416.9 MB, free: 9.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.848e-05/0.4074, allocations: 7.938 kB / 416.9 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.169e-05/0.4074, allocations: 4 kB / 416.9 MB, free: 9.578 MB / 334.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.000177/0.4076, allocations: 169.8 kB / 417 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.09e-05/0.4077, allocations: 65.41 kB / 417.1 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.357e-05/0.4077, allocations: 21.72 kB / 417.1 MB, free: 9.309 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.4077, allocations: 7.984 kB / 417.1 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.4078, allocations: 3.984 kB / 417.1 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.4078, allocations: 8.234 kB / 417.1 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00025/0.408, allocations: 241.5 kB / 417.4 MB, free: 9.004 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.81e-05/0.408, allocations: 8 kB / 417.4 MB, free: 8.996 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.527e-05/0.4081, allocations: 12.05 kB / 417.4 MB, free: 8.984 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.4081, allocations: 4 kB / 417.4 MB, free: 8.98 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.533e-05/0.4082, allocations: 11.94 kB / 417.4 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.4082, allocations: 0 / 417.4 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.4082, allocations: 0 / 417.4 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000279/0.4085, allocations: 166.4 kB / 417.6 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001237/0.4086, allocations: 116.8 kB / 417.7 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.042e-05/0.4086, allocations: 8 kB / 417.7 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.303e-05/0.4087, allocations: 0 / 417.7 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.481e-05/0.4088, allocations: 11.98 kB / 417.7 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.089e-05/0.4088, allocations: 7.938 kB / 417.7 MB, free: 8.621 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002629/0.4091, allocations: 249.9 kB / 418 MB, free: 8.379 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4091, allocations: 0 / 418 MB, free: 8.379 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002812/0.4094, allocations: 32 kB / 418 MB, free: 8.348 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.001206/0.4106, allocations: 425.7 kB / 418.4 MB, free: 8.062 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003004/0.4109, allocations: 67.91 kB / 418.5 MB, free: 7.996 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.4109, allocations: 0 / 418.5 MB, free: 7.996 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.868e-05/0.411, allocations: 27.98 kB / 418.5 MB, free: 7.969 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004267/0.4115, allocations: 83.61 kB / 418.6 MB, free: 7.887 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00065/0.4121, allocations: 369.6 kB / 419 MB, free: 7.492 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003717/0.4125, allocations: 0.7436 MB / 419.7 MB, free: 6.723 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.997e-05/0.4126, allocations: 25.55 kB / 419.7 MB, free: 6.699 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.366e-05/0.4127, allocations: 23.42 kB / 419.7 MB, free: 6.676 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4127, allocations: 0 / 419.7 MB, free: 6.676 MB / 334.1 MB Notification: Performance of Templates: time 0.00699/0.4197, allocations: 2.904 MB / 422.6 MB, free: 3.801 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches