Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009602/0.0009603, allocations: 94.61 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001067/0.001067, allocations: 204.1 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.7 MB / 247.4 MB, free: 11.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000257/0.000257, allocations: 4 kB / 308.4 MB, free: 0.7852 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1184, allocations: 51.52 MB / 359.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.002789/0.1213, allocations: 1.627 MB / 361.5 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002454/0.1238, allocations: 1.259 MB / 362.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002043/0.124, allocations: 0 / 362.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003897/0.1244, allocations: 63.8 kB / 362.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004188/0.1249, allocations: 115.6 kB / 363 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007774/0.1256, allocations: 195 kB / 363.2 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003207/0.126, allocations: 175.5 kB / 363.3 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001431/0.1261, allocations: 33.53 kB / 363.4 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000153/0.1263, allocations: 75.62 kB / 363.4 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001472/0.1264, allocations: 75.56 kB / 363.5 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.689e-05/0.1265, allocations: 4 kB / 363.5 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001919/0.1267, allocations: 59.95 kB / 363.6 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.151e-05/0.1268, allocations: 43.84 kB / 363.6 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001077/0.1269, allocations: 97.12 kB / 363.7 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002921/0.1272, allocations: 175.9 kB / 363.9 MB, free: 9.266 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.1272, allocations: 3.984 kB / 363.9 MB, free: 9.262 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.838e-06/0.1272, allocations: 4 kB / 363.9 MB, free: 9.258 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.396e-06/0.1272, allocations: 3.938 kB / 363.9 MB, free: 9.254 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.0009996/0.1282, allocations: 0.5079 MB / 364.4 MB, free: 8.691 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.544e-05/0.1283, allocations: 8.031 kB / 364.4 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.1284, allocations: 32.55 kB / 364.4 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004808/0.1289, allocations: 287.6 kB / 364.7 MB, free: 8.332 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.908e-05/0.1289, allocations: 4.375 kB / 364.7 MB, free: 8.328 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.89e-05/0.129, allocations: 16.06 kB / 364.7 MB, free: 8.312 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004616/0.1295, allocations: 175.6 kB / 364.9 MB, free: 8.113 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.1295, allocations: 0 / 364.9 MB, free: 8.113 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.167e-05/0.1295, allocations: 4 kB / 364.9 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.1295, allocations: 4 kB / 364.9 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001489/0.1297, allocations: 47.91 kB / 365 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007575/0.1304, allocations: 470.5 kB / 365.4 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003165/0.1308, allocations: 142.5 kB / 365.6 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001157/0.1309, allocations: 59.42 kB / 365.6 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.906e-05/0.131, allocations: 11.97 kB / 365.6 MB, free: 7.281 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002559/0.1312, allocations: 93.03 kB / 365.7 MB, free: 7.172 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.412e-06/0.1312, allocations: 0 / 365.7 MB, free: 7.172 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004558/0.1317, allocations: 173.4 kB / 365.9 MB, free: 6.996 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001178/0.1318, allocations: 187.9 kB / 366.1 MB, free: 6.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000385/0.1322, allocations: 339 kB / 366.4 MB, free: 6.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.231e-05/0.1323, allocations: 25.7 kB / 366.4 MB, free: 6.398 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.1324, allocations: 140.2 kB / 366.6 MB, free: 6.254 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.3e-05/0.1324, allocations: 24.11 kB / 366.6 MB, free: 6.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.39e-05/0.1325, allocations: 21.72 kB / 366.6 MB, free: 6.203 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.1326, allocations: 338.8 kB / 367 MB, free: 5.863 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.074e-05/0.1327, allocations: 31.92 kB / 367 MB, free: 5.832 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001131/0.1328, allocations: 91.7 kB / 367.1 MB, free: 5.715 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001731/0.133, allocations: 97.14 kB / 367.2 MB, free: 5.602 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.133, allocations: 3.938 kB / 367.2 MB, free: 5.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002639/0.1333, allocations: 145.4 kB / 367.3 MB, free: 5.449 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.1333, allocations: 4 kB / 367.3 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.1333, allocations: 0 / 367.3 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.1333, allocations: 4 kB / 367.3 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/0.1335, allocations: 23.92 kB / 367.3 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.516e-05/0.1335, allocations: 4 kB / 367.3 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.818e-05/0.1336, allocations: 11.84 kB / 367.4 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.135e-05/0.1336, allocations: 4 kB / 367.4 MB, free: 5.398 MB / 302.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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,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.0001457/0.1338, allocations: 161.8 kB / 367.5 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.1339, allocations: 73.41 kB / 367.6 MB, free: 5.152 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.989e-05/0.1339, allocations: 29.73 kB / 367.6 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-06/0.1339, allocations: 4 kB / 367.6 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.134, allocations: 0 / 367.6 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.134, allocations: 3.938 kB / 367.6 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002217/0.1342, allocations: 249.6 kB / 367.9 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.1342, allocations: 0 / 367.9 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.365e-05/0.1343, allocations: 23.92 kB / 367.9 MB, free: 4.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/0.1343, allocations: 4.062 kB / 367.9 MB, free: 4.789 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.1343, allocations: 4 kB / 367.9 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.1343, allocations: 4 kB / 367.9 MB, free: 4.781 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1343, allocations: 0 / 367.9 MB, free: 4.781 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003008/0.1346, allocations: 187.2 kB / 368.1 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000107/0.1348, allocations: 124.8 kB / 368.2 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.519e-05/0.1348, allocations: 4.062 kB / 368.2 MB, free: 4.426 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.119e-05/0.1349, allocations: 8 kB / 368.2 MB, free: 4.418 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.21e-05/0.1349, allocations: 11.92 kB / 368.2 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.834e-05/0.135, allocations: 4 kB / 368.2 MB, free: 4.402 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002494/0.1352, allocations: 253.9 kB / 368.5 MB, free: 4.156 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1352, allocations: 0 / 368.5 MB, free: 4.156 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002828/0.1355, allocations: 32 kB / 368.5 MB, free: 4.125 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,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 (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.001021/0.1365, allocations: 422.4 kB / 368.9 MB, free: 3.844 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002461/0.1368, allocations: 83.84 kB / 369 MB, free: 3.762 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1368, allocations: 0 / 369 MB, free: 3.762 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.12e-05/0.1369, allocations: 40.09 kB / 369.1 MB, free: 3.723 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004569/0.1374, allocations: 62.45 kB / 369.1 MB, free: 3.656 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007343/0.1381, allocations: 479.8 kB / 369.6 MB, free: 3.148 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003678/0.1385, allocations: 0.7479 MB / 370.3 MB, free: 2.375 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.882e-05/0.1386, allocations: 23.42 kB / 370.4 MB, free: 2.355 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1386, allocations: 0 / 370.4 MB, free: 2.355 MB / 302.1 MB Notification: Performance of Templates: time 0.2127/0.3512, allocations: 3.007 MB / 373.4 MB, free: 19.38 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches