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.001361/0.001361, allocations: 77.62 kB / 19.93 MB, free: 1.77 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.001425/0.001425, allocations: 169.8 kB / 23.22 MB, free: 4.887 MB / 14.72 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.35/1.35, allocations: 158.6 MB / 185 MB, free: 6.406 MB / 174.1 MB " [Timeout remaining time 178] 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.2044/0.2044, allocations: 32.38 MB / 269.6 MB, free: 4.656 MB / 254.1 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.582e-06/1.582e-06, allocations: 0 / 407.3 MB, free: 3.027 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.294e-05/2.453e-05, allocations: 2.281 kB / 407.3 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002652/0.002677, allocations: 1.506 MB / 408.9 MB, free: 1.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009821/0.003659, allocations: 0.5071 MB / 409.4 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.776e-05/0.003707, allocations: 0 / 409.4 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.041e-05/0.003737, allocations: 7.875 kB / 409.4 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.044e-05/0.003827, allocations: 19.78 kB / 409.4 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001953/0.004023, allocations: 35.95 kB / 409.4 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001324/0.004155, allocations: 95.62 kB / 409.5 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.68e-05/0.004252, allocations: 11.94 kB / 409.5 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001408/0.004393, allocations: 55.88 kB / 409.6 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.854e-05/0.004471, allocations: 27.89 kB / 409.6 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.571e-05/0.004497, allocations: 8 kB / 409.6 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.85e-05/0.004515, allocations: 8 kB / 409.6 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.11e-05/0.004547, allocations: 19.97 kB / 409.6 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.501e-05/0.004602, allocations: 27.91 kB / 409.7 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001393/0.004741, allocations: 79.7 kB / 409.7 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.004744, allocations: 0 / 409.7 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.21e-07/0.004744, allocations: 4 kB / 409.8 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.004749, allocations: 4 kB / 409.8 MB, free: 0.5977 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006405/0.005389, allocations: 322 kB / 410.1 MB, free: 260 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.005423, allocations: 12.03 kB / 410.1 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.635e-05/0.005469, allocations: 12.83 kB / 410.1 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001197/0.005589, allocations: 113.7 kB / 410.2 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.106e-05/0.00561, allocations: 8.375 kB / 410.2 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.792e-05/0.005628, allocations: 12.36 kB / 410.2 MB, free: 76 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002133/0.005841, allocations: 86.22 kB / 410.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.00585, allocations: 192 / 410.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/0.005865, allocations: 4.359 kB / 410.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.601e-05/0.005881, allocations: 11.92 kB / 410.3 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001346/0.006016, allocations: 47.86 kB / 410.4 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005021/0.006518, allocations: 252.5 kB / 410.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000192/0.00671, allocations: 74.55 kB / 410.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001106/0.00682, allocations: 48.78 kB / 410.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.246e-05/0.006843, allocations: 0 / 410.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002192/0.007062, allocations: 107.4 kB / 410.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.492e-06/0.007063, allocations: 0 / 410.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004527/0.007516, allocations: 185.6 kB / 411 MB, free: 15.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.772e-05/0.007574, allocations: 59.39 kB / 411.1 MB, free: 15.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/0.007679, allocations: 113.8 kB / 411.2 MB, free: 15.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.8e-05/0.007707, allocations: 33.7 kB / 411.2 MB, free: 14.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.189e-05/0.007759, allocations: 88.42 kB / 411.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.983e-05/0.007809, allocations: 47.67 kB / 411.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.49e-05/0.007874, allocations: 37.7 kB / 411.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.008019, allocations: 327.1 kB / 411.7 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.868e-05/0.008107, allocations: 31.98 kB / 411.7 MB, free: 14.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/0.008232, allocations: 85 kB / 411.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002148/0.008447, allocations: 121.1 kB / 412 MB, free: 14.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.008449, allocations: 8.156 kB / 412 MB, free: 14.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002907/0.00874, allocations: 161.4 kB / 412.1 MB, free: 14.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.008754, allocations: 4 kB / 412.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.008761, allocations: 4 kB / 412.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.008775, allocations: 0 / 412.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/0.008891, allocations: 24.08 kB / 412.1 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.184e-06/0.008899, allocations: 8 kB / 412.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.75e-05/0.008966, allocations: 15.89 kB / 412.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.21e-05/0.008978, allocations: 4 kB / 412.2 MB, free: 13.97 MB / 350.1 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 0.0001189/0.009097, allocations: 131.7 kB / 412.3 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.216e-05/0.009119, allocations: 11.94 kB / 412.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.327e-05/0.009152, allocations: 12.44 kB / 412.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.009154, allocations: 0 / 412.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.009159, allocations: 0 / 412.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.009162, allocations: 0 / 412.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005476/0.00971, allocations: 389.8 kB / 412.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.009711, allocations: 0 / 412.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.745e-05/0.009769, allocations: 11.98 kB / 412.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.009771, allocations: 3.938 kB / 412.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/0.009784, allocations: 4 kB / 412.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.009788, allocations: 4 kB / 412.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.00979, allocations: 3.938 kB / 412.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003428/0.01013, allocations: 247.5 kB / 413 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.915e-05/0.01015, allocations: 19.81 kB / 413 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.424e-05/0.01018, allocations: 3.984 kB / 413 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001151/0.01029, allocations: 16 kB / 413 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.85e-05/0.01033, allocations: 11.91 kB / 413 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.639e-05/0.01035, allocations: 4 kB / 413 MB, free: 13.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.633e-05/0.0104, allocations: 95.27 kB / 413.1 MB, free: 12.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.0104, allocations: 0 / 413.1 MB, free: 12.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002773/0.01068, allocations: 23.95 kB / 413.1 MB, free: 12.93 MB / 350.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.0001107/0.01079, allocations: 99.53 kB / 413.2 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002663/0.01106, allocations: 104 kB / 413.3 MB, free: 12.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.01106, allocations: 4 kB / 413.3 MB, free: 12.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001141/0.01117, allocations: 47.91 kB / 413.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002712/0.01144, allocations: 12 kB / 413.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004348/0.01188, allocations: 205.7 kB / 413.6 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.682e-05/0.01196, allocations: 75.33 kB / 413.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.117e-05/0.012, allocations: 13.17 kB / 413.7 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.17e-05/0.01204, allocations: 16.48 kB / 413.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.01204, allocations: 0 / 413.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of Templates: time 0.003801/0.01584, allocations: 1.034 MB / 414.7 MB, free: 11.29 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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.479849960654974]