Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001378/0.001377, allocations: 113.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001543/0.001543, allocations: 202.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.143/2.143, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002458/0.002458, allocations: 63.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.61/0.6125, allocations: 50.54 MB / 409.9 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.007772/0.6204, allocations: 1.918 MB / 411.8 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004476/0.6249, allocations: 1.313 MB / 413.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003801/0.6254, allocations: 7.938 kB / 413.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006045/0.6261, allocations: 67.66 kB / 413.2 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000751/0.6268, allocations: 135.4 kB / 413.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001501/0.6284, allocations: 226.8 kB / 413.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006163/0.629, allocations: 195.4 kB / 413.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002697/0.6293, allocations: 41.64 kB / 413.8 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003082/0.6296, allocations: 79.64 kB / 413.9 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002613/0.6299, allocations: 83.62 kB / 414 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.181e-05/0.63, allocations: 12 kB / 414 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003067/0.6303, allocations: 71.94 kB / 414.1 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000178/0.6305, allocations: 47.84 kB / 414.1 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001949/0.6307, allocations: 91.28 kB / 414.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000706/0.6314, allocations: 251.1 kB / 414.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.645e-06/0.6314, allocations: 0 / 414.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.6315, allocations: 0 / 414.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.725e-05/0.6315, allocations: 0 / 414.4 MB, free: 13.05 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001526/0.633, allocations: 0.5556 MB / 415 MB, free: 12.45 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.943e-05/0.6331, allocations: 8.031 kB / 415 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001397/0.6333, allocations: 24.66 kB / 415 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008624/0.6341, allocations: 303.5 kB / 415.3 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.725e-05/0.6342, allocations: 4.375 kB / 415.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.227e-05/0.6342, allocations: 12.12 kB / 415.3 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006807/0.6349, allocations: 180.4 kB / 415.5 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/0.6349, allocations: 0 / 415.5 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.882e-05/0.635, allocations: 0 / 415.5 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.635, allocations: 4 kB / 415.5 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002157/0.6352, allocations: 47.91 kB / 415.6 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00104/0.6363, allocations: 391.2 kB / 415.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005697/0.6369, allocations: 146.5 kB / 416.1 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001636/0.6371, allocations: 59.41 kB / 416.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.298e-05/0.6371, allocations: 4 kB / 416.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002731/0.6374, allocations: 87.31 kB / 416.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 2.855e-06/0.6374, allocations: 0 / 416.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008603/0.6383, allocations: 169.1 kB / 416.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003741/0.6387, allocations: 192.3 kB / 416.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007422/0.6394, allocations: 343 kB / 416.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.824e-05/0.6395, allocations: 33.7 kB / 417 MB, free: 10.22 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001575/0.6397, allocations: 124.4 kB / 417.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.395e-05/0.6397, allocations: 19.8 kB / 417.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.6398, allocations: 37.64 kB / 417.1 MB, free: 10.03 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002144/0.6401, allocations: 334.8 kB / 417.5 MB, free: 9.695 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.6402, allocations: 27.98 kB / 417.5 MB, free: 9.668 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001845/0.6404, allocations: 104.5 kB / 417.6 MB, free: 9.535 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002657/0.6406, allocations: 98.19 kB / 417.7 MB, free: 9.418 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.6407, allocations: 0 / 417.7 MB, free: 9.418 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004509/0.6411, allocations: 153.3 kB / 417.8 MB, free: 9.262 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.299e-05/0.6412, allocations: 8.031 kB / 417.8 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/0.6412, allocations: 4 kB / 417.8 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.987e-05/0.6412, allocations: 0 / 417.8 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002169/0.6415, allocations: 23.98 kB / 417.9 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/0.6415, allocations: 0 / 417.9 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001812/0.6417, allocations: 19.78 kB / 417.9 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.242e-05/0.6417, allocations: 8 kB / 417.9 MB, free: 9.199 MB / 334.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,table.y,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.0002614/0.642, allocations: 161.7 kB / 418.1 MB, free: 9.031 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001804/0.6422, allocations: 85.34 kB / 418.1 MB, free: 8.941 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001097/0.6423, allocations: 25.73 kB / 418.2 MB, free: 8.918 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-05/0.6423, allocations: 4 kB / 418.2 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.186e-06/0.6424, allocations: 0 / 418.2 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.159e-05/0.6424, allocations: 11.97 kB / 418.2 MB, free: 8.902 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004121/0.6428, allocations: 237.6 kB / 418.4 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.6428, allocations: 0 / 418.4 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000113/0.6429, allocations: 15.98 kB / 418.4 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-05/0.643, allocations: 4 kB / 418.4 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.674e-05/0.643, allocations: 8.094 kB / 418.4 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.372e-06/0.643, allocations: 7.938 kB / 418.4 MB, free: 8.586 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.6431, allocations: 0 / 418.4 MB, free: 8.586 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005011/0.6436, allocations: 183.3 kB / 418.6 MB, free: 8.379 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002055/0.6438, allocations: 116.7 kB / 418.7 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.387e-05/0.6439, allocations: 12 kB / 418.7 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00011/0.644, allocations: 3.984 kB / 418.8 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.369e-05/0.6441, allocations: 8 kB / 418.8 MB, free: 8.223 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.23e-05/0.6441, allocations: 16 kB / 418.8 MB, free: 8.207 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004554/0.6446, allocations: 253.9 kB / 419 MB, free: 7.957 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.6446, allocations: 0 / 419 MB, free: 7.957 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005535/0.6452, allocations: 39.98 kB / 419.1 MB, free: 7.918 MB / 334.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,table.y,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.001855/0.6471, allocations: 424.5 kB / 419.5 MB, free: 7.633 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004398/0.6475, allocations: 87.83 kB / 419.6 MB, free: 7.547 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/0.6475, allocations: 0 / 419.6 MB, free: 7.547 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001346/0.6477, allocations: 31.92 kB / 419.6 MB, free: 7.516 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008108/0.6485, allocations: 82.67 kB / 419.7 MB, free: 7.438 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001299/0.6498, allocations: 437.3 kB / 420.1 MB, free: 6.969 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006557/0.6505, allocations: 0.7437 MB / 420.8 MB, free: 6.199 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.6506, allocations: 23.42 kB / 420.9 MB, free: 6.176 MB / 334.1 MB Notification: Performance of SimCode: time 1.303e-06/0.6506, allocations: 0 / 420.9 MB, free: 6.176 MB / 334.1 MB Notification: Performance of Templates: time 0.01078/0.6614, allocations: 3.195 MB / 424.1 MB, free: 2.992 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches