Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001764/0.001765, allocations: 174.2 kB / 16.8 MB, free: 5.012 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.541/1.541, allocations: 205.4 MB / 223 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007331/0.0007332, allocations: 99.78 kB / 271.3 MB, free: 8.23 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06724/0.06724, allocations: 12.6 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000644/0.0006443, allocations: 16.28 kB / 393.3 MB, free: 65.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1157, allocations: 50.39 MB / 443.7 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold): time 0.003049/0.1188, allocations: 1.598 MB / 445.3 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002495/0.1214, allocations: 1.034 MB / 446.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001665/0.1216, allocations: 7.938 kB / 446.3 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003719/0.122, allocations: 59.8 kB / 446.4 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003242/0.1223, allocations: 83.72 kB / 446.5 MB, free: 12.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.1234, allocations: 211.6 kB / 446.7 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002758/0.1237, allocations: 163.5 kB / 446.8 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001522/0.1238, allocations: 25.56 kB / 446.9 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001464/0.124, allocations: 75.56 kB / 446.9 MB, free: 12.15 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001576/0.1242, allocations: 67.69 kB / 447 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.163e-05/0.1243, allocations: 4 kB / 447 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001864/0.1245, allocations: 47.97 kB / 447.1 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001065/0.1246, allocations: 51.77 kB / 447.1 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000108/0.1247, allocations: 101.1 kB / 447.2 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002922/0.125, allocations: 175.9 kB / 447.4 MB, free: 11.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.125, allocations: 0 / 447.4 MB, free: 11.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.1251, allocations: 0 / 447.4 MB, free: 11.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.1251, allocations: 4 kB / 447.4 MB, free: 11.7 MB / 298.7 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.000827/0.1259, allocations: 0.5001 MB / 447.9 MB, free: 11.15 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.126, allocations: 8.031 kB / 447.9 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.937e-05/0.126, allocations: 24.66 kB / 447.9 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003941/0.1265, allocations: 291.5 kB / 448.2 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.729e-05/0.1265, allocations: 8.375 kB / 448.2 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.774e-05/0.1265, allocations: 8.125 kB / 448.2 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004415/0.127, allocations: 177.8 kB / 448.4 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.127, allocations: 3.938 kB / 448.4 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.957e-05/0.1271, allocations: 0 / 448.4 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.1271, allocations: 4 kB / 448.4 MB, free: 10.56 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000178/0.1273, allocations: 39.92 kB / 448.4 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006539/0.1279, allocations: 470.5 kB / 448.9 MB, free: 10 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003811/0.1283, allocations: 142.5 kB / 449 MB, free: 9.828 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001528/0.1285, allocations: 67.36 kB / 449.1 MB, free: 9.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.212e-05/0.1286, allocations: 0 / 449.1 MB, free: 9.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002715/0.1289, allocations: 97.03 kB / 449.2 MB, free: 9.637 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 2.384e-06/0.1289, allocations: 0 / 449.2 MB, free: 9.637 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005841/0.1295, allocations: 173.3 kB / 449.4 MB, free: 9.461 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.307e-05/0.1296, allocations: 187.9 kB / 449.5 MB, free: 9.234 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004465/0.13, allocations: 330.7 kB / 449.9 MB, free: 8.902 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.225e-05/0.1301, allocations: 30.08 kB / 449.9 MB, free: 8.867 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.402e-05/0.1302, allocations: 136.4 kB / 450 MB, free: 8.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.556e-05/0.1302, allocations: 23.73 kB / 450.1 MB, free: 8.707 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.043e-05/0.1303, allocations: 7.938 kB / 450.1 MB, free: 8.699 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.069e-05/0.1303, allocations: 334.8 kB / 450.4 MB, free: 8.363 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001148/0.1305, allocations: 27.98 kB / 450.4 MB, free: 8.336 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001547/0.1306, allocations: 95.7 kB / 450.5 MB, free: 8.215 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002483/0.1309, allocations: 97.27 kB / 450.6 MB, free: 8.102 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.1309, allocations: 0 / 450.6 MB, free: 8.102 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003797/0.1313, allocations: 141.3 kB / 450.7 MB, free: 7.957 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.1314, allocations: 8.625 kB / 450.8 MB, free: 7.949 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.1314, allocations: 0 / 450.8 MB, free: 7.949 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.899e-05/0.1314, allocations: 4 kB / 450.8 MB, free: 7.945 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001932/0.1316, allocations: 19.98 kB / 450.8 MB, free: 7.926 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.1316, allocations: 4 kB / 450.8 MB, free: 7.922 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001488/0.1318, allocations: 15.84 kB / 450.8 MB, free: 7.906 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.619e-05/0.1318, allocations: 12.09 kB / 450.8 MB, free: 7.895 MB / 298.7 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,shiftSample.y,hold.u,hold.y,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.0001672/0.132, allocations: 154.6 kB / 451 MB, free: 7.734 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00012/0.1322, allocations: 73.36 kB / 451 MB, free: 7.656 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.198e-05/0.1323, allocations: 29.7 kB / 451.1 MB, free: 7.629 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.1323, allocations: 0 / 451.1 MB, free: 7.629 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.1323, allocations: 3.984 kB / 451.1 MB, free: 7.625 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.1323, allocations: 7.938 kB / 451.1 MB, free: 7.617 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002398/0.1326, allocations: 237.5 kB / 451.3 MB, free: 7.336 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.1326, allocations: 4.062 kB / 451.3 MB, free: 7.332 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001238/0.1327, allocations: 15.98 kB / 451.3 MB, free: 7.316 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.61e-06/0.1327, allocations: 4 kB / 451.3 MB, free: 7.312 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.738e-05/0.1328, allocations: 4 kB / 451.3 MB, free: 7.309 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.1328, allocations: 4 kB / 451.3 MB, free: 7.305 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.1328, allocations: 0 / 451.3 MB, free: 7.305 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003875/0.1332, allocations: 191.2 kB / 451.5 MB, free: 7.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001242/0.1333, allocations: 120.8 kB / 451.6 MB, free: 6.953 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.518e-05/0.1334, allocations: 0 / 451.6 MB, free: 6.953 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001247/0.1335, allocations: 8 kB / 451.6 MB, free: 6.945 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.992e-05/0.1336, allocations: 11.92 kB / 451.7 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.501e-05/0.1337, allocations: 12.06 kB / 451.7 MB, free: 6.922 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003055/0.134, allocations: 245.9 kB / 451.9 MB, free: 6.68 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.413e-06/0.134, allocations: 0 / 451.9 MB, free: 6.68 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004577/0.1345, allocations: 35.94 kB / 451.9 MB, free: 6.645 MB / 298.7 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.00141/0.1359, allocations: 433.2 kB / 452.4 MB, free: 6.211 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003517/0.1363, allocations: 75.91 kB / 452.4 MB, free: 6.137 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.1363, allocations: 0 / 452.4 MB, free: 6.137 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001402/0.1364, allocations: 36.23 kB / 452.5 MB, free: 6.102 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005962/0.1371, allocations: 72.8 kB / 452.5 MB, free: 6.031 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008252/0.1379, allocations: 462.9 kB / 453 MB, free: 5.543 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002041/0.1381, allocations: 0.7518 MB / 453.8 MB, free: 4.766 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.502e-05/0.1382, allocations: 23.42 kB / 453.8 MB, free: 4.746 MB / 298.7 MB Notification: Performance of SimCode: time 5.41e-07/0.1382, allocations: 0 / 453.8 MB, free: 4.746 MB / 298.7 MB Notification: Performance of Templates: time 0.006875/0.1451, allocations: 2.953 MB / 456.7 MB, free: 1.785 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches