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.001192/0.001192, allocations: 91.5 kB / 21.19 MB, free: 3.371 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.001404/0.001404, allocations: 156.5 kB / 24.55 MB, free: 16 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 0.9366/0.9366, allocations: 177 MB / 204.8 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] 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.2493/0.2493, allocations: 34.87 MB / 296.3 MB, free: 500 kB / 266.7 MB " [Timeout remaining time 180] 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.165e-06/2.165e-06, allocations: 0 / 378.7 MB, free: 2.094 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.317e-05/2.534e-05, allocations: 3.016 kB / 378.8 MB, free: 2.09 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002712/0.002737, allocations: 1.576 MB / 380.3 MB, free: 0.5 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009945/0.003732, allocations: 0.5452 MB / 380.9 MB, free: 15.95 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.669e-05/0.003798, allocations: 3.938 kB / 380.9 MB, free: 15.95 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 3.78e-05/0.003836, allocations: 3.938 kB / 380.9 MB, free: 15.94 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001025/0.003939, allocations: 19.86 kB / 380.9 MB, free: 15.92 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002951/0.004234, allocations: 47.81 kB / 380.9 MB, free: 15.88 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001676/0.004401, allocations: 91.7 kB / 381 MB, free: 15.79 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.004507, allocations: 15.97 kB / 381.1 MB, free: 15.77 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002005/0.004708, allocations: 63.81 kB / 381.1 MB, free: 15.71 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.118e-05/0.004789, allocations: 31.89 kB / 381.1 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.472e-05/0.004814, allocations: 8 kB / 381.2 MB, free: 15.67 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.216e-05/0.004866, allocations: 12 kB / 381.2 MB, free: 15.66 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 3.214e-05/0.004898, allocations: 23.91 kB / 381.2 MB, free: 15.63 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 5.007e-05/0.004948, allocations: 31.91 kB / 381.2 MB, free: 15.6 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000166/0.005114, allocations: 71.73 kB / 381.3 MB, free: 15.53 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.005117, allocations: 0 / 381.3 MB, free: 15.53 MB / 362.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.005118, allocations: 0 / 381.3 MB, free: 15.53 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.005122, allocations: 0 / 381.3 MB, free: 15.53 MB / 362.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.0006516/0.005773, allocations: 436.2 kB / 381.7 MB, free: 15.07 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.005818, allocations: 8.031 kB / 381.7 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001701/0.005988, allocations: 24.88 kB / 381.7 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002019/0.00619, allocations: 132.5 kB / 381.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.937e-05/0.006219, allocations: 12.36 kB / 381.9 MB, free: 14.87 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.123e-05/0.00624, allocations: 8.375 kB / 381.9 MB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002046/0.006445, allocations: 90.84 kB / 382 MB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.006456, allocations: 192 / 382 MB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.634e-05/0.006472, allocations: 384 / 382 MB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.006483, allocations: 3.938 kB / 382 MB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.352e-05/0.006557, allocations: 27.97 kB / 382 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004664/0.007023, allocations: 311.7 kB / 382.3 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001331/0.007156, allocations: 74.91 kB / 382.4 MB, free: 14.31 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.807e-05/0.007194, allocations: 23.67 kB / 382.4 MB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.152e-05/0.007216, allocations: 8 kB / 382.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000102/0.007318, allocations: 83.97 kB / 382.5 MB, free: 14.18 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.523e-06/0.007319, allocations: 0 / 382.5 MB, free: 14.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002551/0.007574, allocations: 153.5 kB / 382.7 MB, free: 14.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.009e-05/0.007614, allocations: 63.39 kB / 382.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.483e-05/0.007699, allocations: 174.2 kB / 382.9 MB, free: 13.76 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.566e-05/0.007715, allocations: 33.7 kB / 382.9 MB, free: 13.72 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.204e-05/0.007767, allocations: 139.1 kB / 383.1 MB, free: 13.58 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.559e-05/0.007803, allocations: 47.67 kB / 383.1 MB, free: 13.53 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.319e-05/0.007846, allocations: 35.38 kB / 383.1 MB, free: 13.49 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.007972, allocations: 0.4962 MB / 383.6 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.612e-05/0.008008, allocations: 19.98 kB / 383.7 MB, free: 12.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.243e-05/0.008071, allocations: 78.47 kB / 383.7 MB, free: 12.86 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.598e-05/0.008167, allocations: 106.4 kB / 383.8 MB, free: 12.74 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.008169, allocations: 0 / 383.8 MB, free: 12.74 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001503/0.008319, allocations: 133 kB / 384 MB, free: 12.61 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.008336, allocations: 8 kB / 384 MB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.008341, allocations: 0 / 384 MB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.008354, allocations: 0 / 384 MB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.742e-05/0.008442, allocations: 27.92 kB / 384 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.008449, allocations: 4 kB / 384 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.589e-05/0.008485, allocations: 16.02 kB / 384 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.173e-05/0.008496, allocations: 8 kB / 384 MB, free: 12.54 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 8.619e-05/0.008583, allocations: 182.4 kB / 384.2 MB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.469e-05/0.008597, allocations: 11.95 kB / 384.2 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.58e-05/0.008623, allocations: 8.656 kB / 384.2 MB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.008626, allocations: 4 kB / 384.2 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.00863, allocations: 3.938 kB / 384.2 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.008634, allocations: 3.984 kB / 384.2 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000311/0.008945, allocations: 409.2 kB / 384.6 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.008947, allocations: 0 / 384.6 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.666e-05/0.008974, allocations: 11.98 kB / 384.7 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.008975, allocations: 4 kB / 384.7 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/0.008985, allocations: 8 kB / 384.7 MB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.008987, allocations: 0 / 384.7 MB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.008988, allocations: 0 / 384.7 MB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001806/0.009168, allocations: 291.6 kB / 384.9 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.496e-06/0.009177, allocations: 7.953 kB / 385 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.974e-05/0.009197, allocations: 8 kB / 385 MB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.192e-05/0.009249, allocations: 11.97 kB / 385 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.624e-05/0.009285, allocations: 15.86 kB / 385 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.395e-05/0.009299, allocations: 4 kB / 385 MB, free: 11.5 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.183e-05/0.009341, allocations: 143.2 kB / 385.1 MB, free: 11.36 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009341, allocations: 0 / 385.1 MB, free: 11.36 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001567/0.009497, allocations: 27.94 kB / 385.2 MB, free: 11.33 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 7.039e-05/0.009568, allocations: 103.2 kB / 385.3 MB, free: 11.22 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001408/0.009708, allocations: 79.59 kB / 385.3 MB, free: 11.14 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.232e-06/0.00971, allocations: 0 / 385.3 MB, free: 11.14 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.081e-05/0.00976, allocations: 47.59 kB / 385.4 MB, free: 11.09 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001925/0.009953, allocations: 21.77 kB / 385.4 MB, free: 11.07 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004693/0.01042, allocations: 206.5 kB / 385.6 MB, free: 10.84 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.773e-05/0.01046, allocations: 63.34 kB / 385.7 MB, free: 10.76 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.169e-05/0.01049, allocations: 12.97 kB / 385.7 MB, free: 10.75 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.286e-05/0.01052, allocations: 12.5 kB / 385.7 MB, free: 10.74 MB / 362.7 MB Notification: Performance of SimCode: time 7.82e-07/0.01053, allocations: 3.938 kB / 385.7 MB, free: 10.73 MB / 362.7 MB Notification: Performance of Templates: time 0.002742/0.01327, allocations: 1.127 MB / 386.8 MB, free: 9.621 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.879405110143125]