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.001203/0.001203, allocations: 109.6 kB / 17.33 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001338/0.001338, allocations: 209.8 kB / 18.27 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.54/1.54, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 62.14 kB / 306.4 MB, free: 0.9688 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1424, allocations: 50.53 MB / 357 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.00403/0.1465, allocations: 1.973 MB / 358.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002253/0.1488, allocations: 1.294 MB / 360.2 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001627/0.149, allocations: 4 kB / 360.2 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004647/0.1495, allocations: 59.73 kB / 360.3 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003983/0.1499, allocations: 127.6 kB / 360.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007404/0.1507, allocations: 207.5 kB / 360.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002803/0.151, allocations: 187.5 kB / 360.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.1511, allocations: 37.66 kB / 360.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001288/0.1512, allocations: 87.56 kB / 360.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001263/0.1514, allocations: 87.61 kB / 361 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.921e-05/0.1514, allocations: 12 kB / 361 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001516/0.1516, allocations: 47.98 kB / 361.1 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000118/0.1517, allocations: 67.75 kB / 361.1 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.275e-05/0.1518, allocations: 79.42 kB / 361.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003768/0.1522, allocations: 255.4 kB / 361.5 MB, free: 9.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.1522, allocations: 4 kB / 361.5 MB, free: 9.906 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1522, allocations: 0 / 361.5 MB, free: 9.906 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.1522, allocations: 0 / 361.5 MB, free: 9.906 MB / 302.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.0008179/0.153, allocations: 0.5467 MB / 362 MB, free: 9.305 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.1531, allocations: 12.03 kB / 362 MB, free: 9.293 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.008e-05/0.1532, allocations: 28.56 kB / 362.1 MB, free: 9.266 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003658/0.1535, allocations: 287.6 kB / 362.3 MB, free: 8.945 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.648e-05/0.1536, allocations: 4.375 kB / 362.3 MB, free: 8.941 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.613e-05/0.1536, allocations: 16.11 kB / 362.4 MB, free: 8.926 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004008/0.154, allocations: 186.9 kB / 362.5 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.154, allocations: 3.938 kB / 362.5 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.154, allocations: 7.938 kB / 362.6 MB, free: 8.703 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.205e-06/0.1541, allocations: 4 kB / 362.6 MB, free: 8.699 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001295/0.1542, allocations: 43.91 kB / 362.6 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005443/0.1547, allocations: 403.1 kB / 363 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002767/0.155, allocations: 138.5 kB / 363.1 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001133/0.1552, allocations: 63.41 kB / 363.2 MB, free: 7.957 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.607e-05/0.1552, allocations: 7.938 kB / 363.2 MB, free: 7.949 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002636/0.1555, allocations: 75.38 kB / 363.3 MB, free: 7.863 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.964e-06/0.1555, allocations: 0 / 363.3 MB, free: 7.863 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004376/0.1559, allocations: 173.6 kB / 363.4 MB, free: 7.688 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/0.1561, allocations: 187.9 kB / 363.6 MB, free: 7.461 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003625/0.1564, allocations: 343 kB / 364 MB, free: 7.117 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.238e-05/0.1565, allocations: 25.7 kB / 364 MB, free: 7.086 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.1566, allocations: 140.2 kB / 364.1 MB, free: 6.941 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.724e-05/0.1566, allocations: 19.73 kB / 364.1 MB, free: 6.922 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.981e-05/0.1567, allocations: 37.7 kB / 364.2 MB, free: 6.879 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.1568, allocations: 334.8 kB / 364.5 MB, free: 6.543 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.359e-05/0.1569, allocations: 27.98 kB / 364.5 MB, free: 6.516 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.157, allocations: 96.81 kB / 364.6 MB, free: 6.391 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001818/0.1572, allocations: 109.9 kB / 364.7 MB, free: 6.262 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1572, allocations: 0 / 364.7 MB, free: 6.262 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002605/0.1575, allocations: 141.2 kB / 364.9 MB, free: 6.117 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.1575, allocations: 8 kB / 364.9 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.1575, allocations: 0 / 364.9 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.1575, allocations: 4 kB / 364.9 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.1577, allocations: 23.92 kB / 364.9 MB, free: 6.082 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.1577, allocations: 4 kB / 364.9 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.46e-05/0.1578, allocations: 7.938 kB / 364.9 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.31e-05/0.1578, allocations: 15.92 kB / 364.9 MB, free: 6.055 MB / 302.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.0001369/0.1579, allocations: 154 kB / 365.1 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.1581, allocations: 81.34 kB / 365.2 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.992e-05/0.1581, allocations: 29.73 kB / 365.2 MB, free: 5.777 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.1581, allocations: 0 / 365.2 MB, free: 5.777 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.1581, allocations: 4 kB / 365.2 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.1582, allocations: 3.938 kB / 365.2 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002251/0.1584, allocations: 257.5 kB / 365.5 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1584, allocations: 96 / 365.5 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.354e-05/0.1585, allocations: 23.92 kB / 365.5 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.1585, allocations: 0 / 365.5 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.1585, allocations: 4 kB / 365.5 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.1585, allocations: 0 / 365.5 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.1585, allocations: 8 kB / 365.5 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002931/0.1588, allocations: 191.3 kB / 365.7 MB, free: 5.219 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001215/0.159, allocations: 116.7 kB / 365.8 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.722e-05/0.159, allocations: 8 kB / 365.8 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.213e-05/0.1591, allocations: 7.984 kB / 365.8 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.793e-05/0.1591, allocations: 12.03 kB / 365.8 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.126e-05/0.1592, allocations: 11.92 kB / 365.8 MB, free: 5.047 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000241/0.1594, allocations: 245.9 kB / 366.1 MB, free: 4.805 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1594, allocations: 0 / 366.1 MB, free: 4.805 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002885/0.1597, allocations: 39.98 kB / 366.1 MB, free: 4.766 MB / 302.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.0009711/0.1607, allocations: 412.7 kB / 366.5 MB, free: 4.496 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002562/0.161, allocations: 91.84 kB / 366.6 MB, free: 4.406 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.161, allocations: 0 / 366.6 MB, free: 4.406 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.519e-05/0.1611, allocations: 27.98 kB / 366.6 MB, free: 4.379 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004633/0.1615, allocations: 88.33 kB / 366.7 MB, free: 4.301 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000689/0.1622, allocations: 451.1 kB / 367.2 MB, free: 3.828 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003775/0.1626, allocations: 0.7476 MB / 367.9 MB, free: 3.055 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.953e-05/0.1627, allocations: 25.53 kB / 367.9 MB, free: 3.027 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.837e-05/0.1628, allocations: 35.36 kB / 368 MB, free: 2.992 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1628, allocations: 0 / 368 MB, free: 2.992 MB / 302.1 MB Notification: Performance of Templates: time 0.1922/0.355, allocations: 3.036 MB / 371 MB, free: 20.02 MB / 302.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins/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