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.001612/0.001612, allocations: 109.1 kB / 21.18 MB, free: 0.7656 MB / 14.72 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.001748/0.001748, allocations: 213.1 kB / 24.5 MB, free: 4.148 MB / 14.72 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.526/1.526, allocations: 230.5 MB / 258.1 MB, free: 8.008 MB / 206.1 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.2576/0.2576, allocations: 46.93 MB / 361.5 MB, free: 4.176 MB / 286.1 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 0.002572/0.002572, allocations: 76.16 kB / 0.4974 GB, free: 7.266 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.386/0.3886, allocations: 66.08 MB / 0.5619 GB, free: 4.223 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.0031/0.3917, allocations: 1.562 MB / 0.5635 GB, free: 2.652 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00109/0.3928, allocations: 0.5649 MB / 0.564 GB, free: 2.082 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.391e-05/0.3928, allocations: 7.938 kB / 0.564 GB, free: 2.074 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.398e-05/0.3929, allocations: 3.938 kB / 0.564 GB, free: 2.07 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.129e-05/0.393, allocations: 15.84 kB / 0.564 GB, free: 2.055 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002859/0.3932, allocations: 55.81 kB / 0.5641 GB, free: 2 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001625/0.3934, allocations: 87.77 kB / 0.5642 GB, free: 1.914 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.3935, allocations: 8 kB / 0.5642 GB, free: 1.906 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001595/0.3937, allocations: 47.83 kB / 0.5642 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.972e-05/0.3938, allocations: 43.83 kB / 0.5643 GB, free: 1.816 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.204e-05/0.3938, allocations: 8 kB / 0.5643 GB, free: 1.809 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.808e-05/0.3939, allocations: 12 kB / 0.5643 GB, free: 1.797 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.344e-05/0.3939, allocations: 35.78 kB / 0.5643 GB, free: 1.762 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.508e-05/0.3939, allocations: 35.8 kB / 0.5644 GB, free: 1.727 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001652/0.3941, allocations: 82.09 kB / 0.5644 GB, free: 1.652 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3941, allocations: 0 / 0.5644 GB, free: 1.652 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3941, allocations: 0 / 0.5644 GB, free: 1.652 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.3941, allocations: 0 / 0.5644 GB, free: 1.652 MB / 398.1 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.0007744/0.3949, allocations: 334 kB / 0.5648 GB, free: 1.297 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.3949, allocations: 8.031 kB / 0.5648 GB, free: 1.289 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001638/0.3951, allocations: 20.88 kB / 0.5648 GB, free: 1.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002409/0.3953, allocations: 134.3 kB / 0.5649 GB, free: 1.113 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.305e-05/0.3954, allocations: 20.3 kB / 0.5649 GB, free: 1.094 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.488e-05/0.3954, allocations: 4.375 kB / 0.5649 GB, free: 1.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002259/0.3956, allocations: 89.95 kB / 0.565 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.3956, allocations: 4 kB / 0.565 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.763e-05/0.3956, allocations: 4 kB / 0.565 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.832e-06/0.3957, allocations: 4 kB / 0.565 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001371/0.3958, allocations: 43.97 kB / 0.5651 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006066/0.3964, allocations: 303.7 kB / 0.5654 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002258/0.3966, allocations: 94.47 kB / 0.5655 GB, free: 0.5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.58e-05/0.3967, allocations: 36.84 kB / 0.5655 GB, free: 472 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.272e-05/0.3967, allocations: 4 kB / 0.5655 GB, free: 468 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001943/0.3969, allocations: 110.6 kB / 0.5656 GB, free: 348 kB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.423e-06/0.3969, allocations: 0 / 0.5656 GB, free: 348 kB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004738/0.3974, allocations: 201.6 kB / 0.5658 GB, free: 140 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.291e-05/0.3975, allocations: 55.41 kB / 0.5658 GB, free: 72 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001368/0.3976, allocations: 117.8 kB / 0.566 GB, free: 15.95 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.119e-05/0.3976, allocations: 33.7 kB / 0.566 GB, free: 15.91 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.366e-05/0.3977, allocations: 96.38 kB / 0.5661 GB, free: 15.8 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.234e-05/0.3977, allocations: 31.73 kB / 0.5661 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.988e-05/0.3978, allocations: 37.7 kB / 0.5661 GB, free: 15.73 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.398, allocations: 326.8 kB / 0.5665 GB, free: 15.4 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.889e-05/0.3981, allocations: 39.98 kB / 0.5665 GB, free: 15.36 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001259/0.3982, allocations: 77.27 kB / 0.5666 GB, free: 15.27 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002221/0.3984, allocations: 116.4 kB / 0.5667 GB, free: 15.14 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3984, allocations: 4 kB / 0.5667 GB, free: 15.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002887/0.3987, allocations: 164.5 kB / 0.5668 GB, free: 14.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.3987, allocations: 10.19 kB / 0.5669 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.3987, allocations: 0 / 0.5669 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.3987, allocations: 4 kB / 0.5669 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001162/0.3989, allocations: 24.05 kB / 0.5669 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.3989, allocations: 7.938 kB / 0.5669 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.281e-05/0.3989, allocations: 11.95 kB / 0.5669 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.276e-05/0.3989, allocations: 7.938 kB / 0.5669 GB, free: 14.91 MB / 414.1 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.0001481/0.3991, allocations: 137.1 kB / 0.567 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.931e-05/0.3991, allocations: 7.953 kB / 0.567 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.523e-05/0.3991, allocations: 8.438 kB / 0.5671 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.3991, allocations: 0 / 0.5671 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.3991, allocations: 11.94 kB / 0.5671 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3992, allocations: 0 / 0.5671 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005763/0.3997, allocations: 421.5 kB / 0.5675 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.3997, allocations: 0 / 0.5675 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.697e-05/0.3998, allocations: 19.86 kB / 0.5675 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.3998, allocations: 0 / 0.5675 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.3998, allocations: 0 / 0.5675 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.3998, allocations: 4 kB / 0.5675 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3998, allocations: 4 kB / 0.5675 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003533/0.4002, allocations: 255.5 kB / 0.5677 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.716e-05/0.4002, allocations: 15.88 kB / 0.5677 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.363e-05/0.4002, allocations: 4 kB / 0.5678 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.4003, allocations: 7.984 kB / 0.5678 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.755e-05/0.4004, allocations: 11.98 kB / 0.5678 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.716e-05/0.4004, allocations: 7.984 kB / 0.5678 GB, free: 13.94 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.011e-05/0.4005, allocations: 103.6 kB / 0.5679 GB, free: 13.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4005, allocations: 3.938 kB / 0.5679 GB, free: 13.83 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002436/0.4007, allocations: 20 kB / 0.5679 GB, free: 13.81 MB / 414.1 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.0001229/0.4008, allocations: 99.19 kB / 0.568 GB, free: 13.71 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002812/0.4011, allocations: 107.8 kB / 0.5681 GB, free: 13.6 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4011, allocations: 0 / 0.5681 GB, free: 13.6 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001243/0.4012, allocations: 58.41 kB / 0.5682 GB, free: 13.55 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002679/0.4015, allocations: 14.11 kB / 0.5682 GB, free: 13.54 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004927/0.402, allocations: 237.3 kB / 0.5684 GB, free: 13.27 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003446/0.4023, allocations: 0.6924 MB / 0.5691 GB, free: 12.55 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.491e-05/0.4024, allocations: 15.44 kB / 0.5691 GB, free: 12.54 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4024, allocations: 0 / 0.5691 GB, free: 12.54 MB / 414.1 MB Notification: Performance of Templates: time 0.00312/0.4055, allocations: 1.269 MB / 0.5703 GB, free: 11.26 MB / 414.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/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: 7.6118751738686115]