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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001767/0.002895, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00113/0.002162, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9006/0.9006, allocations: 173.4 MB / 186 MB, free: 7.527 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1586/1.059, allocations: 52.48 MB / 238.5 MB, free: 7.629 MB / 234.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.1402/0.1402, allocations: 32.8 MB / 272 MB, free: 6.293 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0177/0.1579, allocations: 12.53 MB / 284.5 MB, free: 9.715 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.323e-06/1.323e-06, allocations: 0 / 285.8 MB, free: 8.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.943e-05/2.075e-05, allocations: 5.406 kB / 285.8 MB, free: 8.422 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002329/0.00235, allocations: 1.617 MB / 287.5 MB, free: 6.797 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003647/0.005996, allocations: 490.6 kB / 287.9 MB, free: 6.312 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.834e-05/0.006035, allocations: 4 kB / 287.9 MB, free: 6.309 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.841e-05/0.006063, allocations: 7.922 kB / 287.9 MB, free: 6.301 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.374e-05/0.006117, allocations: 7.875 kB / 288 MB, free: 6.293 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001254/0.006242, allocations: 47.81 kB / 288 MB, free: 6.246 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001044/0.006347, allocations: 87.7 kB / 288.1 MB, free: 6.16 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.447e-05/0.006431, allocations: 11.94 kB / 288.1 MB, free: 6.148 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001431/0.006574, allocations: 63.81 kB / 288.2 MB, free: 6.086 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.373e-05/0.006658, allocations: 35.89 kB / 288.2 MB, free: 6.051 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.515e-05/0.006683, allocations: 4 kB / 288.2 MB, free: 6.047 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.488e-05/0.006698, allocations: 8 kB / 288.2 MB, free: 6.039 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.008e-05/0.006728, allocations: 16 kB / 288.2 MB, free: 6.023 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.458e-05/0.006763, allocations: 19.94 kB / 288.2 MB, free: 6.004 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001107/0.006873, allocations: 55.75 kB / 288.3 MB, free: 5.949 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.139e-05/0.006885, allocations: 4 kB / 288.3 MB, free: 5.945 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.006886, allocations: 3.938 kB / 288.3 MB, free: 5.941 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.517e-06/0.006895, allocations: 0 / 288.3 MB, free: 5.941 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.0004985/0.007394, allocations: 308.4 kB / 288.6 MB, free: 5.617 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.215e-05/0.007426, allocations: 8.031 kB / 288.6 MB, free: 5.609 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.879e-05/0.007465, allocations: 12.92 kB / 288.6 MB, free: 5.598 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.637e-05/0.007551, allocations: 117.7 kB / 288.7 MB, free: 5.457 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.061e-05/0.007572, allocations: 16.31 kB / 288.8 MB, free: 5.441 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.77e-05/0.007589, allocations: 8.375 kB / 288.8 MB, free: 5.434 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001303/0.00772, allocations: 74.91 kB / 288.8 MB, free: 5.352 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.007726, allocations: 4.125 kB / 288.8 MB, free: 5.348 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.007738, allocations: 8.375 kB / 288.9 MB, free: 5.34 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.007745, allocations: 3.938 kB / 288.9 MB, free: 5.336 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.249e-05/0.007777, allocations: 15.98 kB / 288.9 MB, free: 5.32 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002952/0.008072, allocations: 188.2 kB / 289.1 MB, free: 5.121 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.427e-05/0.008166, allocations: 46.55 kB / 289.1 MB, free: 5.066 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.96e-05/0.008196, allocations: 28.8 kB / 289.1 MB, free: 5.035 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/0.008218, allocations: 11.97 kB / 289.1 MB, free: 5.023 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001012/0.008319, allocations: 75.34 kB / 289.2 MB, free: 4.938 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 1.122e-06/0.00832, allocations: 0 / 289.2 MB, free: 4.938 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.000165/0.008485, allocations: 97.72 kB / 289.3 MB, free: 4.836 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.618e-05/0.008521, allocations: 59.34 kB / 289.4 MB, free: 4.766 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.388e-05/0.008585, allocations: 114.7 kB / 289.5 MB, free: 4.641 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.008604, allocations: 37.69 kB / 289.5 MB, free: 4.598 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003042/0.01165, allocations: 96.36 kB / 289.6 MB, free: 4.496 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.844e-05/0.01168, allocations: 35.72 kB / 289.6 MB, free: 4.461 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.938e-05/0.01173, allocations: 41.69 kB / 289.7 MB, free: 4.414 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.68e-05/0.01182, allocations: 322.8 kB / 290 MB, free: 4.09 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.49e-05/0.01185, allocations: 12 kB / 290 MB, free: 4.078 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.164e-05/0.0119, allocations: 63.19 kB / 290.1 MB, free: 4 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.67e-05/0.01199, allocations: 97.06 kB / 290.2 MB, free: 3.887 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.012, allocations: 0 / 290.2 MB, free: 3.887 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001371/0.01213, allocations: 109.5 kB / 290.3 MB, free: 3.773 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.01215, allocations: 4 kB / 290.3 MB, free: 3.77 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.261e-06/0.01215, allocations: 4 kB / 290.3 MB, free: 3.766 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.01217, allocations: 0 / 290.3 MB, free: 3.766 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.01227, allocations: 27.98 kB / 290.3 MB, free: 3.738 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.044e-06/0.01228, allocations: 7.938 kB / 290.3 MB, free: 3.73 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.03e-05/0.01232, allocations: 7.953 kB / 290.3 MB, free: 3.723 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.678e-06/0.01233, allocations: 4 kB / 290.3 MB, free: 3.719 MB / 282.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 8.063e-05/0.01241, allocations: 135.9 kB / 290.5 MB, free: 3.574 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.107e-05/0.01243, allocations: 15.98 kB / 290.5 MB, free: 3.559 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.331e-05/0.01245, allocations: 8.438 kB / 290.5 MB, free: 3.555 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.01246, allocations: 4 kB / 290.5 MB, free: 3.551 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.824e-06/0.01246, allocations: 0 / 290.5 MB, free: 3.551 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.01246, allocations: 0 / 290.5 MB, free: 3.551 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000267/0.01273, allocations: 258.1 kB / 290.7 MB, free: 3.277 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.01273, allocations: 0 / 290.7 MB, free: 3.277 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.991e-05/0.01277, allocations: 11.98 kB / 290.8 MB, free: 3.266 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.586e-06/0.01278, allocations: 7.891 kB / 290.8 MB, free: 3.258 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.01278, allocations: 4 kB / 290.8 MB, free: 3.254 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.313e-06/0.01279, allocations: 4 kB / 290.8 MB, free: 3.25 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.01279, allocations: 3.938 kB / 290.8 MB, free: 3.246 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.01279, allocations: 3.984 kB / 290.8 MB, free: 3.242 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001246/0.01292, allocations: 179.5 kB / 291 MB, free: 3.051 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.78e-05/0.01294, allocations: 4 kB / 291 MB, free: 3.047 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.417e-05/0.01301, allocations: 11.98 kB / 291 MB, free: 3.035 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.089e-05/0.01304, allocations: 7.984 kB / 291 MB, free: 3.027 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.332e-05/0.01306, allocations: 0 / 291 MB, free: 3.027 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.259e-05/0.01308, allocations: 20.83 kB / 291 MB, free: 3.004 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01308, allocations: 0 / 291 MB, free: 3.004 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001999/0.01328, allocations: 31.95 kB / 291 MB, free: 2.973 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 9.334e-05/0.01337, allocations: 80.36 kB / 291.1 MB, free: 2.883 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001228/0.01349, allocations: 72.7 kB / 291.2 MB, free: 2.809 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.0135, allocations: 4 kB / 291.2 MB, free: 2.805 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 5.559e-05/0.01356, allocations: 40.77 kB / 291.2 MB, free: 2.762 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002215/0.01378, allocations: 79.31 kB / 291.3 MB, free: 2.672 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003831/0.01761, allocations: 213.3 kB / 291.5 MB, free: 2.438 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.251e-05/0.01765, allocations: 63.34 kB / 291.6 MB, free: 2.355 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.869e-05/0.01769, allocations: 12.97 kB / 291.6 MB, free: 2.344 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.569e-05/0.01776, allocations: 59.38 kB / 291.6 MB, free: 2.285 MB / 282.7 MB Notification: Performance of SimCode: time 6.61e-07/0.01776, allocations: 0 / 291.6 MB, free: 2.285 MB / 282.7 MB Notification: Performance of Templates: time 0.006101/0.02386, allocations: 1.115 MB / 292.8 MB, free: 1.199 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5308795729652047]