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.0009471/0.0009471, allocations: 85.91 kB / 22.21 MB, free: 2.285 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.001182/0.001182, allocations: 159.2 kB / 25.61 MB, free: 8.582 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 1.054/1.054, allocations: 177 MB / 205.9 MB, free: 4.457 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.1874/0.1874, allocations: 34.88 MB / 297.4 MB, free: 13.35 MB / 282.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 1.703e-06/1.703e-06, allocations: 0 / 380 MB, free: 22.77 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.719e-05/2.889e-05, allocations: 2.312 kB / 380 MB, free: 22.77 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002173/0.002202, allocations: 1.571 MB / 381.6 MB, free: 21.2 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007821/0.002984, allocations: 0.5452 MB / 382.1 MB, free: 20.64 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.268e-05/0.003057, allocations: 0 / 382.1 MB, free: 20.64 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 3.199e-05/0.003089, allocations: 7.875 kB / 382.1 MB, free: 20.64 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001006/0.00319, allocations: 15.86 kB / 382.1 MB, free: 20.62 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002583/0.003448, allocations: 51.81 kB / 382.2 MB, free: 20.57 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001377/0.003586, allocations: 99.69 kB / 382.3 MB, free: 20.47 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/0.003696, allocations: 4 kB / 382.3 MB, free: 20.47 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001778/0.003873, allocations: 63.81 kB / 382.3 MB, free: 20.41 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.9e-05/0.003942, allocations: 39.81 kB / 382.4 MB, free: 20.37 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.85e-05/0.003961, allocations: 8 kB / 382.4 MB, free: 20.36 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.655e-05/0.004007, allocations: 12 kB / 382.4 MB, free: 20.35 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 2.27e-05/0.00403, allocations: 23.91 kB / 382.4 MB, free: 20.32 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 3.055e-05/0.004061, allocations: 23.92 kB / 382.4 MB, free: 20.3 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001227/0.004183, allocations: 71.78 kB / 382.5 MB, free: 20.23 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.004186, allocations: 4 kB / 382.5 MB, free: 20.23 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.004187, allocations: 0 / 382.5 MB, free: 20.23 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.004192, allocations: 0 / 382.5 MB, free: 20.23 MB / 314.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.0004979/0.00469, allocations: 432.3 kB / 382.9 MB, free: 19.77 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.004733, allocations: 8.031 kB / 383 MB, free: 19.76 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001239/0.004857, allocations: 20.88 kB / 383 MB, free: 19.74 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001343/0.004991, allocations: 140.4 kB / 383.1 MB, free: 19.58 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.088e-05/0.005012, allocations: 4.359 kB / 383.1 MB, free: 19.57 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.16e-05/0.005024, allocations: 12.38 kB / 383.1 MB, free: 19.56 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001249/0.005149, allocations: 78.91 kB / 383.2 MB, free: 19.48 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.005159, allocations: 192 / 383.2 MB, free: 19.48 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.307e-06/0.005168, allocations: 4.359 kB / 383.2 MB, free: 19.47 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.005175, allocations: 7.938 kB / 383.2 MB, free: 19.46 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.136e-05/0.005206, allocations: 19.98 kB / 383.2 MB, free: 19.45 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003044/0.005511, allocations: 296.2 kB / 383.5 MB, free: 19.13 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001178/0.005628, allocations: 66.97 kB / 383.6 MB, free: 19.05 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.756e-05/0.005656, allocations: 23.67 kB / 383.6 MB, free: 19.02 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.963e-05/0.005676, allocations: 4 kB / 383.6 MB, free: 19.02 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.92e-05/0.005775, allocations: 95.95 kB / 383.7 MB, free: 18.91 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 1.824e-06/0.005777, allocations: 0 / 383.7 MB, free: 18.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002238/0.006, allocations: 141.7 kB / 383.8 MB, free: 18.77 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.152e-05/0.006032, allocations: 55.41 kB / 383.9 MB, free: 18.7 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6e-05/0.006092, allocations: 173.9 kB / 384.1 MB, free: 18.52 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.346e-05/0.006105, allocations: 33.7 kB / 384.1 MB, free: 18.48 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.369e-05/0.006139, allocations: 139.1 kB / 384.2 MB, free: 18.33 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.333e-05/0.006172, allocations: 43.67 kB / 384.3 MB, free: 18.29 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.867e-05/0.006211, allocations: 43.34 kB / 384.3 MB, free: 18.24 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.356e-05/0.006265, allocations: 0.4923 MB / 384.8 MB, free: 17.73 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.384e-05/0.006289, allocations: 15.98 kB / 384.8 MB, free: 17.72 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.069e-05/0.006329, allocations: 73.28 kB / 384.9 MB, free: 17.63 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.379e-05/0.006403, allocations: 94.34 kB / 385 MB, free: 17.52 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.006405, allocations: 0 / 385 MB, free: 17.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001284/0.006533, allocations: 124.8 kB / 385.1 MB, free: 17.39 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.00655, allocations: 10.5 kB / 385.1 MB, free: 17.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.006556, allocations: 0 / 385.1 MB, free: 17.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.006571, allocations: 7.984 kB / 385.1 MB, free: 17.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.319e-05/0.006664, allocations: 20 kB / 385.2 MB, free: 17.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.006669, allocations: 7.984 kB / 385.2 MB, free: 17.35 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.141e-05/0.0067, allocations: 11.89 kB / 385.2 MB, free: 17.34 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.749e-06/0.00671, allocations: 11.98 kB / 385.2 MB, free: 17.32 MB / 314.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 7.009e-05/0.00678, allocations: 178.6 kB / 385.4 MB, free: 17.14 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.696e-05/0.006797, allocations: 16.16 kB / 385.4 MB, free: 17.12 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.638e-05/0.006823, allocations: 12.44 kB / 385.4 MB, free: 17.11 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.006826, allocations: 7.938 kB / 385.4 MB, free: 17.11 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.554e-06/0.006829, allocations: 0 / 385.4 MB, free: 17.11 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.006834, allocations: 0 / 385.4 MB, free: 17.11 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002679/0.007101, allocations: 381.8 kB / 385.8 MB, free: 16.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.726e-06/0.007104, allocations: 4 kB / 385.8 MB, free: 16.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.171e-05/0.007136, allocations: 7.984 kB / 385.8 MB, free: 16.69 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.007139, allocations: 4 kB / 385.8 MB, free: 16.68 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-06/0.007147, allocations: 4 kB / 385.8 MB, free: 16.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.007149, allocations: 4 kB / 385.8 MB, free: 16.68 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.007151, allocations: 0 / 385.8 MB, free: 16.68 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001447/0.007295, allocations: 299.7 kB / 386.1 MB, free: 16.36 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.201e-05/0.007307, allocations: 7.953 kB / 386.1 MB, free: 16.36 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.75e-05/0.007325, allocations: 0 / 386.1 MB, free: 16.36 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.691e-05/0.007382, allocations: 11.98 kB / 386.1 MB, free: 16.34 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.277e-05/0.007415, allocations: 11.98 kB / 386.1 MB, free: 16.33 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.007429, allocations: 0 / 386.1 MB, free: 16.33 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.483e-05/0.007454, allocations: 138.9 kB / 386.3 MB, free: 16.2 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.007454, allocations: 0 / 386.3 MB, free: 16.2 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001609/0.007615, allocations: 28 kB / 386.3 MB, free: 16.17 MB / 314.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.0001045/0.007719, allocations: 107.1 kB / 386.4 MB, free: 16.06 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000132/0.007851, allocations: 63.59 kB / 386.4 MB, free: 15.99 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.007854, allocations: 4 kB / 386.5 MB, free: 15.99 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 4.038e-05/0.007894, allocations: 47.58 kB / 386.5 MB, free: 15.94 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002164/0.008111, allocations: 18.11 kB / 386.5 MB, free: 15.92 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004621/0.008573, allocations: 196.7 kB / 386.7 MB, free: 15.7 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.224e-05/0.008605, allocations: 67.2 kB / 386.8 MB, free: 15.62 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 3.895e-05/0.008644, allocations: 12.97 kB / 386.8 MB, free: 15.61 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.862e-05/0.008702, allocations: 82.19 kB / 386.9 MB, free: 15.52 MB / 314.7 MB Notification: Performance of SimCode: time 1.222e-06/0.008704, allocations: 3.938 kB / 386.9 MB, free: 15.52 MB / 314.7 MB Notification: Performance of Templates: time 0.002807/0.01151, allocations: 1.194 MB / 388.1 MB, free: 14.34 MB / 314.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: 3.4636201323010027]