Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00142/0.00142, allocations: 78.28 kB / 21.42 MB, free: 3.066 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 150.7 kB / 24.81 MB, free: 9.324 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9479/0.9479, allocations: 173.4 MB / 201.4 MB, free: 9.219 MB / 186.7 MB " [Timeout remaining time 179] 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.HoldWithDAeffects2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.517e-06/3.517e-06, allocations: 4 kB / 268.4 MB, free: 6.199 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.13e-05/2.482e-05, allocations: 6.25 kB / 268.4 MB, free: 6.191 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2): time 0.002263/0.002287, allocations: 1.861 MB / 270.3 MB, free: 4.312 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009064/0.003194, allocations: 0.6225 MB / 270.9 MB, free: 3.691 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.003302, allocations: 7.938 kB / 270.9 MB, free: 3.684 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001246/0.003427, allocations: 27.67 kB / 270.9 MB, free: 3.656 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001045/0.003531, allocations: 19.86 kB / 271 MB, free: 3.637 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002537/0.003785, allocations: 103.6 kB / 271.1 MB, free: 3.535 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001594/0.003945, allocations: 143.5 kB / 271.2 MB, free: 3.395 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001145/0.004059, allocations: 41.97 kB / 271.2 MB, free: 3.352 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001043/0.004163, allocations: 75.8 kB / 271.3 MB, free: 3.277 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.236e-05/0.004226, allocations: 39.83 kB / 271.4 MB, free: 3.238 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.16e-05/0.004247, allocations: 12 kB / 271.4 MB, free: 3.227 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.36e-05/0.004261, allocations: 12 kB / 271.4 MB, free: 3.215 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.634e-05/0.004307, allocations: 27.92 kB / 271.4 MB, free: 3.188 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.093e-05/0.004338, allocations: 39.84 kB / 271.4 MB, free: 3.148 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001249/0.004463, allocations: 99.52 kB / 271.5 MB, free: 3.051 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.553e-06/0.004465, allocations: 0 / 271.5 MB, free: 3.051 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.004465, allocations: 0 / 271.5 MB, free: 3.051 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.466e-06/0.004469, allocations: 0 / 271.5 MB, free: 3.051 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0003949/0.004864, allocations: 472 kB / 272 MB, free: 2.555 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.004899, allocations: 8.031 kB / 272 MB, free: 2.547 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.113e-05/0.00494, allocations: 36.73 kB / 272 MB, free: 2.512 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001893/0.005129, allocations: 189.3 kB / 272.2 MB, free: 2.297 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.005148, allocations: 8.562 kB / 272.2 MB, free: 2.289 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.502e-05/0.005163, allocations: 12.38 kB / 272.3 MB, free: 2.277 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003151/0.005478, allocations: 277.1 kB / 272.5 MB, free: 1.957 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.005487, allocations: 7.938 kB / 272.5 MB, free: 1.949 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.005497, allocations: 0 / 272.5 MB, free: 1.949 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.005505, allocations: 4 kB / 272.5 MB, free: 1.945 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.142e-05/0.005546, allocations: 27.91 kB / 272.6 MB, free: 1.918 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003317/0.005878, allocations: 430.2 kB / 273 MB, free: 1.453 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004463/0.006324, allocations: 199.2 kB / 273.2 MB, free: 1.195 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.222e-05/0.006386, allocations: 86.44 kB / 273.3 MB, free: 1.09 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.962e-05/0.006406, allocations: 8 kB / 273.3 MB, free: 1.082 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.218e-05/0.006428, allocations: 41.39 kB / 273.3 MB, free: 1.031 MB / 250.7 MB Notification: Performance of pre-optimization done (n=18): time 1.353e-06/0.00643, allocations: 0 / 273.3 MB, free: 1.031 MB / 250.7 MB Notification: Performance of matching and sorting (n=18): time 0.0001961/0.006626, allocations: 137.4 kB / 273.4 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.242e-05/0.006698, allocations: 195.8 kB / 273.6 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.00681, allocations: 222.7 kB / 273.8 MB, free: 432 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.341e-05/0.006823, allocations: 34.08 kB / 273.9 MB, free: 392 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.533e-05/0.006878, allocations: 155.2 kB / 274 MB, free: 228 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.457e-05/0.006893, allocations: 11.88 kB / 274 MB, free: 216 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.512e-05/0.006928, allocations: 31.36 kB / 274.1 MB, free: 176 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.007049, allocations: 0.4962 MB / 274.6 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.237e-06/0.007058, allocations: 0 / 274.6 MB, free: 15.66 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.577e-05/0.007094, allocations: 60.45 kB / 274.6 MB, free: 15.58 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.638e-05/0.007131, allocations: 42.98 kB / 274.7 MB, free: 15.53 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.007133, allocations: 3.938 kB / 274.7 MB, free: 15.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.295e-05/0.007196, allocations: 57.62 kB / 274.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.007208, allocations: 4 kB / 274.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.007213, allocations: 0 / 274.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.007224, allocations: 7.984 kB / 274.7 MB, free: 15.45 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.373e-05/0.007278, allocations: 8 kB / 274.8 MB, free: 15.44 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.007282, allocations: 7.938 kB / 274.8 MB, free: 15.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.576e-05/0.007328, allocations: 7.953 kB / 274.8 MB, free: 15.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.007335, allocations: 4 kB / 274.8 MB, free: 15.42 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (hold1.compDelay.ubuf) * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.0001014/0.007437, allocations: 168.8 kB / 274.9 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001348/0.007572, allocations: 113.5 kB / 275 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.066e-05/0.007612, allocations: 25.45 kB / 275.1 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-06/0.007616, allocations: 4 kB / 275.1 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.993e-06/0.007618, allocations: 0 / 275.1 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.007621, allocations: 0 / 275.1 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001564/0.007778, allocations: 129.2 kB / 275.2 MB, free: 14.94 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.007779, allocations: 0 / 275.2 MB, free: 14.94 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.636e-05/0.007856, allocations: 39.91 kB / 275.2 MB, free: 14.9 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.646e-06/0.007859, allocations: 3.938 kB / 275.2 MB, free: 14.9 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.615e-06/0.007867, allocations: 8 kB / 275.3 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.007869, allocations: 4.031 kB / 275.3 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.007871, allocations: 4 kB / 275.3 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001264/0.007997, allocations: 342.1 kB / 275.6 MB, free: 14.52 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.68e-05/0.008044, allocations: 39.77 kB / 275.6 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.785e-05/0.008062, allocations: 7.984 kB / 275.6 MB, free: 14.47 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.95e-05/0.008131, allocations: 8 kB / 275.7 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.08e-05/0.008152, allocations: 0 / 275.7 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-06/0.00816, allocations: 11.98 kB / 275.7 MB, free: 14.45 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.577e-05/0.008216, allocations: 161 kB / 275.8 MB, free: 14.29 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008216, allocations: 0 / 275.8 MB, free: 14.29 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001803/0.008396, allocations: 23.98 kB / 275.8 MB, free: 14.27 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (hold1.compDelay.ubuf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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 6.906e-05/0.008465, allocations: 99.25 kB / 275.9 MB, free: 14.16 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.861e-05/0.008554, allocations: 46.56 kB / 276 MB, free: 14.12 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.008555, allocations: 0 / 276 MB, free: 14.12 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.404e-05/0.008569, allocations: 15.62 kB / 276 MB, free: 14.1 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003547/0.008924, allocations: 86.03 kB / 276.1 MB, free: 14.02 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000546/0.00947, allocations: 318.4 kB / 276.4 MB, free: 13.66 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.089e-05/0.009521, allocations: 79.81 kB / 276.5 MB, free: 13.56 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.741e-05/0.009558, allocations: 13.16 kB / 276.5 MB, free: 13.55 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.00966, allocations: 110.2 kB / 276.6 MB, free: 13.44 MB / 266.7 MB Notification: Performance of SimCode: time 4.01e-07/0.009661, allocations: 0 / 276.6 MB, free: 13.44 MB / 266.7 MB Notification: Performance of Templates: time 0.003328/0.01299, allocations: 1.934 MB / 278.5 MB, free: 11.55 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/HoldWithDAeffects2/HoldWithDAeffects2.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.665487210266292]