Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001495/0.001495, allocations: 112.2 kB / 21.19 MB, free: 0.7578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001749/0.001749, allocations: 209.8 kB / 24.5 MB, free: 4.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.565/1.565, allocations: 230.6 MB / 258.3 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001795/0.001795, allocations: 51.92 kB / 379 MB, free: 2.621 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.406/0.4078, allocations: 53.37 MB / 432.4 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2): time 0.004449/0.4123, allocations: 1.886 MB / 434.3 MB, free: 5.035 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002133/0.4144, allocations: 0.7158 MB / 435 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002598/0.4147, allocations: 7.938 kB / 435 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002017/0.4149, allocations: 23.73 kB / 435 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001959/0.4151, allocations: 31.78 kB / 435.1 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005848/0.4157, allocations: 107.7 kB / 435.2 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003213/0.416, allocations: 151.5 kB / 435.3 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001896/0.4162, allocations: 37.91 kB / 435.4 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002218/0.4164, allocations: 67.7 kB / 435.4 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001613/0.4165, allocations: 59.64 kB / 435.5 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.405e-05/0.4166, allocations: 8 kB / 435.5 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.84e-05/0.4167, allocations: 20 kB / 435.5 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.666e-05/0.4168, allocations: 23.92 kB / 435.5 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001005/0.4169, allocations: 75.47 kB / 435.6 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003766/0.4172, allocations: 144.6 kB / 435.7 MB, free: 3.578 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.4172, allocations: 0 / 435.7 MB, free: 3.578 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4172, allocations: 0 / 435.7 MB, free: 3.578 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.227e-06/0.4173, allocations: 0 / 435.7 MB, free: 3.578 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0009156/0.4182, allocations: 381.6 kB / 436.1 MB, free: 3.176 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.377e-05/0.4182, allocations: 8.031 kB / 436.1 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002573/0.4185, allocations: 28.83 kB / 436.2 MB, free: 3.141 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005353/0.419, allocations: 198.2 kB / 436.4 MB, free: 2.922 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.344e-05/0.419, allocations: 12.12 kB / 436.4 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.978e-05/0.4191, allocations: 12 kB / 436.4 MB, free: 2.898 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006866/0.4198, allocations: 280.6 kB / 436.6 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.4198, allocations: 0 / 436.6 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.387e-05/0.4198, allocations: 7.938 kB / 436.7 MB, free: 2.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.4198, allocations: 4 kB / 436.7 MB, free: 2.586 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002278/0.42, allocations: 79.88 kB / 436.7 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006484/0.4207, allocations: 398.5 kB / 437.1 MB, free: 2.062 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004817/0.4212, allocations: 201.1 kB / 437.3 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002159/0.4214, allocations: 108.2 kB / 437.4 MB, free: 1.699 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.902e-05/0.4214, allocations: 7.984 kB / 437.4 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.961e-05/0.4214, allocations: 38.56 kB / 437.5 MB, free: 1.645 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.432e-06/0.4214, allocations: 0 / 437.5 MB, free: 1.645 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006259/0.4221, allocations: 225.2 kB / 437.7 MB, free: 1.418 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001693/0.4222, allocations: 196.3 kB / 437.9 MB, free: 1.184 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002355/0.4225, allocations: 183.1 kB / 438.1 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.102e-05/0.4225, allocations: 33.7 kB / 438.1 MB, free: 0.957 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.215e-05/0.4226, allocations: 104.4 kB / 438.2 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.005e-05/0.4226, allocations: 15.94 kB / 438.2 MB, free: 0.832 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.028e-05/0.4227, allocations: 41.66 kB / 438.3 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.4229, allocations: 326.8 kB / 438.6 MB, free: 468 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.245e-05/0.4229, allocations: 19.98 kB / 438.6 MB, free: 448 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001722/0.4231, allocations: 139.4 kB / 438.7 MB, free: 252 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002609/0.4234, allocations: 182.4 kB / 438.9 MB, free: 16 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.4234, allocations: 0 / 438.9 MB, free: 16 kB / 334.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003541/0.4237, allocations: 173.8 kB / 439.1 MB, free: 15.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.4238, allocations: 11.94 kB / 439.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.4238, allocations: 4 kB / 439.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.4238, allocations: 7.984 kB / 439.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000142/0.4239, allocations: 35.92 kB / 439.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.651e-05/0.4239, allocations: 11.94 kB / 439.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/0.4241, allocations: 15.89 kB / 439.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.618e-05/0.4241, allocations: 12 kB / 439.2 MB, free: 15.74 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (19): * Single equations (assignments): 19 * 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.000169/0.4242, allocations: 137.7 kB / 439.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003252/0.4246, allocations: 142 kB / 439.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.834e-05/0.4246, allocations: 25.39 kB / 439.5 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.4246, allocations: 7.938 kB / 439.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.4246, allocations: 0 / 439.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.4247, allocations: 3.938 kB / 439.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003321/0.425, allocations: 200.5 kB / 439.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/0.425, allocations: 4 kB / 439.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001459/0.4251, allocations: 35.97 kB / 439.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.4251, allocations: 4.031 kB / 439.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.155e-05/0.4252, allocations: 12 kB / 439.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.651e-06/0.4252, allocations: 7.875 kB / 439.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.4252, allocations: 4 kB / 439.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004857/0.4257, allocations: 368.1 kB / 440.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.711e-05/0.4257, allocations: 31.89 kB / 440.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.742e-05/0.4258, allocations: 0 / 440.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001515/0.4259, allocations: 15.98 kB / 440.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.121e-05/0.426, allocations: 3.938 kB / 440.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.238e-05/0.426, allocations: 8 kB / 440.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001483/0.4261, allocations: 140.4 kB / 440.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4261, allocations: 0 / 440.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003482/0.4265, allocations: 27.95 kB / 440.3 MB, free: 14.5 MB / 350.1 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 0.000128/0.4266, allocations: 107.2 kB / 440.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000326/0.4269, allocations: 108.8 kB / 440.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.4269, allocations: 4.062 kB / 440.5 MB, free: 14.28 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.143e-05/0.427, allocations: 19.92 kB / 440.6 MB, free: 14.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006807/0.4277, allocations: 96.3 kB / 440.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007763/0.4284, allocations: 353.3 kB / 441 MB, free: 13.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004562/0.4289, allocations: 0.7242 MB / 441.7 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.881e-05/0.429, allocations: 31.3 kB / 441.8 MB, free: 13 MB / 350.1 MB Notification: Performance of SimCode: time 8.02e-07/0.429, allocations: 4 kB / 441.8 MB, free: 12.99 MB / 350.1 MB Notification: Performance of Templates: time 0.004854/0.4338, allocations: 1.864 MB / 443.6 MB, free: 11.14 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/HoldWithDAeffects2/HoldWithDAeffects2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.213120456086472]