Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001087/0.001087, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00589/0.006978, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.00135/0.00135, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001546/0.002896, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.125/1.125, allocations: 177.2 MB / 189.6 MB, free: 5.305 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.114/1.239, allocations: 53.64 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3386/0.3386, allocations: 32.81 MB / 276.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.04198/0.3805, allocations: 12.52 MB / 289.3 MB, free: 8.668 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.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.0.0_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.134e-06/2.134e-06, allocations: 0 / 290.6 MB, free: 7.652 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.426e-05/3.639e-05, allocations: 5.016 kB / 290.6 MB, free: 7.648 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003542/0.003579, allocations: 1.621 MB / 292.2 MB, free: 6.332 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.004604, allocations: 0.5571 MB / 292.8 MB, free: 5.898 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.571e-05/0.00468, allocations: 4.5 kB / 292.8 MB, free: 5.895 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.034e-05/0.00471, allocations: 5.156 kB / 292.8 MB, free: 5.891 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.863e-05/0.004779, allocations: 17.28 kB / 292.8 MB, free: 5.875 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002258/0.005004, allocations: 49.03 kB / 292.8 MB, free: 5.836 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001574/0.005162, allocations: 89.73 kB / 292.9 MB, free: 5.785 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.005271, allocations: 12.22 kB / 292.9 MB, free: 5.777 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002321/0.005503, allocations: 79.7 kB / 293 MB, free: 5.727 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.123e-05/0.005594, allocations: 32.39 kB / 293.1 MB, free: 5.707 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.348e-05/0.005618, allocations: 8.312 kB / 293.1 MB, free: 5.707 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.815e-05/0.005696, allocations: 8 kB / 293.1 MB, free: 5.707 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.428e-05/0.00572, allocations: 15.94 kB / 293.1 MB, free: 5.703 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.004e-05/0.00576, allocations: 24.14 kB / 293.1 MB, free: 5.695 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001662/0.005926, allocations: 58.38 kB / 293.2 MB, free: 5.668 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.072e-05/0.005947, allocations: 0 / 293.2 MB, free: 5.668 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.005948, allocations: 0 / 293.2 MB, free: 5.668 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.062e-05/0.005969, allocations: 4 kB / 293.2 MB, free: 5.664 MB / 282.7 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.000629/0.006598, allocations: 332.8 kB / 293.5 MB, free: 5.371 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.006637, allocations: 8.031 kB / 293.5 MB, free: 5.363 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001782/0.006815, allocations: 94.03 kB / 293.6 MB, free: 5.254 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001581/0.006973, allocations: 125.7 kB / 293.7 MB, free: 5.105 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.333e-05/0.006996, allocations: 8.312 kB / 293.7 MB, free: 5.098 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.202e-05/0.007008, allocations: 12.38 kB / 293.7 MB, free: 5.086 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001449/0.007153, allocations: 87.58 kB / 293.8 MB, free: 4.992 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.007162, allocations: 192 / 293.8 MB, free: 4.992 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.448e-06/0.007172, allocations: 4.359 kB / 293.8 MB, free: 4.988 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.804e-06/0.00718, allocations: 7.938 kB / 293.8 MB, free: 4.98 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.812e-05/0.007218, allocations: 15.98 kB / 293.9 MB, free: 4.965 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003402/0.007558, allocations: 184.2 kB / 294 MB, free: 4.77 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001113/0.007669, allocations: 54.5 kB / 294.1 MB, free: 4.707 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.606e-05/0.007695, allocations: 20.84 kB / 294.1 MB, free: 4.684 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.867e-05/0.007724, allocations: 8 kB / 294.1 MB, free: 4.676 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001205/0.007844, allocations: 80.92 kB / 294.2 MB, free: 4.586 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 2.364e-06/0.007847, allocations: 0 / 294.2 MB, free: 4.586 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001788/0.008026, allocations: 103.8 kB / 294.3 MB, free: 4.48 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.638e-05/0.008072, allocations: 55.41 kB / 294.4 MB, free: 4.414 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.856e-05/0.008151, allocations: 128.2 kB / 294.5 MB, free: 4.277 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.894e-05/0.008169, allocations: 33.7 kB / 294.5 MB, free: 4.238 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.414e-05/0.008204, allocations: 84.42 kB / 294.6 MB, free: 4.148 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.357e-05/0.008247, allocations: 35.72 kB / 294.6 MB, free: 4.113 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.617e-05/0.008293, allocations: 45.67 kB / 294.7 MB, free: 4.062 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.687e-05/0.00838, allocations: 326.8 kB / 295 MB, free: 3.734 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.69e-05/0.008407, allocations: 12 kB / 295 MB, free: 3.723 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.363e-05/0.008451, allocations: 48.27 kB / 295 MB, free: 3.66 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.968e-05/0.00853, allocations: 84.33 kB / 295.1 MB, free: 3.562 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.008533, allocations: 3.938 kB / 295.1 MB, free: 3.559 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001219/0.008655, allocations: 101.7 kB / 295.2 MB, free: 3.453 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.008673, allocations: 12 kB / 295.2 MB, free: 3.441 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.00868, allocations: 0 / 295.2 MB, free: 3.441 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.008694, allocations: 7.984 kB / 295.3 MB, free: 3.434 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.998e-05/0.008794, allocations: 35.92 kB / 295.3 MB, free: 3.398 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.717e-06/0.008797, allocations: 0 / 295.3 MB, free: 3.398 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.41e-05/0.008831, allocations: 11.89 kB / 295.3 MB, free: 3.387 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-06/0.008841, allocations: 8 kB / 295.3 MB, free: 3.379 MB / 282.7 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 9.452e-05/0.008936, allocations: 127.7 kB / 295.4 MB, free: 3.242 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.93e-05/0.008955, allocations: 11.98 kB / 295.4 MB, free: 3.23 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.513e-05/0.00899, allocations: 16.44 kB / 295.5 MB, free: 3.215 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.008992, allocations: 0 / 295.5 MB, free: 3.215 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.008997, allocations: 7.984 kB / 295.5 MB, free: 3.207 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.009, allocations: 0 / 295.5 MB, free: 3.207 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002877/0.009288, allocations: 251.9 kB / 295.7 MB, free: 2.938 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.009291, allocations: 0 / 295.7 MB, free: 2.938 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.81e-05/0.009329, allocations: 4 kB / 295.7 MB, free: 2.934 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.715e-05/0.009346, allocations: 19.86 kB / 295.7 MB, free: 2.914 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.00935, allocations: 0 / 295.7 MB, free: 2.914 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.009362, allocations: 8 kB / 295.7 MB, free: 2.906 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.009364, allocations: 0 / 295.7 MB, free: 2.906 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.009366, allocations: 4 kB / 295.7 MB, free: 2.902 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001437/0.009509, allocations: 182.3 kB / 295.9 MB, free: 2.711 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.175e-05/0.009531, allocations: 11.98 kB / 295.9 MB, free: 2.699 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.819e-05/0.009589, allocations: 7.938 kB / 295.9 MB, free: 2.691 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.854e-05/0.009638, allocations: 19.97 kB / 296 MB, free: 2.672 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.009655, allocations: 0 / 296 MB, free: 2.672 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.495e-05/0.00968, allocations: 18.16 kB / 296 MB, free: 2.652 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00968, allocations: 0 / 296 MB, free: 2.652 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001556/0.009835, allocations: 24 kB / 296 MB, free: 2.629 MB / 282.7 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.0001356/0.009971, allocations: 88.36 kB / 296.1 MB, free: 2.535 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001676/0.01014, allocations: 68.69 kB / 296.2 MB, free: 2.465 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.092e-05/0.01015, allocations: 4 kB / 296.2 MB, free: 2.461 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.61e-05/0.0102, allocations: 32.78 kB / 296.2 MB, free: 2.426 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002065/0.0104, allocations: 19.98 kB / 296.2 MB, free: 2.406 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009487/0.01135, allocations: 209.5 kB / 296.4 MB, free: 2.176 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.206e-05/0.0114, allocations: 63.59 kB / 296.5 MB, free: 2.094 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.293e-05/0.01145, allocations: 12.97 kB / 296.5 MB, free: 2.082 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.069e-05/0.01153, allocations: 71.36 kB / 296.6 MB, free: 2.012 MB / 282.7 MB Notification: Performance of SimCode: time 1.493e-06/0.01153, allocations: 0 / 296.6 MB, free: 2.012 MB / 282.7 MB Notification: Performance of Templates: time 0.004029/0.01556, allocations: 1.161 MB / 297.7 MB, free: 0.8867 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.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: 3.228981382213533]