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.0009582/0.0009582, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001197/0.002155, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.0007257/0.0007257, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001211/0.001936, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.9778/0.9778, allocations: 177.5 MB / 190 MB, free: 4.777 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1003/1.078, allocations: 53.87 MB / 243.9 MB, free: 14.84 MB / 250.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.2754/0.2754, allocations: 34.88 MB / 279.6 MB, free: 14.91 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02566/0.3011, allocations: 13.24 MB / 292.8 MB, free: 6.375 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.492e-06/1.492e-06, allocations: 0 / 294.1 MB, free: 5.09 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.449e-05/1.598e-05, allocations: 2.859 kB / 294.1 MB, free: 5.086 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002046/0.002062, allocations: 1.629 MB / 295.7 MB, free: 3.449 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006691/0.002731, allocations: 0.5535 MB / 296.3 MB, free: 2.891 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.182e-05/0.002783, allocations: 3.938 kB / 296.3 MB, free: 2.887 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.319e-05/0.002806, allocations: 7.922 kB / 296.3 MB, free: 2.879 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.367e-05/0.00285, allocations: 7.875 kB / 296.3 MB, free: 2.871 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001391/0.002989, allocations: 63.73 kB / 296.4 MB, free: 2.809 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001075/0.003096, allocations: 83.72 kB / 296.4 MB, free: 2.727 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.19e-05/0.003178, allocations: 15.97 kB / 296.5 MB, free: 2.711 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001482/0.003327, allocations: 75.81 kB / 296.5 MB, free: 2.637 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.335e-05/0.0034, allocations: 31.89 kB / 296.6 MB, free: 2.605 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.85e-05/0.003418, allocations: 8 kB / 296.6 MB, free: 2.598 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.38e-05/0.003472, allocations: 8 kB / 296.6 MB, free: 2.59 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.175e-05/0.003494, allocations: 15.94 kB / 296.6 MB, free: 2.574 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.68e-05/0.003521, allocations: 19.94 kB / 296.6 MB, free: 2.555 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001121/0.003633, allocations: 71.69 kB / 296.7 MB, free: 2.484 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.037e-05/0.003643, allocations: 0 / 296.7 MB, free: 2.484 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.003644, allocations: 0 / 296.7 MB, free: 2.484 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.003653, allocations: 4 kB / 296.7 MB, free: 2.48 MB / 282.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.0004577/0.004111, allocations: 321.5 kB / 297 MB, free: 2.145 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.249e-05/0.004143, allocations: 8.922 kB / 297 MB, free: 2.137 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001467/0.00429, allocations: 102 kB / 297.1 MB, free: 2.02 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001445/0.004434, allocations: 121.7 kB / 297.2 MB, free: 1.875 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.335e-05/0.004458, allocations: 12.36 kB / 297.2 MB, free: 1.863 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.377e-05/0.004471, allocations: 12.3 kB / 297.2 MB, free: 1.852 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001249/0.004596, allocations: 86.16 kB / 297.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.004605, allocations: 192 / 297.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.036e-05/0.004615, allocations: 4.375 kB / 297.3 MB, free: 1.758 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.004623, allocations: 3.938 kB / 297.3 MB, free: 1.754 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.981e-05/0.004653, allocations: 15.98 kB / 297.4 MB, free: 1.738 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004322/0.005085, allocations: 184.3 kB / 297.5 MB, free: 1.543 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.627e-05/0.005181, allocations: 62.47 kB / 297.6 MB, free: 1.473 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.407e-05/0.005205, allocations: 21.52 kB / 297.6 MB, free: 1.449 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.005224, allocations: 224 / 297.6 MB, free: 1.449 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.901e-05/0.005323, allocations: 91.36 kB / 297.7 MB, free: 1.348 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 1.062e-06/0.005324, allocations: 0 / 297.7 MB, free: 1.348 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001413/0.005466, allocations: 93.53 kB / 297.8 MB, free: 1.25 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.744e-05/0.005503, allocations: 63.39 kB / 297.9 MB, free: 1.176 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.954e-05/0.005563, allocations: 126 kB / 298 MB, free: 1.043 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.559e-05/0.005578, allocations: 29.7 kB / 298 MB, free: 1.008 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.039e-05/0.005609, allocations: 96.39 kB / 298.1 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.181e-05/0.00564, allocations: 35.72 kB / 298.1 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.565e-05/0.005676, allocations: 37.7 kB / 298.2 MB, free: 0.8281 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.257e-05/0.005749, allocations: 322.8 kB / 298.5 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.054e-05/0.005769, allocations: 15.98 kB / 298.5 MB, free: 500 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.832e-05/0.005807, allocations: 53.77 kB / 298.6 MB, free: 432 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.021e-05/0.005878, allocations: 85.86 kB / 298.6 MB, free: 332 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.005881, allocations: 4 kB / 298.6 MB, free: 328 kB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 9.453e-05/0.005976, allocations: 105.5 kB / 298.8 MB, free: 216 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.095e-05/0.005987, allocations: 4 kB / 298.8 MB, free: 212 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.005992, allocations: 4 kB / 298.8 MB, free: 208 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.006003, allocations: 0 / 298.8 MB, free: 208 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.233e-05/0.006085, allocations: 31.92 kB / 298.8 MB, free: 176 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.00609, allocations: 4 kB / 298.8 MB, free: 172 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.032e-05/0.00612, allocations: 15.89 kB / 298.8 MB, free: 156 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.006128, allocations: 4 kB / 298.8 MB, free: 152 kB / 282.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 6.402e-05/0.006192, allocations: 131.8 kB / 298.9 MB, free: 12 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.864e-05/0.00622, allocations: 16.05 kB / 299 MB, free: 15.99 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.552e-05/0.006246, allocations: 12.38 kB / 299 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.006248, allocations: 0 / 299 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/0.006249, allocations: 0 / 299 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.006254, allocations: 3.984 kB / 299 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002029/0.006457, allocations: 253.8 kB / 299.2 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.006458, allocations: 3.938 kB / 299.2 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.902e-05/0.006487, allocations: 11.98 kB / 299.2 MB, free: 15.7 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.857e-06/0.006496, allocations: 11.89 kB / 299.2 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.006498, allocations: 4 kB / 299.3 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.006508, allocations: 3.984 kB / 299.3 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.006509, allocations: 0 / 299.3 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.00651, allocations: 0 / 299.3 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001003/0.00661, allocations: 195.2 kB / 299.4 MB, free: 15.47 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.459e-05/0.006625, allocations: 0 / 299.4 MB, free: 15.47 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.025e-05/0.006675, allocations: 11.98 kB / 299.5 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.766e-05/0.006703, allocations: 11.98 kB / 299.5 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.566e-05/0.006719, allocations: 4 kB / 299.5 MB, free: 15.44 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.621e-05/0.006735, allocations: 16.84 kB / 299.5 MB, free: 15.42 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006735, allocations: 4 kB / 299.5 MB, free: 15.42 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001323/0.006867, allocations: 20 kB / 299.5 MB, free: 15.4 MB / 298.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.926e-05/0.006936, allocations: 88.34 kB / 299.6 MB, free: 15.3 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001023/0.007039, allocations: 76.62 kB / 299.7 MB, free: 15.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.062e-06/0.007045, allocations: 4 kB / 299.7 MB, free: 15.22 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.388e-05/0.007089, allocations: 32.84 kB / 299.7 MB, free: 15.19 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001673/0.007256, allocations: 81.7 kB / 299.8 MB, free: 15.1 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000641/0.007897, allocations: 210.1 kB / 300 MB, free: 14.87 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.38e-05/0.007931, allocations: 67.34 kB / 300.1 MB, free: 14.78 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.66e-05/0.007957, allocations: 4.984 kB / 300.1 MB, free: 14.78 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.684e-05/0.008014, allocations: 63.36 kB / 300.1 MB, free: 14.71 MB / 298.7 MB Notification: Performance of SimCode: time 7.61e-07/0.008015, allocations: 4 kB / 300.1 MB, free: 14.71 MB / 298.7 MB Notification: Performance of Templates: time 0.002464/0.01048, allocations: 1.152 MB / 301.3 MB, free: 13.59 MB / 298.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6743325609713793]