Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001916/0.001916, allocations: 94.55 kB / 16.3 MB, free: 5.992 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.002409/0.002409, allocations: 181.3 kB / 17.19 MB, free: 5.906 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.45/1.45, allocations: 223.2 MB / 241.1 MB, free: 5.383 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003065/0.0003069, allocations: 6.812 kB / 300.7 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1285, allocations: 50.43 MB / 351.1 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.002813/0.1314, allocations: 1.576 MB / 352.7 MB, free: 10.11 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001795/0.1333, allocations: 1.026 MB / 353.7 MB, free: 9.078 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001427/0.1334, allocations: 3.938 kB / 353.7 MB, free: 9.074 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003385/0.1338, allocations: 59.78 kB / 353.8 MB, free: 9.016 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002609/0.134, allocations: 79.77 kB / 353.9 MB, free: 8.938 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007379/0.1348, allocations: 214 kB / 354.1 MB, free: 8.73 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002223/0.135, allocations: 107.8 kB / 354.2 MB, free: 8.625 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.1352, allocations: 33.77 kB / 354.2 MB, free: 8.594 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001089/0.1353, allocations: 63.7 kB / 354.3 MB, free: 8.531 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001336/0.1354, allocations: 63.73 kB / 354.4 MB, free: 8.469 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.9e-05/0.1355, allocations: 3.938 kB / 354.4 MB, free: 8.465 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001377/0.1356, allocations: 39.98 kB / 354.4 MB, free: 8.426 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.644e-05/0.1357, allocations: 47.81 kB / 354.4 MB, free: 8.379 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.727e-05/0.1358, allocations: 53.58 kB / 354.5 MB, free: 8.32 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002709/0.1361, allocations: 171.7 kB / 354.7 MB, free: 8.152 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1361, allocations: 3.938 kB / 354.7 MB, free: 8.148 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.067e-06/0.1361, allocations: 0 / 354.7 MB, free: 8.148 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.1361, allocations: 0 / 354.7 MB, free: 8.148 MB / 286.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.0008199/0.1369, allocations: 0.4999 MB / 355.2 MB, free: 7.594 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.137, allocations: 12.03 kB / 355.2 MB, free: 7.582 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.937e-05/0.137, allocations: 27.66 kB / 355.2 MB, free: 7.555 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003932/0.1374, allocations: 278.4 kB / 355.5 MB, free: 7.246 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.332e-05/0.1375, allocations: 7.938 kB / 355.5 MB, free: 7.238 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.103e-05/0.1375, allocations: 11.98 kB / 355.5 MB, free: 7.227 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003753/0.1379, allocations: 166.7 kB / 355.7 MB, free: 7.035 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.1379, allocations: 0 / 355.7 MB, free: 7.035 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.755e-05/0.1379, allocations: 11.98 kB / 355.7 MB, free: 7.023 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.1379, allocations: 3.953 kB / 355.7 MB, free: 7.02 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001115/0.1381, allocations: 39.91 kB / 355.7 MB, free: 6.98 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005748/0.1386, allocations: 470.5 kB / 356.2 MB, free: 6.461 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002609/0.1389, allocations: 138.5 kB / 356.3 MB, free: 6.289 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.307e-05/0.139, allocations: 16.12 kB / 356.3 MB, free: 6.273 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002506/0.1392, allocations: 104.9 kB / 356.4 MB, free: 6.152 MB / 286.1 MB Notification: Performance of pre-optimization done (n=11): time 1.683e-06/0.1392, allocations: 0 / 356.4 MB, free: 6.152 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004085/0.1396, allocations: 161.3 kB / 356.6 MB, free: 5.988 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001347/0.1398, allocations: 187.9 kB / 356.8 MB, free: 5.762 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003756/0.1402, allocations: 335 kB / 357.1 MB, free: 5.422 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.589e-05/0.1402, allocations: 29.7 kB / 357.1 MB, free: 5.387 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.1403, allocations: 132.3 kB / 357.3 MB, free: 5.25 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.888e-05/0.1404, allocations: 19.8 kB / 357.3 MB, free: 5.23 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.46e-06/0.1404, allocations: 0 / 357.3 MB, free: 5.23 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.1405, allocations: 326.8 kB / 357.6 MB, free: 4.902 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.684e-05/0.1406, allocations: 31.98 kB / 357.6 MB, free: 4.871 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001238/0.1407, allocations: 99.64 kB / 357.7 MB, free: 4.746 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.618e-05/0.1408, allocations: 35.98 kB / 357.8 MB, free: 4.711 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.1408, allocations: 0 / 357.8 MB, free: 4.711 MB / 286.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002344/0.1411, allocations: 141.5 kB / 357.9 MB, free: 4.566 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.86e-05/0.1411, allocations: 11.94 kB / 357.9 MB, free: 4.555 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.1411, allocations: 4 kB / 357.9 MB, free: 4.551 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.1412, allocations: 0 / 357.9 MB, free: 4.551 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.1413, allocations: 23.94 kB / 357.9 MB, free: 4.527 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.1413, allocations: 3.984 kB / 357.9 MB, free: 4.523 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.583e-05/0.1414, allocations: 4 kB / 357.9 MB, free: 4.52 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.411e-05/0.1414, allocations: 12 kB / 358 MB, free: 4.508 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,hold1.u,hold1.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001475/0.1416, allocations: 157.9 kB / 358.1 MB, free: 4.344 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.398e-05/0.1417, allocations: 69.41 kB / 358.2 MB, free: 4.27 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.794e-05/0.1417, allocations: 33.66 kB / 358.2 MB, free: 4.238 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.1417, allocations: 4 kB / 358.2 MB, free: 4.234 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.269e-06/0.1417, allocations: 0 / 358.2 MB, free: 4.234 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.1418, allocations: 0 / 358.2 MB, free: 4.234 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002339/0.142, allocations: 249.4 kB / 358.5 MB, free: 3.941 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.142, allocations: 0 / 358.5 MB, free: 3.941 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.315e-05/0.1421, allocations: 23.98 kB / 358.5 MB, free: 3.918 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.1421, allocations: 0 / 358.5 MB, free: 3.918 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.484e-05/0.1421, allocations: 8 kB / 358.5 MB, free: 3.91 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.1421, allocations: 3.953 kB / 358.5 MB, free: 3.906 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.1421, allocations: 4 kB / 358.5 MB, free: 3.902 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002928/0.1424, allocations: 216.4 kB / 358.7 MB, free: 3.645 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001153/0.1425, allocations: 112.9 kB / 358.8 MB, free: 3.516 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.591e-05/0.1426, allocations: 8 kB / 358.8 MB, free: 3.508 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.868e-05/0.1427, allocations: 7.984 kB / 358.8 MB, free: 3.5 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.346e-05/0.1427, allocations: 11.98 kB / 358.8 MB, free: 3.488 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.995e-05/0.1428, allocations: 4 kB / 358.8 MB, free: 3.484 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002321/0.143, allocations: 249.9 kB / 359.1 MB, free: 3.242 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.143, allocations: 0 / 359.1 MB, free: 3.242 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002781/0.1433, allocations: 39.89 kB / 359.1 MB, free: 3.203 MB / 286.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,hold1.y,hold1.u,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 (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009722/0.1443, allocations: 424.1 kB / 359.5 MB, free: 2.945 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002336/0.1445, allocations: 84.09 kB / 359.6 MB, free: 2.863 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1445, allocations: 4.062 kB / 359.6 MB, free: 2.859 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 8.668e-05/0.1446, allocations: 35.98 kB / 359.7 MB, free: 2.824 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003456/0.145, allocations: 76.23 kB / 359.7 MB, free: 2.75 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006304/0.1456, allocations: 417.3 kB / 360.1 MB, free: 2.309 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003119/0.1459, allocations: 0.744 MB / 360.9 MB, free: 1.539 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.624e-05/0.146, allocations: 33.77 kB / 360.9 MB, free: 1.5 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.559e-05/0.1461, allocations: 19.44 kB / 360.9 MB, free: 1.48 MB / 286.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1461, allocations: 4 kB / 360.9 MB, free: 1.477 MB / 286.1 MB Notification: Performance of Templates: time 0.005909/0.152, allocations: 2.681 MB / 363.6 MB, free: 14.82 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y,hold1.y Variables in the result:hold1.y,hold1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.p_offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.table[4,1],table.combiTimeTable.table[4,2],table.combiTimeTable.table[5,1],table.combiTimeTable.table[5,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.extrapolation,table.n,table.shiftTime,table.startTime,table.table[1,1],table.table[1,2],table.table[2,1],table.table[2,2],table.table[3,1],table.table[3,2],table.table[4,1],table.table[4,2],table.table[5,1],table.table[5,2],time