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.001003/0.001003, allocations: 93.62 kB / 16.31 MB, free: 5.578 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.001286/0.001286, allocations: 177.6 kB / 17.2 MB, free: 5.496 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.498/1.498, allocations: 223.2 MB / 241.2 MB, free: 328 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003384/0.0003386, allocations: 8 kB / 300.8 MB, free: 6.445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1299, allocations: 50.42 MB / 351.2 MB, free: 4.012 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.002039/0.132, allocations: 1.284 MB / 352.5 MB, free: 2.715 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009241/0.133, allocations: 495 kB / 353 MB, free: 2.227 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001125/0.1331, allocations: 3.938 kB / 353 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.686e-05/0.1331, allocations: 7.922 kB / 353 MB, free: 2.215 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001578/0.1333, allocations: 15.92 kB / 353 MB, free: 2.199 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000346/0.1337, allocations: 51.81 kB / 353.1 MB, free: 2.148 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001138/0.1338, allocations: 43.86 kB / 353.1 MB, free: 2.105 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.1339, allocations: 15.98 kB / 353.2 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.205e-05/0.134, allocations: 23.84 kB / 353.2 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.754e-05/0.1341, allocations: 23.86 kB / 353.2 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.717e-05/0.1341, allocations: 0 / 353.2 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.443e-05/0.1341, allocations: 8 kB / 353.2 MB, free: 2.035 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.727e-05/0.1342, allocations: 8 kB / 353.2 MB, free: 2.027 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.981e-05/0.1342, allocations: 37.64 kB / 353.2 MB, free: 1.984 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.064e-05/0.1343, allocations: 39.91 kB / 353.3 MB, free: 1.945 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.1343, allocations: 4 kB / 353.3 MB, free: 1.941 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.1343, allocations: 0 / 353.3 MB, free: 1.941 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.1343, allocations: 0 / 353.3 MB, free: 1.941 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.0005282/0.1349, allocations: 375.2 kB / 353.7 MB, free: 1.527 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.1349, allocations: 16.03 kB / 353.7 MB, free: 1.512 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.294e-05/0.1349, allocations: 11.86 kB / 353.7 MB, free: 1.5 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002582/0.1352, allocations: 194.6 kB / 353.9 MB, free: 1.273 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.153e-05/0.1352, allocations: 0 / 353.9 MB, free: 1.273 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.539e-05/0.1353, allocations: 4 kB / 353.9 MB, free: 1.27 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000335/0.1356, allocations: 142.7 kB / 354 MB, free: 1.105 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.1356, allocations: 0 / 354 MB, free: 1.105 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.1356, allocations: 0 / 354 MB, free: 1.105 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.1356, allocations: 4 kB / 354 MB, free: 1.102 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.982e-05/0.1358, allocations: 31.88 kB / 354.1 MB, free: 1.07 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004103/0.1362, allocations: 287.5 kB / 354.3 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001299/0.1363, allocations: 98.42 kB / 354.4 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.763e-05/0.1364, allocations: 51.42 kB / 354.5 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.276e-05/0.1364, allocations: 0 / 354.5 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.222e-05/0.1365, allocations: 38.56 kB / 354.5 MB, free: 500 kB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.172e-06/0.1365, allocations: 0 / 354.5 MB, free: 500 kB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.000305/0.1368, allocations: 109.4 kB / 354.6 MB, free: 384 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.443e-05/0.1369, allocations: 137 kB / 354.8 MB, free: 216 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001303/0.137, allocations: 142.4 kB / 354.9 MB, free: 64 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.868e-05/0.1371, allocations: 29.7 kB / 354.9 MB, free: 28 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.507e-05/0.1371, allocations: 92.27 kB / 355 MB, free: 15.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.278e-05/0.1372, allocations: 11.89 kB / 355 MB, free: 15.92 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.047e-06/0.1372, allocations: 0 / 355 MB, free: 15.92 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.1373, allocations: 314.8 kB / 355.3 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.832e-05/0.1374, allocations: 15.98 kB / 355.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.637e-05/0.1374, allocations: 52.22 kB / 355.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.736e-05/0.1375, allocations: 19.94 kB / 355.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.1375, allocations: 0 / 355.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001616/0.1377, allocations: 93.45 kB / 355.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.1377, allocations: 4 kB / 355.5 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.1377, allocations: 3.984 kB / 355.5 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.1377, allocations: 7.953 kB / 355.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.857e-05/0.1378, allocations: 15.98 kB / 355.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.1379, allocations: 0 / 355.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.757e-05/0.1379, allocations: 8.156 kB / 355.6 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.14e-05/0.1379, allocations: 4 kB / 355.6 MB, free: 15.36 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.937e-05/0.138, allocations: 125.8 kB / 355.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.125e-05/0.1381, allocations: 53.55 kB / 355.7 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.945e-05/0.1382, allocations: 15.86 kB / 355.7 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.1382, allocations: 4 kB / 355.8 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.1382, allocations: 3.953 kB / 355.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.1382, allocations: 64 / 355.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002001/0.1384, allocations: 181.6 kB / 355.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.1384, allocations: 4 kB / 355.9 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.934e-05/0.1385, allocations: 19.92 kB / 356 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.1385, allocations: 0 / 356 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.1385, allocations: 4.125 kB / 356 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.1385, allocations: 4 kB / 356 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.1385, allocations: 0 / 356 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002185/0.1388, allocations: 202 kB / 356.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.434e-05/0.1388, allocations: 93 kB / 356.3 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.013e-05/0.1389, allocations: 4 kB / 356.3 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.132e-05/0.1389, allocations: 7.922 kB / 356.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.677e-05/0.139, allocations: 11.98 kB / 356.3 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.825e-06/0.139, allocations: 7.953 kB / 356.3 MB, free: 14.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.639e-05/0.1391, allocations: 109.1 kB / 356.4 MB, free: 14.42 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1391, allocations: 0 / 356.4 MB, free: 14.42 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002523/0.1393, allocations: 12 kB / 356.4 MB, free: 14.41 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 (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.0001288/0.1395, allocations: 98.62 kB / 356.5 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000159/0.1396, allocations: 47.98 kB / 356.5 MB, free: 14.26 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1397, allocations: 0 / 356.5 MB, free: 14.26 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.521e-05/0.1397, allocations: 15.92 kB / 356.6 MB, free: 14.24 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003965/0.1401, allocations: 39.89 kB / 356.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004231/0.1405, allocations: 224.2 kB / 356.8 MB, free: 13.94 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002952/0.1409, allocations: 0.6926 MB / 357.5 MB, free: 13.22 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.055e-05/0.1409, allocations: 11.98 kB / 357.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.686e-05/0.141, allocations: 11.44 kB / 357.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of SimCode: time 1.9e-07/0.141, allocations: 0 / 357.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of Templates: time 0.002803/0.1438, allocations: 0.6191 MB / 358.2 MB, free: 12.59 MB / 302.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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