Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.0007685/0.0007685, allocations: 76.19 kB / 9.911 MB, free: 0.7773 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001007/0.001776, allocations: 447.8 kB / 10.35 MB, free: 348 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.00084/0.00084, allocations: 161.1 kB / 11.23 MB, free: 2.938 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008393/0.001679, allocations: 463.6 kB / 11.69 MB, free: 2.48 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.026/1.026, allocations: 158.6 MB / 171 MB, free: 2.188 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2029/1.229, allocations: 49.5 MB / 220.5 MB, free: 5.273 MB / 218.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1473/0.1473, allocations: 32.35 MB / 253.6 MB, free: 4.164 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03068/0.178, allocations: 12.29 MB / 265.9 MB, free: 7.836 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 267.2 MB, free: 6.551 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.633e-05/2.804e-05, allocations: 6.25 kB / 267.2 MB, free: 6.543 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.004266/0.004294, allocations: 1.6 MB / 268.8 MB, free: 4.926 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001001/0.005295, allocations: 0.5229 MB / 269.3 MB, free: 4.395 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.252e-05/0.005348, allocations: 3.938 kB / 269.3 MB, free: 4.391 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.537e-05/0.005383, allocations: 7.922 kB / 269.3 MB, free: 4.383 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.254e-05/0.005456, allocations: 7.875 kB / 269.3 MB, free: 4.375 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001972/0.005653, allocations: 39.83 kB / 269.4 MB, free: 4.336 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001594/0.005812, allocations: 91.69 kB / 269.5 MB, free: 4.246 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000132/0.005944, allocations: 11.94 kB / 269.5 MB, free: 4.234 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002232/0.006167, allocations: 71.75 kB / 269.6 MB, free: 4.164 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000122/0.006289, allocations: 39.88 kB / 269.6 MB, free: 4.125 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.174e-05/0.006331, allocations: 8 kB / 269.6 MB, free: 4.117 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.041e-05/0.006352, allocations: 4 kB / 269.6 MB, free: 4.113 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.657e-05/0.006388, allocations: 12 kB / 269.6 MB, free: 4.102 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.889e-05/0.006447, allocations: 19.94 kB / 269.6 MB, free: 4.082 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00014/0.006587, allocations: 47.84 kB / 269.7 MB, free: 4.035 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.463e-05/0.006612, allocations: 0 / 269.7 MB, free: 4.035 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.006614, allocations: 0 / 269.7 MB, free: 4.035 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.149e-05/0.006635, allocations: 4 kB / 269.7 MB, free: 4.031 MB / 266.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.0006651/0.0073, allocations: 320.3 kB / 270 MB, free: 3.695 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.007341, allocations: 8.031 kB / 270 MB, free: 3.688 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.883e-05/0.00739, allocations: 12.92 kB / 270 MB, free: 3.676 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001219/0.007512, allocations: 121.6 kB / 270.1 MB, free: 3.531 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.943e-05/0.007541, allocations: 8.359 kB / 270.2 MB, free: 3.523 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.699e-05/0.007558, allocations: 12.31 kB / 270.2 MB, free: 3.512 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001753/0.007734, allocations: 78.91 kB / 270.2 MB, free: 3.426 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.007745, allocations: 192 / 270.2 MB, free: 3.426 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.2e-05/0.007757, allocations: 384 / 270.2 MB, free: 3.426 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.007765, allocations: 7.938 kB / 270.2 MB, free: 3.418 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.81e-05/0.007813, allocations: 23.92 kB / 270.3 MB, free: 3.395 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004568/0.00827, allocations: 180.3 kB / 270.4 MB, free: 3.203 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001482/0.008418, allocations: 50.55 kB / 270.5 MB, free: 3.145 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.945e-05/0.008458, allocations: 20.86 kB / 270.5 MB, free: 3.121 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.028e-05/0.008488, allocations: 4 kB / 270.5 MB, free: 3.117 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001589/0.008647, allocations: 83.23 kB / 270.6 MB, free: 3.023 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 2.004e-06/0.008649, allocations: 0 / 270.6 MB, free: 3.023 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002393/0.008888, allocations: 105.7 kB / 270.7 MB, free: 2.914 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.773e-05/0.008946, allocations: 55.41 kB / 270.8 MB, free: 2.848 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.661e-05/0.009042, allocations: 118.7 kB / 270.9 MB, free: 2.719 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.009068, allocations: 29.7 kB / 270.9 MB, free: 2.684 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.032e-05/0.009118, allocations: 92.39 kB / 271 MB, free: 2.59 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.718e-05/0.009165, allocations: 35.72 kB / 271 MB, free: 2.555 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.9e-05/0.009224, allocations: 41.64 kB / 271.1 MB, free: 2.508 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.009345, allocations: 322.8 kB / 271.4 MB, free: 2.184 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.865e-05/0.009383, allocations: 15.98 kB / 271.4 MB, free: 2.168 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.48e-05/0.009448, allocations: 61.12 kB / 271.5 MB, free: 2.09 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001192/0.009567, allocations: 93.14 kB / 271.6 MB, free: 1.98 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.00957, allocations: 0 / 271.6 MB, free: 1.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001725/0.009743, allocations: 109.5 kB / 271.7 MB, free: 1.867 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.172e-05/0.009795, allocations: 4 kB / 271.7 MB, free: 1.863 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.009804, allocations: 4 kB / 271.7 MB, free: 1.859 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.009816, allocations: 4.156 kB / 271.7 MB, free: 1.855 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.009927, allocations: 31.92 kB / 271.7 MB, free: 1.824 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.92e-06/0.009932, allocations: 4 kB / 271.7 MB, free: 1.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.565e-05/0.009968, allocations: 19.88 kB / 271.7 MB, free: 1.801 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.009e-05/0.009978, allocations: 11.98 kB / 271.7 MB, free: 1.789 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,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) * 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 7.734e-05/0.01006, allocations: 127.7 kB / 271.9 MB, free: 1.652 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.691e-05/0.01007, allocations: 12 kB / 271.9 MB, free: 1.641 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.362e-05/0.01011, allocations: 16.42 kB / 271.9 MB, free: 1.629 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-06/0.01011, allocations: 0 / 271.9 MB, free: 1.629 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.01011, allocations: 0 / 271.9 MB, free: 1.629 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.01011, allocations: 4 kB / 271.9 MB, free: 1.625 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002495/0.01036, allocations: 254.5 kB / 272.1 MB, free: 1.352 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.01037, allocations: 0 / 272.1 MB, free: 1.352 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.786e-05/0.0104, allocations: 11.98 kB / 272.2 MB, free: 1.34 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.032e-05/0.01041, allocations: 11.89 kB / 272.2 MB, free: 1.328 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.01042, allocations: 3.938 kB / 272.2 MB, free: 1.324 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.01042, allocations: 0 / 272.2 MB, free: 1.324 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.01042, allocations: 0 / 272.2 MB, free: 1.324 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.01043, allocations: 0 / 272.2 MB, free: 1.324 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001059/0.01053, allocations: 191.4 kB / 272.4 MB, free: 1.121 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.565e-05/0.01056, allocations: 4 kB / 272.4 MB, free: 1.117 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.79e-05/0.01062, allocations: 8 kB / 272.4 MB, free: 1.109 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.502e-05/0.01066, allocations: 15.97 kB / 272.4 MB, free: 1.094 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.01067, allocations: 0 / 272.4 MB, free: 1.094 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.869e-05/0.01069, allocations: 17.22 kB / 272.4 MB, free: 1.074 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01069, allocations: 0 / 272.4 MB, free: 1.074 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001266/0.01082, allocations: 24 kB / 272.4 MB, free: 1.051 MB / 266.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 8.984e-05/0.01091, allocations: 80.64 kB / 272.5 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001045/0.01101, allocations: 78 kB / 272.6 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.613e-06/0.01102, allocations: 4.062 kB / 272.6 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.186e-05/0.01106, allocations: 40.84 kB / 272.6 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001607/0.01122, allocations: 23.92 kB / 272.6 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007132/0.01194, allocations: 204 kB / 272.8 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.893e-05/0.01197, allocations: 63.34 kB / 272.9 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.346e-05/0.01202, allocations: 16.95 kB / 272.9 MB, free: 500 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.324e-05/0.01209, allocations: 59.38 kB / 273 MB, free: 440 kB / 266.7 MB Notification: Performance of SimCode: time 1.062e-06/0.01209, allocations: 4 kB / 273 MB, free: 436 kB / 266.7 MB Notification: Performance of Templates: time 0.002817/0.01491, allocations: 1.124 MB / 274.1 MB, free: 15.3 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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: 2.9138988461345434]