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.00131/0.00131, allocations: 96.09 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001504/0.001504, allocations: 206.6 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.656/1.656, allocations: 227.7 MB / 246.8 MB, free: 9.746 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003035/0.0003038, allocations: 8.281 kB / 307.7 MB, free: 0.6094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1268, allocations: 51.52 MB / 359.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003066/0.1299, allocations: 1.622 MB / 360.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002593/0.1325, allocations: 1.257 MB / 362.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002227/0.1328, allocations: 0 / 362.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004101/0.1332, allocations: 67.73 kB / 362.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004705/0.1337, allocations: 111.6 kB / 362.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008341/0.1346, allocations: 195.5 kB / 362.5 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003534/0.1349, allocations: 179.5 kB / 362.7 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.1351, allocations: 33.53 kB / 362.7 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001717/0.1353, allocations: 59.72 kB / 362.8 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001722/0.1355, allocations: 87.53 kB / 362.9 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.832e-05/0.1355, allocations: 0 / 362.9 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000202/0.1357, allocations: 51.98 kB / 362.9 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000122/0.1358, allocations: 51.81 kB / 363 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000159/0.136, allocations: 113 kB / 363.1 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00041/0.1364, allocations: 231.5 kB / 363.3 MB, free: 9.027 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1364, allocations: 0 / 363.3 MB, free: 9.027 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1364, allocations: 4 kB / 363.3 MB, free: 9.023 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.1365, allocations: 0 / 363.3 MB, free: 9.023 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.0008971/0.1374, allocations: 0.504 MB / 363.8 MB, free: 8.465 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.1374, allocations: 12.03 kB / 363.8 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.045e-05/0.1375, allocations: 24.56 kB / 363.8 MB, free: 8.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004516/0.138, allocations: 291.6 kB / 364.1 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.461e-05/0.138, allocations: 8.359 kB / 364.1 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.255e-05/0.138, allocations: 12.12 kB / 364.1 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004116/0.1385, allocations: 180.4 kB / 364.3 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.1385, allocations: 0 / 364.3 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.625e-05/0.1385, allocations: 0 / 364.3 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.1385, allocations: 4 kB / 364.3 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001658/0.1387, allocations: 39.92 kB / 364.4 MB, free: 7.836 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009079/0.1396, allocations: 478.4 kB / 364.8 MB, free: 7.309 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002983/0.1399, allocations: 142.5 kB / 365 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.14, allocations: 67.36 kB / 365 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.919e-05/0.1401, allocations: 0 / 365 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002522/0.1403, allocations: 93.09 kB / 365.1 MB, free: 6.945 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.102e-06/0.1404, allocations: 0 / 365.1 MB, free: 6.945 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004856/0.1408, allocations: 177.2 kB / 365.3 MB, free: 6.766 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001272/0.141, allocations: 187.9 kB / 365.5 MB, free: 6.539 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004447/0.1414, allocations: 335 kB / 365.8 MB, free: 6.203 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.906e-05/0.1415, allocations: 34.08 kB / 365.8 MB, free: 6.164 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001251/0.1416, allocations: 132.3 kB / 366 MB, free: 6.027 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.095e-05/0.1417, allocations: 19.75 kB / 366 MB, free: 6.008 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.721e-05/0.1417, allocations: 21.7 kB / 366 MB, free: 5.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001949/0.1419, allocations: 342.8 kB / 366.3 MB, free: 5.637 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.677e-05/0.142, allocations: 23.98 kB / 366.4 MB, free: 5.613 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001308/0.1422, allocations: 95.59 kB / 366.5 MB, free: 5.496 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000184/0.1424, allocations: 101 kB / 366.6 MB, free: 5.379 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/0.1424, allocations: 8 kB / 366.6 MB, free: 5.371 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003208/0.1427, allocations: 129.4 kB / 366.7 MB, free: 5.238 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.898e-05/0.1428, allocations: 4 kB / 366.7 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.1428, allocations: 4 kB / 366.7 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.1428, allocations: 0 / 366.7 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.1429, allocations: 23.98 kB / 366.7 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.143, allocations: 0 / 366.7 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001173/0.1431, allocations: 16.3 kB / 366.7 MB, free: 5.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.474e-05/0.1431, allocations: 15.94 kB / 366.8 MB, free: 5.176 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.0001668/0.1433, allocations: 161.7 kB / 366.9 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/0.1434, allocations: 77.34 kB / 367 MB, free: 4.926 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.205e-05/0.1435, allocations: 25.73 kB / 367 MB, free: 4.895 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.814e-06/0.1435, allocations: 4 kB / 367 MB, free: 4.891 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.367e-06/0.1435, allocations: 0 / 367 MB, free: 4.891 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.1435, allocations: 7.875 kB / 367 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002781/0.1438, allocations: 257.6 kB / 367.3 MB, free: 4.582 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.1438, allocations: 0 / 367.3 MB, free: 4.582 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.912e-05/0.1439, allocations: 15.98 kB / 367.3 MB, free: 4.566 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.1439, allocations: 4 kB / 367.3 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.1439, allocations: 0 / 367.3 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/0.1439, allocations: 4 kB / 367.3 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1439, allocations: 0 / 367.3 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003071/0.1442, allocations: 183.3 kB / 367.5 MB, free: 4.352 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001092/0.1444, allocations: 120.8 kB / 367.6 MB, free: 4.215 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.019e-05/0.1444, allocations: 11.98 kB / 367.6 MB, free: 4.203 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.36e-05/0.1445, allocations: 0 / 367.6 MB, free: 4.203 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.741e-05/0.1446, allocations: 19.92 kB / 367.6 MB, free: 4.184 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.988e-05/0.1446, allocations: 4 kB / 367.6 MB, free: 4.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002831/0.1449, allocations: 245.9 kB / 367.9 MB, free: 3.941 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1449, allocations: 7.938 kB / 367.9 MB, free: 3.934 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002959/0.1452, allocations: 32 kB / 367.9 MB, free: 3.902 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.001123/0.1463, allocations: 432.2 kB / 368.3 MB, free: 3.613 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002768/0.1466, allocations: 79.91 kB / 368.4 MB, free: 3.535 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.1466, allocations: 0 / 368.4 MB, free: 3.535 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001014/0.1467, allocations: 44.22 kB / 368.5 MB, free: 3.492 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004788/0.1472, allocations: 65.92 kB / 368.5 MB, free: 3.422 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007473/0.148, allocations: 446.2 kB / 369 MB, free: 2.953 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003179/0.1483, allocations: 0.7556 MB / 369.7 MB, free: 2.172 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001095/0.1484, allocations: 25.53 kB / 369.7 MB, free: 2.145 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.475e-05/0.1485, allocations: 19.44 kB / 369.8 MB, free: 2.129 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1485, allocations: 0 / 369.8 MB, free: 2.129 MB / 302.1 MB Notification: Performance of Templates: time 0.2392/0.3877, allocations: 2.806 MB / 372.6 MB, free: 19.24 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins/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