Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Synchronous.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample.y|shiftSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample.y|shiftSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009135/0.009135, allocations: 93.48 kB / 15.91 MB, free: 6.273 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.002189/0.002189, allocations: 202.4 kB / 16.84 MB, free: 6.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.86/1.86, allocations: 205.1 MB / 222.7 MB, free: 4.699 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08764/0.08764, allocations: 12.59 MB / 282.6 MB, free: 8.844 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001634/0.001634, allocations: 83.88 kB / 342.8 MB, free: 21.2 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1153, allocations: 49.4 MB / 392.2 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold): time 0.004435/0.1198, allocations: 1.949 MB / 394.1 MB, free: 1.742 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002357/0.1222, allocations: 0.9831 MB / 395.1 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002249/0.1225, allocations: 3.938 kB / 395.1 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009457/0.1235, allocations: 139.7 kB / 395.3 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003454/0.1238, allocations: 103.6 kB / 395.4 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007186/0.1246, allocations: 159.8 kB / 395.5 MB, free: 360 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003118/0.1249, allocations: 183.5 kB / 395.7 MB, free: 176 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001963/0.1251, allocations: 37.75 kB / 395.7 MB, free: 140 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001392/0.1252, allocations: 71.64 kB / 395.8 MB, free: 68 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001972/0.1255, allocations: 75.67 kB / 395.9 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.075e-05/0.1255, allocations: 4 kB / 395.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001809/0.1257, allocations: 43.92 kB / 395.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.765e-05/0.1258, allocations: 43.83 kB / 396 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.022e-05/0.1259, allocations: 63.55 kB / 396 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002803/0.1261, allocations: 203.2 kB / 396.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.1262, allocations: 0 / 396.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.1262, allocations: 4 kB / 396.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.712e-06/0.1262, allocations: 3.938 kB / 396.2 MB, free: 15.63 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.0008687/0.1271, allocations: 0.5118 MB / 396.7 MB, free: 15.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.1271, allocations: 8.031 kB / 396.8 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.178e-05/0.1272, allocations: 24.66 kB / 396.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000328/0.1275, allocations: 270.7 kB / 397 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.673e-05/0.1275, allocations: 8.375 kB / 397 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.928e-05/0.1276, allocations: 8.125 kB / 397.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003587/0.1279, allocations: 171.5 kB / 397.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.128, allocations: 0 / 397.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.464e-05/0.128, allocations: 0 / 397.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.128, allocations: 4 kB / 397.2 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001038/0.1281, allocations: 35.92 kB / 397.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005965/0.1287, allocations: 458.5 kB / 397.7 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000315/0.129, allocations: 138.5 kB / 397.8 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001086/0.1292, allocations: 59.42 kB / 397.9 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.388e-05/0.1292, allocations: 3.938 kB / 397.9 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002468/0.1295, allocations: 93.09 kB / 398 MB, free: 13.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.323e-06/0.1295, allocations: 0 / 398 MB, free: 13.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004893/0.13, allocations: 153.3 kB / 398.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001579/0.1301, allocations: 158.2 kB / 398.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003585/0.1305, allocations: 268.8 kB / 398.6 MB, free: 12.99 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.436e-05/0.1305, allocations: 34.08 kB / 398.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.1307, allocations: 120.4 kB / 398.7 MB, free: 12.83 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.553e-05/0.1307, allocations: 23.73 kB / 398.7 MB, free: 12.81 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.307e-05/0.1308, allocations: 29.7 kB / 398.8 MB, free: 12.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002032/0.131, allocations: 334.8 kB / 399.1 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.694e-05/0.1311, allocations: 23.98 kB / 399.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001131/0.1312, allocations: 78.86 kB / 399.2 MB, free: 12.31 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001554/0.1314, allocations: 85.08 kB / 399.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1314, allocations: 0 / 399.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002139/0.1316, allocations: 125.4 kB / 399.4 MB, free: 12.08 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.1316, allocations: 8 kB / 399.4 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.1316, allocations: 0 / 399.4 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.1317, allocations: 7.938 kB / 399.4 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/0.1318, allocations: 19.92 kB / 399.4 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.1318, allocations: 4 kB / 399.4 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.347e-05/0.1319, allocations: 11.84 kB / 399.5 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.124e-05/0.1319, allocations: 12.14 kB / 399.5 MB, free: 12.02 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,shiftSample.y,hold.y,hold.u,shiftSample.u,sample.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.0001248/0.132, allocations: 141.8 kB / 399.6 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.134e-05/0.1321, allocations: 69.81 kB / 399.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.176e-05/0.1322, allocations: 25.7 kB / 399.7 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.1322, allocations: 0 / 399.7 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.1322, allocations: 11.94 kB / 399.7 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.1322, allocations: 3.938 kB / 399.7 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002161/0.1324, allocations: 237.5 kB / 399.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-06/0.1324, allocations: 4.062 kB / 399.9 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.638e-05/0.1325, allocations: 7.938 kB / 400 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.1325, allocations: 0 / 400 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.288e-05/0.1325, allocations: 11.98 kB / 400 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.1325, allocations: 3.984 kB / 400 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.1325, allocations: 4 kB / 400 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002596/0.1328, allocations: 171.3 kB / 400.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001061/0.1329, allocations: 112.8 kB / 400.3 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.16e-05/0.1329, allocations: 4 kB / 400.3 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.498e-05/0.133, allocations: 8 kB / 400.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.861e-05/0.1331, allocations: 11.92 kB / 400.3 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.457e-05/0.1331, allocations: 4 kB / 400.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001781/0.1333, allocations: 196.5 kB / 400.5 MB, free: 10.9 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1333, allocations: 0 / 400.5 MB, free: 10.9 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002606/0.1336, allocations: 32 kB / 400.5 MB, free: 10.87 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,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.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.0009396/0.1345, allocations: 420.9 kB / 400.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002247/0.1347, allocations: 75.84 kB / 401 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.1348, allocations: 7.938 kB / 401 MB, free: 10.37 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.737e-05/0.1348, allocations: 24.3 kB / 401 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004138/0.1353, allocations: 69.09 kB / 401.1 MB, free: 10.28 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006092/0.1359, allocations: 371.5 kB / 401.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004409/0.1363, allocations: 0.7361 MB / 402.2 MB, free: 9.117 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.08e-05/0.1364, allocations: 17.55 kB / 402.2 MB, free: 9.102 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.903e-05/0.1365, allocations: 23.42 kB / 402.2 MB, free: 9.078 MB / 302.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1365, allocations: 0 / 402.2 MB, free: 9.078 MB / 302.1 MB Notification: Performance of Templates: time 0.005846/0.1423, allocations: 2.416 MB / 404.6 MB, free: 6.656 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches