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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 105.9 kB / 16.45 MB, free: 6.426 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.001534/0.001534, allocations: 190 kB / 17.39 MB, free: 5.668 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.695/1.695, allocations: 205.1 MB / 223.3 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09269/0.09269, allocations: 12.58 MB / 283.2 MB, free: 15.4 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.001852/0.001852, allocations: 84.42 kB / 394.2 MB, free: 45.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1257, allocations: 49.4 MB / 443.6 MB, free: 500 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold): time 0.004273/0.1301, allocations: 1.891 MB / 445.5 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002169/0.1323, allocations: 1.072 MB / 446.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002168/0.1325, allocations: 4 kB / 446.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003903/0.1329, allocations: 67.59 kB / 446.6 MB, free: 13.43 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004125/0.1334, allocations: 95.58 kB / 446.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009249/0.1343, allocations: 235.3 kB / 446.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003794/0.1347, allocations: 179.5 kB / 447.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001593/0.1349, allocations: 45.45 kB / 447.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001881/0.1351, allocations: 79.62 kB / 447.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000194/0.1353, allocations: 79.69 kB / 447.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.878e-05/0.1353, allocations: 8 kB / 447.3 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002624/0.1356, allocations: 71.88 kB / 447.4 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001278/0.1357, allocations: 51.84 kB / 447.4 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001251/0.1358, allocations: 79.41 kB / 447.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004638/0.1363, allocations: 239.2 kB / 447.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.297e-06/0.1363, allocations: 7.938 kB / 447.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1363, allocations: 0 / 447.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.697e-06/0.1364, allocations: 0 / 447.7 MB, free: 12.28 MB / 334.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.001068/0.1374, allocations: 0.5351 MB / 448.3 MB, free: 11.69 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.726e-05/0.1375, allocations: 8.031 kB / 448.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001128/0.1376, allocations: 28.64 kB / 448.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007104/0.1383, allocations: 287.6 kB / 448.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.66e-05/0.1384, allocations: 8.312 kB / 448.6 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.686e-05/0.1384, allocations: 12.12 kB / 448.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004603/0.1389, allocations: 168.4 kB / 448.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.1389, allocations: 0 / 448.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.791e-05/0.1389, allocations: 0 / 448.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.1389, allocations: 7.984 kB / 448.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001516/0.1391, allocations: 43.91 kB / 448.8 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007988/0.1399, allocations: 470.5 kB / 449.3 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003037/0.1402, allocations: 142.5 kB / 449.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001171/0.1404, allocations: 59.41 kB / 449.5 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.805e-05/0.1404, allocations: 4 kB / 449.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002338/0.1407, allocations: 97.03 kB / 449.6 MB, free: 10.19 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 2.876e-06/0.1407, allocations: 0 / 449.6 MB, free: 10.19 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004947/0.1412, allocations: 177.2 kB / 449.8 MB, free: 10.01 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001398/0.1413, allocations: 188.3 kB / 449.9 MB, free: 9.785 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000434/0.1418, allocations: 330.6 kB / 450.3 MB, free: 9.453 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.426e-05/0.1418, allocations: 29.7 kB / 450.3 MB, free: 9.418 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.1419, allocations: 132.3 kB / 450.4 MB, free: 9.285 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.329e-05/0.142, allocations: 19.88 kB / 450.4 MB, free: 9.266 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.881e-05/0.1421, allocations: 33.7 kB / 450.5 MB, free: 9.227 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.1422, allocations: 342.7 kB / 450.8 MB, free: 8.883 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.026e-05/0.1423, allocations: 35.92 kB / 450.8 MB, free: 8.848 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/0.1424, allocations: 95.7 kB / 450.9 MB, free: 8.727 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002004/0.1427, allocations: 97.08 kB / 451 MB, free: 8.613 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.1427, allocations: 0 / 451 MB, free: 8.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002741/0.1429, allocations: 133.5 kB / 451.2 MB, free: 8.477 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.143, allocations: 11.98 kB / 451.2 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.143, allocations: 4.219 kB / 451.2 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/0.143, allocations: 8 kB / 451.2 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001321/0.1432, allocations: 19.94 kB / 451.2 MB, free: 8.434 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.1432, allocations: 3.984 kB / 451.2 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.697e-05/0.1433, allocations: 15.88 kB / 451.2 MB, free: 8.414 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.326e-05/0.1433, allocations: 8 kB / 451.2 MB, free: 8.406 MB / 334.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.0001528/0.1435, allocations: 149.8 kB / 451.4 MB, free: 8.25 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.992e-05/0.1436, allocations: 77.42 kB / 451.5 MB, free: 8.168 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.951e-05/0.1436, allocations: 33.72 kB / 451.5 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.1436, allocations: 4 kB / 451.5 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.1436, allocations: 0 / 451.5 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.1437, allocations: 3.938 kB / 451.5 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002333/0.1439, allocations: 245.5 kB / 451.7 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1439, allocations: 0 / 451.7 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.6e-05/0.144, allocations: 19.92 kB / 451.8 MB, free: 7.816 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.144, allocations: 0 / 451.8 MB, free: 7.816 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.144, allocations: 11.94 kB / 451.8 MB, free: 7.805 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.144, allocations: 0 / 451.8 MB, free: 7.805 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.144, allocations: 8 kB / 451.8 MB, free: 7.797 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002806/0.1443, allocations: 175.4 kB / 451.9 MB, free: 7.598 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/0.1445, allocations: 112.8 kB / 452.1 MB, free: 7.469 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.552e-05/0.1445, allocations: 8 kB / 452.1 MB, free: 7.461 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.072e-05/0.1446, allocations: 8 kB / 452.1 MB, free: 7.453 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.033e-05/0.1447, allocations: 15.92 kB / 452.1 MB, free: 7.438 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-05/0.1447, allocations: 4 kB / 452.1 MB, free: 7.434 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002566/0.1449, allocations: 245.9 kB / 452.3 MB, free: 7.195 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.145, allocations: 0 / 452.3 MB, free: 7.195 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002928/0.1453, allocations: 35.94 kB / 452.4 MB, free: 7.16 MB / 334.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.0009625/0.1462, allocations: 416.7 kB / 452.8 MB, free: 6.742 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002715/0.1465, allocations: 91.84 kB / 452.9 MB, free: 6.652 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1465, allocations: 0 / 452.9 MB, free: 6.652 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001086/0.1466, allocations: 35.97 kB / 452.9 MB, free: 6.617 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004756/0.1471, allocations: 74.7 kB / 453 MB, free: 6.547 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007465/0.1479, allocations: 382.5 kB / 453.3 MB, free: 6.137 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004073/0.1483, allocations: 0.7437 MB / 454.1 MB, free: 5.363 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001021/0.1484, allocations: 21.55 kB / 454.1 MB, free: 5.34 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.116e-05/0.1485, allocations: 27.42 kB / 454.1 MB, free: 5.312 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1485, allocations: 0 / 454.1 MB, free: 5.312 MB / 334.1 MB Notification: Performance of Templates: time 0.008067/0.1566, allocations: 2.995 MB / 457.1 MB, free: 2.316 MB / 334.1 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches