Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Clocked.Examples.Elementary.RealSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008792/0.0008794, allocations: 95.7 kB / 16.3 MB, free: 5.996 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.0009954/0.0009955, allocations: 182.6 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.482/1.482, allocations: 223.2 MB / 241.1 MB, free: 5.363 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003922/0.0003922, allocations: 7.219 kB / 300.7 MB, free: 6.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1257, allocations: 50.43 MB / 351.1 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.001884/0.1276, allocations: 1.298 MB / 352.4 MB, free: 10.36 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007245/0.1284, allocations: 479 kB / 352.9 MB, free: 9.883 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.877e-05/0.1285, allocations: 0 / 352.9 MB, free: 9.883 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.41e-05/0.1285, allocations: 7.938 kB / 352.9 MB, free: 9.875 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001317/0.1287, allocations: 11.97 kB / 352.9 MB, free: 9.863 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002639/0.1289, allocations: 51.83 kB / 353 MB, free: 9.812 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.942e-05/0.129, allocations: 31.95 kB / 353 MB, free: 9.781 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.975e-05/0.1291, allocations: 16.27 kB / 353 MB, free: 9.766 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.256e-05/0.1292, allocations: 23.86 kB / 353 MB, free: 9.742 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.476e-05/0.1293, allocations: 19.86 kB / 353.1 MB, free: 9.723 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.421e-05/0.1293, allocations: 0 / 353.1 MB, free: 9.723 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.293e-05/0.1293, allocations: 0 / 353.1 MB, free: 9.723 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.398e-05/0.1294, allocations: 19.98 kB / 353.1 MB, free: 9.703 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.045e-05/0.1294, allocations: 33.64 kB / 353.1 MB, free: 9.664 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.084e-05/0.1295, allocations: 43.86 kB / 353.2 MB, free: 9.621 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.1295, allocations: 0 / 353.2 MB, free: 9.621 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1295, allocations: 0 / 353.2 MB, free: 9.621 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.017e-06/0.1295, allocations: 0 / 353.2 MB, free: 9.621 MB / 286.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.0004371/0.13, allocations: 375 kB / 353.5 MB, free: 9.207 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.293e-05/0.13, allocations: 8.031 kB / 353.5 MB, free: 9.199 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.617e-05/0.13, allocations: 15.86 kB / 353.6 MB, free: 9.184 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001923/0.1302, allocations: 199.4 kB / 353.7 MB, free: 8.949 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.039e-05/0.1303, allocations: 4 kB / 353.8 MB, free: 8.945 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.484e-05/0.1303, allocations: 4 kB / 353.8 MB, free: 8.941 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002655/0.1306, allocations: 134.7 kB / 353.9 MB, free: 8.785 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.1306, allocations: 7.938 kB / 353.9 MB, free: 8.777 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.718e-06/0.1306, allocations: 0 / 353.9 MB, free: 8.777 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.1306, allocations: 3.984 kB / 353.9 MB, free: 8.773 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.152e-05/0.1307, allocations: 31.94 kB / 353.9 MB, free: 8.742 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003303/0.131, allocations: 291.4 kB / 354.2 MB, free: 8.398 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001198/0.1312, allocations: 94.36 kB / 354.3 MB, free: 8.27 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.269e-05/0.1312, allocations: 8.125 kB / 354.3 MB, free: 8.262 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.261e-05/0.1312, allocations: 38.5 kB / 354.4 MB, free: 8.215 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.1312, allocations: 0 / 354.4 MB, free: 8.215 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002869/0.1315, allocations: 109.9 kB / 354.5 MB, free: 8.102 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.354e-05/0.1316, allocations: 136.5 kB / 354.6 MB, free: 7.938 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001402/0.1318, allocations: 148.8 kB / 354.7 MB, free: 7.785 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.178e-05/0.1318, allocations: 29.64 kB / 354.8 MB, free: 7.75 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.909e-05/0.1319, allocations: 88.33 kB / 354.9 MB, free: 7.66 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.951e-05/0.1319, allocations: 15.83 kB / 354.9 MB, free: 7.645 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.717e-06/0.1319, allocations: 0 / 354.9 MB, free: 7.645 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.132, allocations: 326.9 kB / 355.2 MB, free: 7.316 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.823e-05/0.1321, allocations: 11.98 kB / 355.2 MB, free: 7.305 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.283e-05/0.1321, allocations: 44.3 kB / 355.2 MB, free: 7.246 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.835e-05/0.1322, allocations: 23.92 kB / 355.3 MB, free: 7.223 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1322, allocations: 4 kB / 355.3 MB, free: 7.219 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001477/0.1324, allocations: 81.52 kB / 355.3 MB, free: 7.133 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.1324, allocations: 4.156 kB / 355.4 MB, free: 7.129 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.1324, allocations: 8 kB / 355.4 MB, free: 7.121 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.1324, allocations: 0 / 355.4 MB, free: 7.121 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.372e-05/0.1325, allocations: 23.88 kB / 355.4 MB, free: 7.098 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.541e-06/0.1325, allocations: 0 / 355.4 MB, free: 7.098 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.691e-05/0.1326, allocations: 4 kB / 355.4 MB, free: 7.094 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/0.1326, allocations: 4 kB / 355.4 MB, free: 7.09 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.858e-05/0.1327, allocations: 121.8 kB / 355.5 MB, free: 6.961 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.243e-05/0.1328, allocations: 61.55 kB / 355.6 MB, free: 6.895 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.913e-05/0.1328, allocations: 19.81 kB / 355.6 MB, free: 6.871 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.1328, allocations: 0 / 355.6 MB, free: 6.871 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.1329, allocations: 3.953 kB / 355.6 MB, free: 6.867 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.1329, allocations: 4 kB / 355.6 MB, free: 6.863 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001833/0.1331, allocations: 177.6 kB / 355.8 MB, free: 6.641 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1331, allocations: 0 / 355.8 MB, free: 6.641 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.76e-05/0.1331, allocations: 12 kB / 355.8 MB, free: 6.629 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.175e-06/0.1331, allocations: 0 / 355.8 MB, free: 6.629 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/0.1332, allocations: 11.98 kB / 355.8 MB, free: 6.617 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.1332, allocations: 4.062 kB / 355.8 MB, free: 6.613 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.1332, allocations: 3.938 kB / 355.8 MB, free: 6.609 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002347/0.1334, allocations: 235.2 kB / 356 MB, free: 6.336 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.083e-05/0.1335, allocations: 101 kB / 356.1 MB, free: 6.219 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.618e-05/0.1335, allocations: 0 / 356.1 MB, free: 6.219 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.275e-05/0.1336, allocations: 4 kB / 356.1 MB, free: 6.215 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.601e-05/0.1336, allocations: 3.984 kB / 356.1 MB, free: 6.211 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.137e-06/0.1337, allocations: 4 kB / 356.1 MB, free: 6.207 MB / 286.1 MB Notification: Performance of sorting global known variables: time 7.627e-05/0.1337, allocations: 120.9 kB / 356.3 MB, free: 6.09 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1338, allocations: 4 kB / 356.3 MB, free: 6.086 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002275/0.134, allocations: 4 kB / 356.3 MB, free: 6.082 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001316/0.1341, allocations: 103.1 kB / 356.4 MB, free: 5.973 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001873/0.1343, allocations: 43.92 kB / 356.4 MB, free: 5.93 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1343, allocations: 320 / 356.4 MB, free: 5.93 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.566e-05/0.1344, allocations: 23.98 kB / 356.4 MB, free: 5.906 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003386/0.1347, allocations: 27.95 kB / 356.5 MB, free: 5.879 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000392/0.1351, allocations: 220.2 kB / 356.7 MB, free: 5.621 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003447/0.1355, allocations: 0.6965 MB / 357.4 MB, free: 4.898 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.778e-05/0.1355, allocations: 4 kB / 357.4 MB, free: 4.895 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.777e-05/0.1356, allocations: 15.44 kB / 357.4 MB, free: 4.879 MB / 286.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1356, allocations: 0 / 357.4 MB, free: 4.879 MB / 286.1 MB Notification: Performance of Templates: time 0.002891/0.1385, allocations: 0.6227 MB / 358 MB, free: 4.266 MB / 286.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y,hold1.y Variables in the result:hold1.y,hold1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,time