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.001361/0.001361, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001048/0.001048, allocations: 161.5 kB / 25.61 MB, free: 8.582 MB / 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 0.9942/0.9942, allocations: 177.2 MB / 206.1 MB, free: 4.469 MB / 186.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.1515/0.1515, allocations: 32.81 MB / 295.4 MB, free: 15.39 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 1.613e-06/1.613e-06, allocations: 0 / 377.3 MB, free: 25.62 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.271e-05/2.433e-05, allocations: 6.312 kB / 377.3 MB, free: 25.61 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.00207/0.002094, allocations: 1.553 MB / 378.8 MB, free: 24.05 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009193/0.003014, allocations: 0.5413 MB / 379.4 MB, free: 23.5 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.043e-05/0.003084, allocations: 7.938 kB / 379.4 MB, free: 23.49 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 2.894e-05/0.003113, allocations: 3.938 kB / 379.4 MB, free: 23.49 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 8.931e-05/0.003202, allocations: 19.84 kB / 379.4 MB, free: 23.47 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002367/0.003439, allocations: 51.81 kB / 379.4 MB, free: 23.42 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001262/0.003565, allocations: 87.7 kB / 379.5 MB, free: 23.33 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.422e-05/0.00366, allocations: 11.98 kB / 379.5 MB, free: 23.32 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001505/0.00381, allocations: 67.75 kB / 379.6 MB, free: 23.25 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.087e-05/0.003881, allocations: 35.89 kB / 379.6 MB, free: 23.22 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.811e-05/0.003899, allocations: 4 kB / 379.6 MB, free: 23.21 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.521e-05/0.003944, allocations: 12 kB / 379.6 MB, free: 23.2 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 2.331e-05/0.003968, allocations: 27.91 kB / 379.7 MB, free: 23.18 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 3.303e-05/0.004001, allocations: 27.91 kB / 379.7 MB, free: 23.15 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001243/0.004125, allocations: 67.73 kB / 379.8 MB, free: 23.08 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.004128, allocations: 0 / 379.8 MB, free: 23.08 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.004129, allocations: 0 / 379.8 MB, free: 23.08 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.089e-06/0.004134, allocations: 0 / 379.8 MB, free: 23.08 MB / 314.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.000442/0.004576, allocations: 436.3 kB / 380.2 MB, free: 22.62 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.004617, allocations: 11.98 kB / 380.2 MB, free: 22.61 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001278/0.004745, allocations: 28.88 kB / 380.2 MB, free: 22.58 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001648/0.004909, allocations: 132.5 kB / 380.4 MB, free: 22.43 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.432e-05/0.004934, allocations: 8.375 kB / 380.4 MB, free: 22.42 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.163e-05/0.004945, allocations: 4.375 kB / 380.4 MB, free: 22.41 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001324/0.005078, allocations: 86.84 kB / 380.5 MB, free: 22.32 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.00509, allocations: 192 / 380.5 MB, free: 22.32 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.005101, allocations: 8.375 kB / 380.5 MB, free: 22.31 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.00511, allocations: 3.938 kB / 380.5 MB, free: 22.31 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.316e-05/0.005143, allocations: 19.97 kB / 380.5 MB, free: 22.29 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003494/0.005492, allocations: 288.3 kB / 380.8 MB, free: 21.98 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001082/0.005601, allocations: 70.91 kB / 380.8 MB, free: 21.9 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.356e-05/0.005624, allocations: 23.67 kB / 380.9 MB, free: 21.87 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.757e-05/0.005642, allocations: 4 kB / 380.9 MB, free: 21.87 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.472e-05/0.005726, allocations: 92.91 kB / 381 MB, free: 21.76 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 1.142e-06/0.005728, allocations: 0 / 381 MB, free: 21.76 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002224/0.00595, allocations: 148 kB / 381.1 MB, free: 21.61 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.08e-05/0.005981, allocations: 55.39 kB / 381.2 MB, free: 21.55 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.066e-05/0.006041, allocations: 184 kB / 381.3 MB, free: 21.35 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.049e-05/0.006052, allocations: 33.7 kB / 381.4 MB, free: 21.31 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.232e-05/0.006084, allocations: 139.1 kB / 381.5 MB, free: 21.17 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.809e-05/0.006112, allocations: 35.69 kB / 381.5 MB, free: 21.13 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.961e-05/0.006152, allocations: 51.33 kB / 381.6 MB, free: 21.07 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.154e-05/0.006203, allocations: 0.4884 MB / 382.1 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.008e-05/0.006223, allocations: 15.98 kB / 382.1 MB, free: 20.56 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.668e-05/0.00626, allocations: 77.33 kB / 382.2 MB, free: 20.46 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.757e-05/0.006328, allocations: 90.34 kB / 382.3 MB, free: 20.36 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.006331, allocations: 4 kB / 382.3 MB, free: 20.35 MB / 314.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001143/0.006445, allocations: 125.1 kB / 382.4 MB, free: 20.23 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/0.006457, allocations: 8 kB / 382.4 MB, free: 20.22 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.006462, allocations: 0 / 382.4 MB, free: 20.22 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.053e-05/0.006473, allocations: 4 kB / 382.4 MB, free: 20.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.402e-05/0.006557, allocations: 27.92 kB / 382.4 MB, free: 20.19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.486e-06/0.006561, allocations: 0 / 382.4 MB, free: 20.19 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.961e-05/0.00659, allocations: 12.08 kB / 382.4 MB, free: 20.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-06/0.006598, allocations: 8 kB / 382.4 MB, free: 20.17 MB / 314.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 6.257e-05/0.006661, allocations: 182.4 kB / 382.6 MB, free: 19.98 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.494e-05/0.006676, allocations: 11.95 kB / 382.6 MB, free: 19.96 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.191e-05/0.006697, allocations: 8.438 kB / 382.6 MB, free: 19.96 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-06/0.006701, allocations: 4.219 kB / 382.6 MB, free: 19.95 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-06/0.006704, allocations: 0 / 382.6 MB, free: 19.95 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.006707, allocations: 3.938 kB / 382.7 MB, free: 19.95 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002446/0.006951, allocations: 385.8 kB / 383 MB, free: 19.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.006953, allocations: 0 / 383 MB, free: 19.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.683e-05/0.00698, allocations: 8 kB / 383 MB, free: 19.53 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.006982, allocations: 4 kB / 383 MB, free: 19.53 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.151e-06/0.006988, allocations: 0 / 383 MB, free: 19.53 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.006989, allocations: 3.984 kB / 383 MB, free: 19.52 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.006991, allocations: 0 / 383 MB, free: 19.52 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001224/0.007113, allocations: 287.7 kB / 383.3 MB, free: 19.22 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.496e-06/0.007121, allocations: 11.95 kB / 383.3 MB, free: 19.21 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.481e-05/0.007136, allocations: 0 / 383.3 MB, free: 19.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.371e-05/0.00719, allocations: 19.92 kB / 383.4 MB, free: 19.19 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.735e-05/0.007217, allocations: 7.984 kB / 383.4 MB, free: 19.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.00723, allocations: 3.984 kB / 383.4 MB, free: 19.18 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.378e-05/0.007254, allocations: 135.2 kB / 383.5 MB, free: 19.05 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.007254, allocations: 0 / 383.5 MB, free: 19.05 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000157/0.007411, allocations: 27.98 kB / 383.5 MB, free: 19.02 MB / 314.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.152e-05/0.007492, allocations: 95.19 kB / 383.6 MB, free: 18.92 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000106/0.007598, allocations: 79.56 kB / 383.7 MB, free: 18.84 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.173e-06/0.007599, allocations: 0 / 383.7 MB, free: 18.84 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 3.615e-05/0.007635, allocations: 35.61 kB / 383.7 MB, free: 18.8 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002042/0.00784, allocations: 18.42 kB / 383.8 MB, free: 18.78 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003935/0.008233, allocations: 211.7 kB / 384 MB, free: 18.55 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.476e-05/0.008258, allocations: 67.2 kB / 384 MB, free: 18.46 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.892e-05/0.008287, allocations: 8.969 kB / 384 MB, free: 18.46 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.82e-05/0.008335, allocations: 90.12 kB / 384.1 MB, free: 18.37 MB / 314.7 MB Notification: Performance of SimCode: time 1.042e-06/0.008336, allocations: 0 / 384.1 MB, free: 18.37 MB / 314.7 MB Notification: Performance of Templates: time 0.002567/0.0109, allocations: 1.185 MB / 385.3 MB, free: 17.21 MB / 314.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 -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.0996538810431957]