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.001724/0.001724, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 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.002099/0.002099, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 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.53/1.53, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 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.3395/0.3395, allocations: 34.27 MB / 295.3 MB, free: 0.6758 MB / 266.7 MB " [Timeout remaining time 179] 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.783e-06/1.783e-06, allocations: 0 / 377.3 MB, free: 2.965 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.194e-05/3.372e-05, allocations: 2.312 kB / 377.3 MB, free: 2.961 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.0031/0.003133, allocations: 1.537 MB / 378.8 MB, free: 1.41 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001105/0.004238, allocations: 0.5258 MB / 379.3 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.937e-05/0.004307, allocations: 3.938 kB / 379.3 MB, free: 0.875 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.065e-05/0.004338, allocations: 3.938 kB / 379.3 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 9.145e-05/0.00443, allocations: 19.84 kB / 379.4 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002483/0.004678, allocations: 47.81 kB / 379.4 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001789/0.004857, allocations: 95.69 kB / 379.5 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.538e-05/0.004942, allocations: 4 kB / 379.5 MB, free: 0.707 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001892/0.005131, allocations: 75.75 kB / 379.6 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.178e-05/0.005223, allocations: 35.88 kB / 379.6 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.468e-05/0.005248, allocations: 8 kB / 379.6 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.37e-05/0.005292, allocations: 8 kB / 379.6 MB, free: 0.582 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.623e-05/0.005318, allocations: 19.92 kB / 379.7 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.587e-05/0.005374, allocations: 31.91 kB / 379.7 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001725/0.005546, allocations: 91.69 kB / 379.8 MB, free: 452 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.005548, allocations: 0 / 379.8 MB, free: 452 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.005549, allocations: 0 / 379.8 MB, free: 452 kB / 346.7 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.005553, allocations: 0 / 379.8 MB, free: 452 kB / 346.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.0007028/0.006256, allocations: 337.9 kB / 380.1 MB, free: 84 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.006292, allocations: 12.03 kB / 380.1 MB, free: 72 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001614/0.006453, allocations: 20.88 kB / 380.1 MB, free: 52 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002509/0.006704, allocations: 125.7 kB / 380.3 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.06e-05/0.006725, allocations: 8.375 kB / 380.3 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.941e-05/0.006744, allocations: 8.375 kB / 380.3 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002287/0.006973, allocations: 94.14 kB / 380.4 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.874e-06/0.006981, allocations: 192 / 380.4 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.006994, allocations: 384 / 380.4 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.007004, allocations: 7.922 kB / 380.4 MB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001688/0.007173, allocations: 47.97 kB / 380.4 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005448/0.007718, allocations: 256.4 kB / 380.7 MB, free: 15.45 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002404/0.007958, allocations: 82.53 kB / 380.8 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001194/0.008078, allocations: 45 kB / 380.8 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.919e-05/0.008107, allocations: 3.938 kB / 380.8 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002256/0.008332, allocations: 115.4 kB / 380.9 MB, free: 15.19 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.302e-06/0.008334, allocations: 0 / 380.9 MB, free: 15.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.000537/0.008871, allocations: 197 kB / 381.1 MB, free: 14.99 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.272e-05/0.008933, allocations: 63.33 kB / 381.2 MB, free: 14.92 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001414/0.009075, allocations: 117.8 kB / 381.3 MB, free: 14.79 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.666e-05/0.009111, allocations: 33.7 kB / 381.3 MB, free: 14.75 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.439e-05/0.009186, allocations: 96.41 kB / 381.4 MB, free: 14.65 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.905e-05/0.009245, allocations: 35.7 kB / 381.4 MB, free: 14.62 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.234e-05/0.009317, allocations: 37.7 kB / 381.5 MB, free: 14.57 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001852/0.009502, allocations: 322.8 kB / 381.8 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.009615, allocations: 39.97 kB / 381.8 MB, free: 14.21 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001417/0.009757, allocations: 79.2 kB / 381.9 MB, free: 14.12 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002623/0.01002, allocations: 128.2 kB / 382 MB, free: 13.98 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.01002, allocations: 0 / 382 MB, free: 13.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003439/0.01037, allocations: 161.5 kB / 382.2 MB, free: 13.82 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.01038, allocations: 4 kB / 382.2 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.01039, allocations: 0 / 382.2 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.0104, allocations: 4 kB / 382.2 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.01053, allocations: 28.05 kB / 382.2 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.01054, allocations: 4 kB / 382.2 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.019e-05/0.01061, allocations: 11.95 kB / 382.2 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.733e-05/0.01062, allocations: 8 kB / 382.3 MB, free: 13.76 MB / 362.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 0.0001323/0.01076, allocations: 139.7 kB / 382.4 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.908e-05/0.01078, allocations: 11.95 kB / 382.4 MB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.567e-05/0.01082, allocations: 8.438 kB / 382.4 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.01083, allocations: 4 kB / 382.4 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.01084, allocations: 7.984 kB / 382.4 MB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.01084, allocations: 0 / 382.4 MB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006687/0.01151, allocations: 398 kB / 382.8 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.678e-06/0.01151, allocations: 3.984 kB / 382.8 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.124e-05/0.01156, allocations: 7.938 kB / 382.8 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.01156, allocations: 4 kB / 382.8 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/0.01158, allocations: 0 / 382.8 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.449e-06/0.01158, allocations: 3.984 kB / 382.8 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.01158, allocations: 0 / 382.8 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004579/0.01204, allocations: 266.9 kB / 383.1 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.927e-05/0.01206, allocations: 7.953 kB / 383.1 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.013e-05/0.01209, allocations: 12 kB / 383.1 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001185/0.01221, allocations: 7.984 kB / 383.1 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.332e-05/0.01227, allocations: 15.92 kB / 383.1 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.6e-05/0.0123, allocations: 7.984 kB / 383.1 MB, free: 12.81 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.23e-05/0.01239, allocations: 99.58 kB / 383.2 MB, free: 12.71 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01239, allocations: 0 / 383.2 MB, free: 12.71 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002696/0.01266, allocations: 24 kB / 383.3 MB, free: 12.69 MB / 362.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.000136/0.0128, allocations: 95.25 kB / 383.4 MB, free: 12.59 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003136/0.01311, allocations: 111.9 kB / 383.5 MB, free: 12.48 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-06/0.01311, allocations: 0 / 383.5 MB, free: 12.48 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001267/0.01324, allocations: 43.92 kB / 383.5 MB, free: 12.43 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002947/0.01353, allocations: 15.98 kB / 383.5 MB, free: 12.42 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000521/0.01405, allocations: 208.8 kB / 383.7 MB, free: 12.19 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001019/0.01416, allocations: 83.56 kB / 383.8 MB, free: 12.09 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.981e-05/0.0142, allocations: 8.984 kB / 383.8 MB, free: 12.08 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.285e-05/0.01425, allocations: 20.48 kB / 383.8 MB, free: 12.06 MB / 362.7 MB Notification: Performance of SimCode: time 4.21e-07/0.01425, allocations: 0 / 383.8 MB, free: 12.06 MB / 362.7 MB Notification: Performance of Templates: time 0.004323/0.01857, allocations: 1.09 MB / 384.9 MB, free: 10.99 MB / 362.7 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.81205228692852]