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.000982/0.000982, allocations: 79.69 kB / 21.7 MB, free: 2.852 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.0009476/0.0009476, allocations: 161.1 kB / 24.99 MB, free: 8.801 MB / 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.9452/0.9452, allocations: 177 MB / 205.2 MB, free: 5.578 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.2414/0.2414, allocations: 34.86 MB / 296.6 MB, free: 0.5703 MB / 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.144e-06/2.144e-06, allocations: 0 / 378.7 MB, free: 2.453 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.224e-05/2.439e-05, allocations: 6.312 kB / 378.7 MB, free: 2.445 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002938/0.002963, allocations: 1.582 MB / 380.3 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001083/0.004046, allocations: 0.5414 MB / 380.9 MB, free: 312 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.107e-05/0.004127, allocations: 0 / 380.9 MB, free: 312 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.4e-05/0.004161, allocations: 3.938 kB / 380.9 MB, free: 308 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 9.94e-05/0.00426, allocations: 15.86 kB / 380.9 MB, free: 292 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003023/0.004563, allocations: 51.75 kB / 380.9 MB, free: 240 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001771/0.00474, allocations: 99.62 kB / 381 MB, free: 140 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000113/0.004853, allocations: 8 kB / 381 MB, free: 132 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000217/0.00507, allocations: 63.88 kB / 381.1 MB, free: 68 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.479e-05/0.005155, allocations: 35.88 kB / 381.1 MB, free: 32 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.212e-05/0.005177, allocations: 8 kB / 381.1 MB, free: 24 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.894e-05/0.005226, allocations: 12 kB / 381.1 MB, free: 12 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.44e-05/0.00527, allocations: 16.06 kB / 381.2 MB, free: 15.99 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 5.025e-05/0.00532, allocations: 27.92 kB / 381.2 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001607/0.005481, allocations: 67.62 kB / 381.3 MB, free: 15.9 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.005484, allocations: 4 kB / 381.3 MB, free: 15.9 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.005485, allocations: 0 / 381.3 MB, free: 15.9 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.768e-06/0.005489, allocations: 0 / 381.3 MB, free: 15.9 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.0006492/0.006138, allocations: 440.2 kB / 381.7 MB, free: 15.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.00618, allocations: 12.03 kB / 381.7 MB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001884/0.006368, allocations: 20.88 kB / 381.7 MB, free: 15.4 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002059/0.006574, allocations: 136.4 kB / 381.9 MB, free: 15.24 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.58e-05/0.0066, allocations: 8.375 kB / 381.9 MB, free: 15.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.912e-05/0.006619, allocations: 12.31 kB / 381.9 MB, free: 15.22 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002104/0.006829, allocations: 90.91 kB / 382 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.006839, allocations: 192 / 382 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.51e-05/0.006855, allocations: 384 / 382 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.006866, allocations: 3.938 kB / 382 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.363e-05/0.00695, allocations: 23.97 kB / 382 MB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005142/0.007464, allocations: 311.6 kB / 382.3 MB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001659/0.00763, allocations: 71.03 kB / 382.4 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.023e-05/0.00769, allocations: 23.67 kB / 382.4 MB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.22e-05/0.007712, allocations: 7.984 kB / 382.4 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001496/0.007862, allocations: 92.95 kB / 382.5 MB, free: 14.54 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.633e-06/0.007863, allocations: 0 / 382.5 MB, free: 14.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.000389/0.008252, allocations: 156.8 kB / 382.6 MB, free: 14.38 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.116e-05/0.008303, allocations: 59.41 kB / 382.7 MB, free: 14.31 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.008428, allocations: 169.9 kB / 382.9 MB, free: 14.12 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.039e-05/0.008459, allocations: 37.69 kB / 382.9 MB, free: 14.08 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.994e-05/0.008529, allocations: 135.2 kB / 383 MB, free: 13.94 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.395e-05/0.008583, allocations: 43.69 kB / 383.1 MB, free: 13.9 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.698e-05/0.00865, allocations: 39.36 kB / 383.1 MB, free: 13.85 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.00881, allocations: 0.4962 MB / 383.6 MB, free: 13.34 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.915e-05/0.008879, allocations: 23.98 kB / 383.6 MB, free: 13.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.46e-05/0.008974, allocations: 78.42 kB / 383.7 MB, free: 13.22 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001514/0.009125, allocations: 102.4 kB / 383.8 MB, free: 13.1 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.009128, allocations: 224 / 383.8 MB, free: 13.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002402/0.009368, allocations: 125.6 kB / 383.9 MB, free: 12.97 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.009387, allocations: 11.94 kB / 383.9 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.009393, allocations: 4.125 kB / 383.9 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.009408, allocations: 3.938 kB / 384 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001349/0.009542, allocations: 23.98 kB / 384 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.854e-06/0.00955, allocations: 4 kB / 384 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.02e-05/0.009611, allocations: 15.94 kB / 384 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.009623, allocations: 4 kB / 384 MB, free: 12.91 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.0001117/0.009734, allocations: 178.4 kB / 384.2 MB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.943e-05/0.009764, allocations: 15.95 kB / 384.2 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.947e-05/0.009803, allocations: 12.42 kB / 384.2 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.009807, allocations: 4 kB / 384.2 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.009811, allocations: 4 kB / 384.2 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.009815, allocations: 0 / 384.2 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004867/0.0103, allocations: 412.2 kB / 384.6 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.01031, allocations: 3.984 kB / 384.6 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.548e-05/0.01036, allocations: 8 kB / 384.6 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.01037, allocations: 0 / 384.6 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.564e-05/0.01038, allocations: 4 kB / 384.6 MB, free: 12.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.01038, allocations: 4 kB / 384.6 MB, free: 12.22 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.01038, allocations: 0 / 384.6 MB, free: 12.22 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000307/0.01069, allocations: 295.6 kB / 384.9 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.236e-05/0.01071, allocations: 11.95 kB / 384.9 MB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.733e-05/0.01074, allocations: 4 kB / 384.9 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001139/0.01085, allocations: 11.98 kB / 384.9 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.896e-05/0.0109, allocations: 11.92 kB / 385 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.068e-05/0.01092, allocations: 4 kB / 385 MB, free: 11.87 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.724e-05/0.01099, allocations: 135.2 kB / 385.1 MB, free: 11.73 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.01099, allocations: 0 / 385.1 MB, free: 11.73 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002948/0.01129, allocations: 24 kB / 385.1 MB, free: 11.71 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.0001154/0.0114, allocations: 107.1 kB / 385.2 MB, free: 11.6 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002164/0.01162, allocations: 91.52 kB / 385.3 MB, free: 11.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.01162, allocations: 3.938 kB / 385.3 MB, free: 11.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.419e-05/0.01171, allocations: 39.67 kB / 385.4 MB, free: 11.46 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003271/0.01204, allocations: 19.97 kB / 385.4 MB, free: 11.44 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000692/0.01273, allocations: 217.4 kB / 385.6 MB, free: 11.2 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.145e-05/0.01278, allocations: 59.36 kB / 385.6 MB, free: 11.12 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.889e-05/0.01283, allocations: 17.22 kB / 385.7 MB, free: 11.11 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.212e-05/0.01288, allocations: 12.5 kB / 385.7 MB, free: 11.09 MB / 362.7 MB Notification: Performance of SimCode: time 9.62e-07/0.01288, allocations: 0 / 385.7 MB, free: 11.09 MB / 362.7 MB Notification: Performance of Templates: time 0.003934/0.01681, allocations: 1.085 MB / 386.8 MB, free: 10.02 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.931286989012733]