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.0008568/0.0008568, allocations: 88.28 kB / 21.44 MB, free: 3.129 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.00317/0.00317, allocations: 160.6 kB / 24.7 MB, free: 9.441 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.8712/0.8712, allocations: 177 MB / 204.9 MB, free: 5.723 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.2725/0.2725, allocations: 34.24 MB / 295.6 MB, free: 0.6641 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.044e-06/2.044e-06, allocations: 0 / 443.4 MB, free: 1.055 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.63e-05/2.834e-05, allocations: 2.281 kB / 443.4 MB, free: 1.051 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.1925/0.1926, allocations: 1.531 MB / 444.9 MB, free: 43.7 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007211/0.1933, allocations: 0.5256 MB / 445.5 MB, free: 43.49 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.645e-05/0.1933, allocations: 0 / 445.5 MB, free: 43.49 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 2.796e-05/0.1934, allocations: 3.938 kB / 445.5 MB, free: 43.49 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.228e-05/0.1934, allocations: 18.38 kB / 445.5 MB, free: 43.48 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002286/0.1937, allocations: 58.64 kB / 445.5 MB, free: 43.47 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001119/0.1938, allocations: 93.77 kB / 445.6 MB, free: 43.45 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.943e-05/0.1939, allocations: 12.92 kB / 445.6 MB, free: 43.45 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001274/0.194, allocations: 64.78 kB / 445.7 MB, free: 43.44 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.613e-05/0.1941, allocations: 32.44 kB / 445.7 MB, free: 43.43 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.723e-05/0.1941, allocations: 8.062 kB / 445.7 MB, free: 43.43 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.622e-05/0.1941, allocations: 8.031 kB / 445.8 MB, free: 43.43 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.781e-05/0.1941, allocations: 23.66 kB / 445.8 MB, free: 43.43 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.268e-05/0.1942, allocations: 25.14 kB / 445.8 MB, free: 43.43 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001229/0.1943, allocations: 93.2 kB / 445.9 MB, free: 43.4 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.1943, allocations: 2.875 kB / 445.9 MB, free: 43.4 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1943, allocations: 0 / 445.9 MB, free: 43.4 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.1943, allocations: 0 / 445.9 MB, free: 43.4 MB / 410.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.0004406/0.1947, allocations: 335.6 kB / 446.2 MB, free: 43.13 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.1948, allocations: 7.969 kB / 446.2 MB, free: 43.13 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.482e-05/0.1949, allocations: 18.89 kB / 446.3 MB, free: 43.12 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001739/0.195, allocations: 127.2 kB / 446.4 MB, free: 42.99 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.388e-05/0.1951, allocations: 12.53 kB / 446.4 MB, free: 42.99 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.341e-05/0.1951, allocations: 11.42 kB / 446.4 MB, free: 42.99 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001347/0.1952, allocations: 86.77 kB / 446.5 MB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.1952, allocations: 1.688 kB / 446.5 MB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.1952, allocations: 6.875 kB / 446.5 MB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/0.1952, allocations: 3.938 kB / 446.5 MB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.615e-05/0.1953, allocations: 45.86 kB / 446.5 MB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003171/0.1956, allocations: 266.7 kB / 446.8 MB, free: 42.75 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001338/0.1958, allocations: 84.22 kB / 446.9 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.963e-05/0.1958, allocations: 41.52 kB / 446.9 MB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.14e-05/0.1958, allocations: 0 / 446.9 MB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000111/0.1959, allocations: 105.9 kB / 447 MB, free: 42.65 MB / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 1.243e-06/0.1959, allocations: 0 / 447 MB, free: 42.65 MB / 410.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002987/0.1962, allocations: 196.7 kB / 447.2 MB, free: 42.58 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.206e-05/0.1963, allocations: 65.27 kB / 447.3 MB, free: 42.51 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.279e-05/0.1963, allocations: 118.6 kB / 447.4 MB, free: 42.41 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.014e-05/0.1963, allocations: 35.77 kB / 447.4 MB, free: 42.37 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.84e-05/0.1964, allocations: 91.3 kB / 447.5 MB, free: 42.28 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.785e-05/0.1964, allocations: 40.88 kB / 447.6 MB, free: 42.25 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.566e-05/0.1964, allocations: 38.27 kB / 447.6 MB, free: 42.22 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.673e-05/0.1965, allocations: 321.1 kB / 447.9 MB, free: 41.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.731e-05/0.1965, allocations: 41.7 kB / 448 MB, free: 41.89 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.429e-05/0.1966, allocations: 79.12 kB / 448 MB, free: 41.84 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001139/0.1967, allocations: 127.1 kB / 448.2 MB, free: 41.76 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1967, allocations: 0 / 448.2 MB, free: 41.76 MB / 410.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001589/0.1969, allocations: 160.3 kB / 448.3 MB, free: 41.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.1969, allocations: 5.281 kB / 448.3 MB, free: 41.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.1969, allocations: 2.781 kB / 448.3 MB, free: 41.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.1969, allocations: 6.312 kB / 448.3 MB, free: 41.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.503e-05/0.197, allocations: 23.59 kB / 448.3 MB, free: 41.67 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.197, allocations: 2.969 kB / 448.4 MB, free: 41.67 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.213e-05/0.197, allocations: 18.03 kB / 448.4 MB, free: 41.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.197, allocations: 5.688 kB / 448.4 MB, free: 41.66 MB / 410.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 5.776e-05/0.1971, allocations: 127.7 kB / 448.5 MB, free: 41.53 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.046e-05/0.1971, allocations: 11.28 kB / 448.5 MB, free: 41.53 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.621e-05/0.1971, allocations: 14.06 kB / 448.5 MB, free: 41.52 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.1971, allocations: 2.688 kB / 448.5 MB, free: 41.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1971, allocations: 7.938 kB / 448.5 MB, free: 41.52 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.1971, allocations: 3.938 kB / 448.5 MB, free: 41.51 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002968/0.1974, allocations: 385.6 kB / 448.9 MB, free: 41.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1974, allocations: 0 / 448.9 MB, free: 41.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.691e-05/0.1974, allocations: 13.06 kB / 448.9 MB, free: 41.22 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.1975, allocations: 2.906 kB / 448.9 MB, free: 41.22 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.1975, allocations: 6.688 kB / 448.9 MB, free: 41.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1975, allocations: 0 / 448.9 MB, free: 41.22 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1975, allocations: 2.75 kB / 448.9 MB, free: 41.22 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001703/0.1976, allocations: 263.2 kB / 449.2 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.606e-06/0.1976, allocations: 14.16 kB / 449.2 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.663e-05/0.1977, allocations: 7 kB / 449.2 MB, free: 41.03 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.26e-05/0.1977, allocations: 8.328 kB / 449.2 MB, free: 41.03 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.492e-05/0.1977, allocations: 10.08 kB / 449.2 MB, free: 41.03 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.799e-05/0.1978, allocations: 13.02 kB / 449.2 MB, free: 41.02 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.292e-05/0.1978, allocations: 90.89 kB / 449.3 MB, free: 40.95 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1978, allocations: 0 / 449.3 MB, free: 40.95 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001553/0.1979, allocations: 22.16 kB / 449.4 MB, free: 40.94 MB / 410.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 8.594e-05/0.198, allocations: 103.5 kB / 449.5 MB, free: 40.84 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001704/0.1982, allocations: 111.5 kB / 449.6 MB, free: 40.81 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1982, allocations: 2.969 kB / 449.6 MB, free: 40.81 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 6.625e-05/0.1983, allocations: 50.56 kB / 449.6 MB, free: 40.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002075/0.1985, allocations: 15.53 kB / 449.6 MB, free: 40.79 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003076/0.1988, allocations: 226.1 kB / 449.9 MB, free: 40.61 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.088e-05/0.1988, allocations: 82.81 kB / 449.9 MB, free: 40.54 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.131e-05/0.1989, allocations: 14.28 kB / 450 MB, free: 40.54 MB / 410.7 MB Notification: Performance of SimCode: time 4.61e-07/0.1989, allocations: 0 / 450 MB, free: 40.54 MB / 410.7 MB Notification: Performance of Templates: time 0.002018/0.2009, allocations: 1.306 MB / 451.3 MB, free: 40.46 MB / 410.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.712951936759055]