Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001025/0.001031, allocations: 92.34 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001401/0.001401, allocations: 201.1 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.537/1.537, allocations: 227.7 MB / 246.8 MB, free: 11.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003423/0.0003422, allocations: 8 kB / 307.7 MB, free: 0.8086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1258, allocations: 51.52 MB / 359.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold): time 0.002496/0.1283, allocations: 1.622 MB / 360.9 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002058/0.1304, allocations: 1.177 MB / 362.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001459/0.1306, allocations: 4 kB / 362.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000615/0.1312, allocations: 135.6 kB / 362.2 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003848/0.1316, allocations: 135.6 kB / 362.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005403/0.1322, allocations: 155.2 kB / 362.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002816/0.1325, allocations: 195.4 kB / 362.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001308/0.1326, allocations: 37.64 kB / 362.7 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001414/0.1327, allocations: 63.66 kB / 362.8 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001584/0.1329, allocations: 71.62 kB / 362.8 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.162e-05/0.1329, allocations: 4 kB / 362.8 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001412/0.1331, allocations: 51.89 kB / 362.9 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.054e-05/0.1332, allocations: 39.84 kB / 362.9 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.856e-05/0.1333, allocations: 93.19 kB / 363 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002897/0.1336, allocations: 203.5 kB / 363.2 MB, free: 9.297 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1336, allocations: 0 / 363.2 MB, free: 9.297 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1336, allocations: 0 / 363.2 MB, free: 9.297 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.331e-06/0.1336, allocations: 3.938 kB / 363.2 MB, free: 9.293 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.0007525/0.1344, allocations: 0.4924 MB / 363.7 MB, free: 8.746 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.816e-05/0.1344, allocations: 8.031 kB / 363.7 MB, free: 8.738 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.98e-05/0.1345, allocations: 24.66 kB / 363.7 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003403/0.1348, allocations: 270.8 kB / 364 MB, free: 8.406 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.65e-05/0.1349, allocations: 4.375 kB / 364 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.146e-05/0.1349, allocations: 12.12 kB / 364 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000408/0.1353, allocations: 167.5 kB / 364.2 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.1353, allocations: 0 / 364.2 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.114e-05/0.1354, allocations: 4 kB / 364.2 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.1354, allocations: 4 kB / 364.2 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001292/0.1355, allocations: 35.92 kB / 364.2 MB, free: 8.156 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008024/0.1363, allocations: 450.6 kB / 364.7 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003293/0.1367, allocations: 138.5 kB / 364.8 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001207/0.1368, allocations: 55.41 kB / 364.9 MB, free: 7.418 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.499e-05/0.1369, allocations: 4 kB / 364.9 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000237/0.1371, allocations: 93.12 kB / 365 MB, free: 7.305 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 2.515e-06/0.1371, allocations: 0 / 365 MB, free: 7.305 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004763/0.1376, allocations: 161.4 kB / 365.1 MB, free: 7.141 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001412/0.1378, allocations: 158.6 kB / 365.3 MB, free: 6.949 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004191/0.1382, allocations: 280.9 kB / 365.5 MB, free: 6.668 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.472e-05/0.1383, allocations: 33.69 kB / 365.6 MB, free: 6.629 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.1384, allocations: 128.3 kB / 365.7 MB, free: 6.496 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.44e-05/0.1384, allocations: 15.81 kB / 365.7 MB, free: 6.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.598e-05/0.1385, allocations: 21.7 kB / 365.7 MB, free: 6.453 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.1387, allocations: 330.8 kB / 366.1 MB, free: 6.121 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.738e-05/0.1388, allocations: 23.98 kB / 366.1 MB, free: 6.098 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001129/0.1389, allocations: 78.8 kB / 366.2 MB, free: 5.996 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001716/0.1391, allocations: 97.17 kB / 366.3 MB, free: 5.883 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1391, allocations: 0 / 366.3 MB, free: 5.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002828/0.1394, allocations: 125.4 kB / 366.4 MB, free: 5.754 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.062e-05/0.1394, allocations: 7.984 kB / 366.4 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/0.1394, allocations: 0 / 366.4 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.613e-05/0.1395, allocations: 4 kB / 366.4 MB, free: 5.742 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.577e-05/0.1396, allocations: 15.94 kB / 366.4 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.298e-06/0.1396, allocations: 4.156 kB / 366.4 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.1397, allocations: 23.77 kB / 366.4 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.389e-05/0.1397, allocations: 11.98 kB / 366.4 MB, free: 5.688 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.0001676/0.1399, allocations: 141.8 kB / 366.6 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.14, allocations: 65.45 kB / 366.6 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.824e-05/0.1401, allocations: 29.7 kB / 366.7 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.1401, allocations: 0 / 366.7 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.897e-06/0.1401, allocations: 8 kB / 366.7 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/0.1402, allocations: 7.938 kB / 366.7 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002945/0.1405, allocations: 229.5 kB / 366.9 MB, free: 5.152 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.1405, allocations: 0 / 366.9 MB, free: 5.152 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.491e-05/0.1405, allocations: 11.98 kB / 366.9 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.418e-06/0.1405, allocations: 4 kB / 366.9 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.1405, allocations: 0 / 366.9 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.383e-06/0.1406, allocations: 7.938 kB / 366.9 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.1406, allocations: 0 / 366.9 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003269/0.1409, allocations: 175.4 kB / 367.1 MB, free: 4.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001327/0.141, allocations: 116.8 kB / 367.2 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.796e-05/0.1411, allocations: 8 kB / 367.2 MB, free: 4.789 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.655e-05/0.1412, allocations: 4 kB / 367.2 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.379e-05/0.1412, allocations: 11.92 kB / 367.2 MB, free: 4.773 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.193e-05/0.1413, allocations: 12 kB / 367.3 MB, free: 4.762 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002977/0.1416, allocations: 208.4 kB / 367.5 MB, free: 4.559 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1416, allocations: 0 / 367.5 MB, free: 4.559 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000314/0.1419, allocations: 32 kB / 367.5 MB, free: 4.527 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.001161/0.1431, allocations: 408.5 kB / 367.9 MB, free: 4.254 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002571/0.1433, allocations: 84.16 kB / 368 MB, free: 4.172 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.1433, allocations: 0 / 368 MB, free: 4.172 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.832e-05/0.1434, allocations: 35.92 kB / 368 MB, free: 4.137 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000533/0.144, allocations: 63.3 kB / 368.1 MB, free: 4.078 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009808/0.145, allocations: 381 kB / 368.4 MB, free: 3.668 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004733/0.1455, allocations: 0.7361 MB / 369.2 MB, free: 2.906 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001113/0.1456, allocations: 21.53 kB / 369.2 MB, free: 2.887 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.655e-05/0.1457, allocations: 19.44 kB / 369.2 MB, free: 2.871 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1457, allocations: 3.938 kB / 369.2 MB, free: 2.867 MB / 302.1 MB Notification: Performance of Templates: time 0.008853/0.1545, allocations: 2.414 MB / 371.6 MB, free: 492 kB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Hold/Hold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches