Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.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.RealSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001214/0.001214, allocations: 108 kB / 17.32 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001714/0.001714, allocations: 209.8 kB / 18.27 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.544/1.544, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 61.88 kB / 306.4 MB, free: 0.8477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1307, allocations: 50.53 MB / 357 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.003151/0.1339, allocations: 1.675 MB / 358.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009609/0.1349, allocations: 0.5571 MB / 359.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.14e-05/0.135, allocations: 8 kB / 359.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.419e-05/0.1351, allocations: 7.922 kB / 359.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001432/0.1352, allocations: 3.938 kB / 359.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003277/0.1356, allocations: 51.89 kB / 359.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001121/0.1357, allocations: 63.77 kB / 359.3 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.1358, allocations: 19.92 kB / 359.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00012/0.1359, allocations: 35.92 kB / 359.4 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.778e-05/0.136, allocations: 23.84 kB / 359.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.577e-05/0.136, allocations: 4 kB / 359.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.322e-05/0.1361, allocations: 12 kB / 359.4 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.426e-05/0.1361, allocations: 15.92 kB / 359.4 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.837e-05/0.1362, allocations: 35.73 kB / 359.5 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001649/0.1364, allocations: 67.73 kB / 359.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.1364, allocations: 0 / 359.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1364, allocations: 0 / 359.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.93e-06/0.1364, allocations: 0 / 359.5 MB, free: 11.71 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005014/0.1369, allocations: 391.3 kB / 359.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.1369, allocations: 12.03 kB / 359.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001502/0.1371, allocations: 20.81 kB / 360 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001846/0.1373, allocations: 206.9 kB / 360.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.031e-05/0.1373, allocations: 4.375 kB / 360.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.431e-05/0.1373, allocations: 8.125 kB / 360.2 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003041/0.1376, allocations: 138.5 kB / 360.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.1377, allocations: 0 / 360.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-06/0.1377, allocations: 0 / 360.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.1377, allocations: 0 / 360.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.845e-05/0.1378, allocations: 35.84 kB / 360.3 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003673/0.1381, allocations: 287.5 kB / 360.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000131/0.1383, allocations: 90.36 kB / 360.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.249e-05/0.1384, allocations: 47.55 kB / 360.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.751e-05/0.1384, allocations: 7.922 kB / 360.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.496e-05/0.1384, allocations: 34.56 kB / 360.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.152e-06/0.1385, allocations: 4 kB / 360.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002874/0.1387, allocations: 101.5 kB / 360.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.787e-05/0.1388, allocations: 128.5 kB / 361 MB, free: 9.965 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001323/0.139, allocations: 150.4 kB / 361.2 MB, free: 9.801 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.625e-05/0.139, allocations: 26.2 kB / 361.2 MB, free: 9.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.898e-05/0.139, allocations: 96.06 kB / 361.3 MB, free: 9.672 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.879e-05/0.1391, allocations: 11.91 kB / 361.3 MB, free: 9.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.447e-05/0.1391, allocations: 17.72 kB / 361.3 MB, free: 9.637 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.1392, allocations: 322.8 kB / 361.6 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.618e-05/0.1393, allocations: 7.984 kB / 361.7 MB, free: 9.305 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.026e-05/0.1393, allocations: 52.23 kB / 361.7 MB, free: 9.238 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001073/0.1395, allocations: 60.2 kB / 361.8 MB, free: 9.164 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1395, allocations: 0 / 361.8 MB, free: 9.164 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001572/0.1396, allocations: 81.53 kB / 361.8 MB, free: 9.078 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.1396, allocations: 7.984 kB / 361.8 MB, free: 9.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.156e-06/0.1397, allocations: 7.938 kB / 361.9 MB, free: 9.062 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.1397, allocations: 0 / 361.9 MB, free: 9.062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.552e-05/0.1398, allocations: 16 kB / 361.9 MB, free: 9.047 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.099e-06/0.1398, allocations: 0 / 361.9 MB, free: 9.047 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.934e-05/0.1398, allocations: 11.92 kB / 361.9 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.514e-06/0.1399, allocations: 0 / 361.9 MB, free: 9.035 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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 8.294e-05/0.1399, allocations: 129.9 kB / 362 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001375/0.1401, allocations: 61.53 kB / 362.1 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.439e-05/0.1401, allocations: 15.83 kB / 362.1 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.379e-06/0.1401, allocations: 4 kB / 362.1 MB, free: 8.809 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1401, allocations: 0 / 362.1 MB, free: 8.809 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.1402, allocations: 11.86 kB / 362.1 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001993/0.1404, allocations: 173.6 kB / 362.3 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.1404, allocations: 4 kB / 362.3 MB, free: 8.574 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.801e-05/0.1405, allocations: 19.98 kB / 362.3 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.489e-06/0.1405, allocations: 4 kB / 362.3 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.1405, allocations: 0 / 362.3 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.1405, allocations: 3.938 kB / 362.3 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1405, allocations: 4 kB / 362.3 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002132/0.1407, allocations: 198 kB / 362.5 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.441e-05/0.1408, allocations: 96.98 kB / 362.6 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.266e-05/0.1408, allocations: 4 kB / 362.6 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.562e-05/0.1409, allocations: 0 / 362.6 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.701e-05/0.1409, allocations: 12.12 kB / 362.6 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.272e-06/0.141, allocations: 4 kB / 362.6 MB, free: 8.191 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.586e-05/0.141, allocations: 118.8 kB / 362.7 MB, free: 8.078 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1411, allocations: 0 / 362.7 MB, free: 8.078 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002446/0.1413, allocations: 8 kB / 362.7 MB, free: 8.07 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0001061/0.1414, allocations: 107.2 kB / 362.8 MB, free: 7.957 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001605/0.1416, allocations: 39.92 kB / 362.9 MB, free: 7.918 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1416, allocations: 0 / 362.9 MB, free: 7.918 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.339e-05/0.1416, allocations: 11.98 kB / 362.9 MB, free: 7.906 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004278/0.1421, allocations: 32.58 kB / 362.9 MB, free: 7.875 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004072/0.1425, allocations: 241.4 kB / 363.2 MB, free: 7.609 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003081/0.1428, allocations: 0.7012 MB / 363.9 MB, free: 6.883 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.707e-05/0.1429, allocations: 7.984 kB / 363.9 MB, free: 6.875 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.373e-05/0.1429, allocations: 15.44 kB / 363.9 MB, free: 6.859 MB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1429, allocations: 0 / 363.9 MB, free: 6.859 MB / 302.1 MB Notification: Performance of Templates: time 0.003183/0.1461, allocations: 0.6898 MB / 364.6 MB, free: 6.18 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Hold/Hold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches