Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.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.00159/0.00159, allocations: 84.7 kB / 20.68 MB, free: 1.023 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.002047/0.002047, allocations: 166.5 kB / 23.95 MB, free: 4.16 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.48/1.48, allocations: 177.1 MB / 204.3 MB, free: 9.184 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2162/0.2162, allocations: 34.27 MB / 294.9 MB, free: 14.58 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) 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(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 442.7 MB, free: 5.43 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.564e-05/2.734e-05, allocations: 6.281 kB / 442.7 MB, free: 5.422 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002925/0.002952, allocations: 1.54 MB / 444.2 MB, free: 3.875 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001062/0.004015, allocations: 0.522 MB / 444.7 MB, free: 3.348 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.488e-05/0.00407, allocations: 0 / 444.7 MB, free: 3.348 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 3.586e-05/0.004106, allocations: 7.875 kB / 444.7 MB, free: 3.34 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.917e-05/0.004195, allocations: 7.875 kB / 444.7 MB, free: 3.332 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002504/0.004445, allocations: 59.8 kB / 444.8 MB, free: 3.273 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001744/0.00462, allocations: 91.7 kB / 444.9 MB, free: 3.184 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.683e-05/0.004716, allocations: 15.91 kB / 444.9 MB, free: 3.168 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000186/0.004902, allocations: 63.83 kB / 445 MB, free: 3.105 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.686e-05/0.004979, allocations: 31.94 kB / 445 MB, free: 3.074 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.655e-05/0.005006, allocations: 11.94 kB / 445 MB, free: 3.062 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.797e-05/0.005054, allocations: 11.94 kB / 445 MB, free: 3.051 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.24e-05/0.005086, allocations: 19.97 kB / 445 MB, free: 3.031 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.289e-05/0.005139, allocations: 27.91 kB / 445.1 MB, free: 3.004 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001834/0.005323, allocations: 87.75 kB / 445.2 MB, free: 2.918 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.005327, allocations: 0 / 445.2 MB, free: 2.918 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.005328, allocations: 0 / 445.2 MB, free: 2.918 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.598e-06/0.005337, allocations: 0 / 445.2 MB, free: 2.918 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007578/0.006095, allocations: 334 kB / 445.5 MB, free: 2.562 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.006135, allocations: 8.031 kB / 445.5 MB, free: 2.555 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001584/0.006293, allocations: 20.88 kB / 445.5 MB, free: 2.535 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002557/0.006549, allocations: 137.6 kB / 445.6 MB, free: 2.375 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.4e-05/0.006563, allocations: 4.375 kB / 445.6 MB, free: 2.371 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.491e-05/0.006588, allocations: 12.36 kB / 445.7 MB, free: 2.359 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002343/0.006822, allocations: 98.08 kB / 445.8 MB, free: 2.258 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.006834, allocations: 192 / 445.8 MB, free: 2.258 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.73e-05/0.006851, allocations: 4.375 kB / 445.8 MB, free: 2.254 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.006858, allocations: 3.938 kB / 445.8 MB, free: 2.25 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001536/0.007012, allocations: 47.22 kB / 445.8 MB, free: 2.207 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005679/0.007579, allocations: 260.4 kB / 446.1 MB, free: 1.922 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002313/0.007811, allocations: 82.53 kB / 446.1 MB, free: 1.832 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001141/0.007925, allocations: 48.83 kB / 446.2 MB, free: 1.781 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.295e-05/0.007948, allocations: 4 kB / 446.2 MB, free: 1.777 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002117/0.008159, allocations: 99.3 kB / 446.3 MB, free: 1.668 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.673e-06/0.008161, allocations: 0 / 446.3 MB, free: 1.668 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005385/0.0087, allocations: 205.6 kB / 446.5 MB, free: 1.461 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/0.008754, allocations: 55.41 kB / 446.5 MB, free: 1.395 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.008868, allocations: 117.8 kB / 446.7 MB, free: 1.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.526e-05/0.008903, allocations: 33.7 kB / 446.7 MB, free: 1.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.03e-05/0.008974, allocations: 104.3 kB / 446.8 MB, free: 1.121 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.433e-05/0.009018, allocations: 31.75 kB / 446.8 MB, free: 1.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.32e-05/0.009081, allocations: 37.7 kB / 446.9 MB, free: 1.047 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.009231, allocations: 318.8 kB / 447.2 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001076/0.009339, allocations: 39.97 kB / 447.2 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001315/0.00947, allocations: 76.2 kB / 447.3 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002442/0.009715, allocations: 124.2 kB / 447.4 MB, free: 472 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.009717, allocations: 0 / 447.4 MB, free: 472 kB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003214/0.01004, allocations: 165.5 kB / 447.6 MB, free: 304 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.01005, allocations: 8.125 kB / 447.6 MB, free: 296 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.01006, allocations: 7.938 kB / 447.6 MB, free: 288 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.01008, allocations: 0 / 447.6 MB, free: 288 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001244/0.0102, allocations: 23.92 kB / 447.6 MB, free: 264 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/0.01021, allocations: 4 kB / 447.6 MB, free: 260 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.105e-05/0.01028, allocations: 19.88 kB / 447.6 MB, free: 240 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.341e-05/0.0103, allocations: 4 kB / 447.6 MB, free: 236 kB / 366.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: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample,$PRE.zeroOrderHold.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001142/0.01041, allocations: 132.4 kB / 447.8 MB, free: 96 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.999e-05/0.01043, allocations: 7.953 kB / 447.8 MB, free: 88 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.657e-05/0.01048, allocations: 16.42 kB / 447.8 MB, free: 72 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.01048, allocations: 4 kB / 447.8 MB, free: 68 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.01048, allocations: 4 kB / 447.8 MB, free: 64 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.01049, allocations: 4 kB / 447.8 MB, free: 60 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1895/0.2, allocations: 380.5 kB / 448.2 MB, free: 19.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.2, allocations: 1.984 kB / 448.2 MB, free: 19.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.2e-05/0.2001, allocations: 7.453 kB / 448.2 MB, free: 19.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.542e-06/0.2001, allocations: 1.062 kB / 448.2 MB, free: 19.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.659e-05/0.2001, allocations: 5.906 kB / 448.2 MB, free: 19.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.2001, allocations: 5.469 kB / 448.2 MB, free: 19.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.2001, allocations: 5.656 kB / 448.2 MB, free: 19.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003272/0.2004, allocations: 261.8 kB / 448.5 MB, free: 18.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.496e-05/0.2005, allocations: 6.812 kB / 448.5 MB, free: 18.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.866e-05/0.2005, allocations: 14.16 kB / 448.5 MB, free: 18.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001219/0.2006, allocations: 8.312 kB / 448.5 MB, free: 18.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.393e-05/0.2007, allocations: 10.67 kB / 448.5 MB, free: 18.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.434e-05/0.2007, allocations: 6.172 kB / 448.5 MB, free: 18.96 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.087e-05/0.2007, allocations: 92.41 kB / 448.6 MB, free: 18.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2007, allocations: 1.625 kB / 448.6 MB, free: 18.89 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002827/0.201, allocations: 23.56 kB / 448.6 MB, free: 18.89 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001004/0.2011, allocations: 101.2 kB / 448.7 MB, free: 18.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002849/0.2014, allocations: 105 kB / 448.8 MB, free: 18.8 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2014, allocations: 3.438 kB / 448.8 MB, free: 18.8 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001228/0.2015, allocations: 50.33 kB / 448.9 MB, free: 18.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002859/0.2018, allocations: 11.28 kB / 448.9 MB, free: 18.8 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000396/0.2022, allocations: 208.1 kB / 449.1 MB, free: 18.67 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.849e-05/0.2023, allocations: 82 kB / 449.2 MB, free: 18.6 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.942e-05/0.2023, allocations: 12.95 kB / 449.2 MB, free: 18.6 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.867e-05/0.2023, allocations: 16 kB / 449.2 MB, free: 18.59 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2023, allocations: 0 / 449.2 MB, free: 18.59 MB / 366.1 MB Notification: Performance of Templates: time 0.004363/0.2067, allocations: 1.065 MB / 450.3 MB, free: 18.52 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.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: 4.827413287013769]