Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001539/0.001539, allocations: 96.25 kB / 20.96 MB, free: 3.465 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001723/0.001723, allocations: 156.9 kB / 24.27 MB, free: 168 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.55/1.55, allocations: 177 MB / 204.4 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3462/0.3462, allocations: 34.25 MB / 295.2 MB, free: 0.6719 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.475e-06/2.475e-06, allocations: 0 / 377.2 MB, free: 2.926 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.885e-05/4.133e-05, allocations: 7.859 kB / 377.2 MB, free: 2.918 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.004784/0.004825, allocations: 1.541 MB / 378.7 MB, free: 1.363 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001842/0.006667, allocations: 0.5259 MB / 379.3 MB, free: 0.832 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.761e-05/0.006744, allocations: 3.938 kB / 379.3 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 4.587e-05/0.00679, allocations: 3.938 kB / 379.3 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001401/0.00693, allocations: 11.88 kB / 379.3 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003725/0.007303, allocations: 55.75 kB / 379.3 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000241/0.007544, allocations: 95.69 kB / 379.4 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001247/0.007669, allocations: 7.984 kB / 379.4 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003083/0.007977, allocations: 67.81 kB / 379.5 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001434/0.00812, allocations: 31.89 kB / 379.5 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.033e-05/0.008161, allocations: 8 kB / 379.5 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.726e-05/0.008238, allocations: 8 kB / 379.5 MB, free: 0.543 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.259e-05/0.0083, allocations: 27.89 kB / 379.6 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 8.377e-05/0.008384, allocations: 23.92 kB / 379.6 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002668/0.008651, allocations: 91.69 kB / 379.7 MB, free: 412 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.057e-06/0.00866, allocations: 3.984 kB / 379.7 MB, free: 408 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.008662, allocations: 0 / 379.7 MB, free: 408 kB / 346.7 MB Notification: Performance of Transformations before backend: time 5.972e-06/0.008668, allocations: 0 / 379.7 MB, free: 408 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.00107/0.009737, allocations: 338 kB / 380 MB, free: 40 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.206e-05/0.009799, allocations: 8.031 kB / 380 MB, free: 32 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002813/0.01008, allocations: 28.88 kB / 380.1 MB, free: 4 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003957/0.01048, allocations: 125.7 kB / 380.2 MB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.108e-05/0.01051, allocations: 8.375 kB / 380.2 MB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.994e-05/0.01054, allocations: 8.359 kB / 380.2 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003687/0.01091, allocations: 86.2 kB / 380.3 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.01092, allocations: 192 / 380.3 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.438e-05/0.01094, allocations: 4.375 kB / 380.3 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.01095, allocations: 3.938 kB / 380.3 MB, free: 15.74 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002483/0.0112, allocations: 43.97 kB / 380.3 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008554/0.01206, allocations: 276.3 kB / 380.6 MB, free: 15.4 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004248/0.01248, allocations: 86.53 kB / 380.7 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000187/0.01267, allocations: 40.83 kB / 380.7 MB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.634e-05/0.0127, allocations: 4.219 kB / 380.7 MB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003677/0.01307, allocations: 103.2 kB / 380.8 MB, free: 15.14 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 2.154e-06/0.01307, allocations: 0 / 380.8 MB, free: 15.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0009525/0.01403, allocations: 212.9 kB / 381 MB, free: 14.93 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.454e-05/0.01411, allocations: 55.41 kB / 381.1 MB, free: 14.87 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001849/0.0143, allocations: 114.3 kB / 381.2 MB, free: 14.75 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.899e-05/0.01435, allocations: 37.69 kB / 381.2 MB, free: 14.7 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001239/0.01448, allocations: 88.42 kB / 381.3 MB, free: 14.61 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.647e-05/0.01456, allocations: 39.69 kB / 381.4 MB, free: 14.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/0.01468, allocations: 37.7 kB / 381.4 MB, free: 14.53 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002824/0.01496, allocations: 322.8 kB / 381.7 MB, free: 14.2 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001831/0.01515, allocations: 35.98 kB / 381.8 MB, free: 14.17 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002612/0.01541, allocations: 88.14 kB / 381.8 MB, free: 14.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004291/0.01584, allocations: 120.2 kB / 382 MB, free: 13.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.01584, allocations: 0 / 382 MB, free: 13.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006012/0.01644, allocations: 157.7 kB / 382.1 MB, free: 13.77 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.584e-05/0.01647, allocations: 12 kB / 382.1 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.01647, allocations: 0 / 382.1 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.921e-05/0.0165, allocations: 7.922 kB / 382.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002072/0.01671, allocations: 20 kB / 382.1 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.805e-05/0.01673, allocations: 7.984 kB / 382.2 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001217/0.01685, allocations: 7.953 kB / 382.2 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.533e-05/0.01688, allocations: 8 kB / 382.2 MB, free: 13.71 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.0002155/0.01709, allocations: 131.7 kB / 382.3 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.846e-05/0.01714, allocations: 15.94 kB / 382.3 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.593e-05/0.01721, allocations: 16.44 kB / 382.3 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.01721, allocations: 0 / 382.3 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.01721, allocations: 0 / 382.3 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.01722, allocations: 4 kB / 382.3 MB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00117/0.01839, allocations: 393.9 kB / 382.7 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.0184, allocations: 3.938 kB / 382.7 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.701e-05/0.01848, allocations: 11.98 kB / 382.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.898e-06/0.01849, allocations: 0 / 382.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.604e-05/0.01851, allocations: 4 kB / 382.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.01852, allocations: 0 / 382.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.01852, allocations: 4 kB / 382.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007567/0.01928, allocations: 274.6 kB / 383 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.647e-05/0.0193, allocations: 7.953 kB / 383 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.153e-05/0.01934, allocations: 4 kB / 383 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002093/0.01955, allocations: 11.98 kB / 383 MB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.607e-05/0.01963, allocations: 11.92 kB / 383 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.598e-05/0.01966, allocations: 12 kB / 383.1 MB, free: 12.76 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001209/0.01979, allocations: 99.31 kB / 383.2 MB, free: 12.66 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01979, allocations: 0 / 383.2 MB, free: 12.66 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004835/0.02027, allocations: 24 kB / 383.2 MB, free: 12.64 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.0002009/0.02047, allocations: 107.2 kB / 383.3 MB, free: 12.52 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004572/0.02093, allocations: 103.8 kB / 383.4 MB, free: 12.42 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.02093, allocations: 0 / 383.4 MB, free: 12.42 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002103/0.02114, allocations: 47.97 kB / 383.4 MB, free: 12.38 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004883/0.02163, allocations: 14.47 kB / 383.4 MB, free: 12.36 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007667/0.0224, allocations: 224.9 kB / 383.7 MB, free: 12.12 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001244/0.02252, allocations: 79.33 kB / 383.7 MB, free: 12.02 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.59e-05/0.02259, allocations: 12.97 kB / 383.8 MB, free: 12.01 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.464e-05/0.02265, allocations: 12.5 kB / 383.8 MB, free: 12 MB / 362.7 MB Notification: Performance of SimCode: time 4.6e-07/0.02265, allocations: 0 / 383.8 MB, free: 12 MB / 362.7 MB Notification: Performance of Templates: time 0.006912/0.02956, allocations: 1.073 MB / 384.8 MB, free: 10.94 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.921882604015991]