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.0008509/0.0008509, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.0009642/0.0009642, allocations: 161 kB / 24.56 MB, free: 16 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 0.9833/0.9833, allocations: 177.1 MB / 205 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] 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.2663/0.2663, allocations: 34.25 MB / 295.7 MB, free: 0.6914 MB / 266.7 MB " [Timeout remaining time 180] 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.663e-06/1.663e-06, allocations: 0 / 378 MB, free: 2.629 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.142e-05/2.308e-05, allocations: 5.828 kB / 378 MB, free: 2.625 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002036/0.002059, allocations: 1.572 MB / 379.6 MB, free: 1.039 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007914/0.002851, allocations: 0.5491 MB / 380.2 MB, free: 496 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.559e-05/0.002916, allocations: 0 / 380.2 MB, free: 496 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.307e-05/0.00295, allocations: 3.938 kB / 380.2 MB, free: 492 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 8.651e-05/0.003036, allocations: 15.86 kB / 380.2 MB, free: 476 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002585/0.003294, allocations: 55.75 kB / 380.2 MB, free: 420 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001255/0.00342, allocations: 91.7 kB / 380.3 MB, free: 328 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.673e-05/0.003517, allocations: 15.97 kB / 380.3 MB, free: 312 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001499/0.003667, allocations: 59.88 kB / 380.4 MB, free: 252 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.215e-05/0.003729, allocations: 27.91 kB / 380.4 MB, free: 224 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.911e-05/0.003748, allocations: 8 kB / 380.4 MB, free: 216 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.351e-05/0.003801, allocations: 15.98 kB / 380.4 MB, free: 200 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.207e-05/0.003823, allocations: 19.91 kB / 380.5 MB, free: 180 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.983e-05/0.003863, allocations: 31.91 kB / 380.5 MB, free: 148 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001267/0.00399, allocations: 67.73 kB / 380.6 MB, free: 80 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.003992, allocations: 4 kB / 380.6 MB, free: 76 kB / 346.7 MB Notification: Performance of FrontEnd: time 6.11e-07/0.003993, allocations: 0 / 380.6 MB, free: 76 kB / 346.7 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.003997, allocations: 0 / 380.6 MB, free: 76 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.0005187/0.004516, allocations: 436.2 kB / 381 MB, free: 15.61 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.004552, allocations: 8.031 kB / 381 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.004664, allocations: 24.88 kB / 381 MB, free: 15.58 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001465/0.00481, allocations: 136.4 kB / 381.2 MB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.901e-05/0.004829, allocations: 12.36 kB / 381.2 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.564e-05/0.004845, allocations: 12.38 kB / 381.2 MB, free: 15.4 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001343/0.004979, allocations: 82.91 kB / 381.3 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.367e-06/0.004989, allocations: 4.172 kB / 381.3 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.208e-05/0.005001, allocations: 4.375 kB / 381.3 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.005009, allocations: 3.938 kB / 381.3 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.584e-05/0.005055, allocations: 23.23 kB / 381.3 MB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003567/0.005412, allocations: 311.6 kB / 381.6 MB, free: 14.94 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001276/0.00554, allocations: 70.97 kB / 381.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.038e-05/0.00558, allocations: 31.67 kB / 381.7 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.245e-05/0.005602, allocations: 4 kB / 381.7 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001326/0.005735, allocations: 84.97 kB / 381.8 MB, free: 14.72 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.212e-06/0.005736, allocations: 0 / 381.8 MB, free: 14.72 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002599/0.005996, allocations: 153.5 kB / 381.9 MB, free: 14.56 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.655e-05/0.006033, allocations: 63.39 kB / 382 MB, free: 14.49 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.311e-05/0.006116, allocations: 169.9 kB / 382.2 MB, free: 14.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.567e-05/0.006132, allocations: 33.7 kB / 382.2 MB, free: 14.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.538e-05/0.006177, allocations: 139.1 kB / 382.3 MB, free: 14.12 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.559e-05/0.006212, allocations: 43.69 kB / 382.4 MB, free: 14.08 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.437e-05/0.006257, allocations: 43.36 kB / 382.4 MB, free: 14.03 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.006367, allocations: 0.4923 MB / 382.9 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.608e-05/0.006403, allocations: 19.98 kB / 382.9 MB, free: 13.5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.816e-05/0.006471, allocations: 85.41 kB / 383 MB, free: 13.4 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.841e-05/0.00657, allocations: 102.4 kB / 383.1 MB, free: 13.28 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.006572, allocations: 0 / 383.1 MB, free: 13.28 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001434/0.006715, allocations: 137.4 kB / 383.2 MB, free: 13.14 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.006729, allocations: 8 kB / 383.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.006734, allocations: 0 / 383.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.006747, allocations: 0 / 383.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.318e-05/0.00683, allocations: 23.98 kB / 383.3 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.006837, allocations: 4 kB / 383.3 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.308e-05/0.006871, allocations: 19.89 kB / 383.3 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.207e-06/0.00688, allocations: 4 kB / 383.3 MB, free: 13.09 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.0001514/0.007031, allocations: 178.6 kB / 383.5 MB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.813e-05/0.007049, allocations: 19.95 kB / 383.5 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.486e-05/0.007074, allocations: 8.656 kB / 383.5 MB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.007077, allocations: 4 kB / 383.5 MB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.007082, allocations: 3.938 kB / 383.5 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.007085, allocations: 0 / 383.5 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003083/0.007393, allocations: 413.2 kB / 383.9 MB, free: 12.42 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.007394, allocations: 0 / 383.9 MB, free: 12.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.779e-05/0.007422, allocations: 11.98 kB / 383.9 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.169e-06/0.007427, allocations: 3.984 kB / 383.9 MB, free: 12.4 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.007438, allocations: 8 kB / 383.9 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.12e-07/0.007438, allocations: 4 kB / 383.9 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.007439, allocations: 0 / 383.9 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001737/0.007613, allocations: 287.6 kB / 384.2 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.909e-06/0.007623, allocations: 11.94 kB / 384.2 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.64e-05/0.007639, allocations: 4 kB / 384.2 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.441e-05/0.007694, allocations: 11.98 kB / 384.3 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.839e-05/0.007732, allocations: 11.92 kB / 384.3 MB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-05/0.007745, allocations: 4 kB / 384.3 MB, free: 12.05 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.113e-05/0.007786, allocations: 139.6 kB / 384.4 MB, free: 11.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007786, allocations: 0 / 384.4 MB, free: 11.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001633/0.007949, allocations: 31.94 kB / 384.4 MB, free: 11.88 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 6.775e-05/0.008017, allocations: 99.23 kB / 384.5 MB, free: 11.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001359/0.008153, allocations: 87.53 kB / 384.6 MB, free: 11.68 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.272e-06/0.008154, allocations: 0 / 384.6 MB, free: 11.68 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.262e-05/0.008207, allocations: 43.66 kB / 384.7 MB, free: 11.64 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001885/0.008396, allocations: 14.81 kB / 384.7 MB, free: 11.62 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004777/0.008873, allocations: 214.6 kB / 384.9 MB, free: 11.39 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.43e-05/0.008908, allocations: 63.34 kB / 384.9 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.941e-05/0.008937, allocations: 12.97 kB / 385 MB, free: 11.29 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.357e-05/0.00897, allocations: 20.5 kB / 385 MB, free: 11.27 MB / 362.7 MB Notification: Performance of SimCode: time 5.81e-07/0.008971, allocations: 0 / 385 MB, free: 11.27 MB / 362.7 MB Notification: Performance of Templates: time 0.002432/0.0114, allocations: 1.084 MB / 386.1 MB, free: 10.21 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 240] 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","",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.065705451183021]