Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009969/0.0009969, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001252/0.002249, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001447/0.00249, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.124/1.124, allocations: 177.2 MB / 189.8 MB, free: 5.246 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.124/1.248, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.104e-06/2.104e-06, allocations: 0 / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.23e-05/3.44e-05, allocations: 2.312 kB / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.003714/0.003749, allocations: 1.732 MB / 246.4 MB, free: 12.49 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005216/0.00427, allocations: 191.1 kB / 246.6 MB, free: 12.3 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000121/0.004391, allocations: 4 kB / 246.6 MB, free: 12.3 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001063/0.004498, allocations: 11.86 kB / 246.6 MB, free: 12.29 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001197/0.004617, allocations: 19.86 kB / 246.7 MB, free: 12.27 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003147/0.004932, allocations: 51.77 kB / 246.7 MB, free: 12.21 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001852/0.005117, allocations: 63.77 kB / 246.8 MB, free: 12.15 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001548/0.005272, allocations: 23.98 kB / 246.8 MB, free: 12.13 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001207/0.005393, allocations: 47.89 kB / 246.8 MB, free: 12.08 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001504/0.005543, allocations: 31.89 kB / 246.9 MB, free: 12.05 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.693e-05/0.00559, allocations: 8 kB / 246.9 MB, free: 12.04 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.796e-05/0.005618, allocations: 4 kB / 246.9 MB, free: 12.04 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.244e-05/0.00569, allocations: 23.94 kB / 246.9 MB, free: 12.02 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.636e-05/0.005737, allocations: 19.88 kB / 246.9 MB, free: 12 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000192/0.005929, allocations: 67.67 kB / 247 MB, free: 11.93 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.366e-05/0.005942, allocations: 0 / 247 MB, free: 11.93 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.005944, allocations: 0 / 247 MB, free: 11.93 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.345e-05/0.005957, allocations: 0 / 247 MB, free: 11.93 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0006696/0.006627, allocations: 320 kB / 247.3 MB, free: 11.59 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.006675, allocations: 12.03 kB / 247.3 MB, free: 11.58 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.003e-05/0.006725, allocations: 20.92 kB / 247.3 MB, free: 11.56 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000254/0.006979, allocations: 151.8 kB / 247.5 MB, free: 11.39 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.006992, allocations: 4.375 kB / 247.5 MB, free: 11.38 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.906e-05/0.007011, allocations: 8.375 kB / 247.5 MB, free: 11.38 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000364/0.007375, allocations: 171 kB / 247.7 MB, free: 11.18 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.007388, allocations: 4.188 kB / 247.7 MB, free: 11.18 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.0074, allocations: 4.375 kB / 247.7 MB, free: 11.18 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.769e-06/0.007409, allocations: 384 / 247.7 MB, free: 11.18 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.705e-05/0.007466, allocations: 34.67 kB / 247.7 MB, free: 11.14 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004094/0.007876, allocations: 256.1 kB / 248 MB, free: 10.87 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001585/0.008034, allocations: 90.47 kB / 248 MB, free: 10.75 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.06e-05/0.008095, allocations: 38.69 kB / 248.1 MB, free: 10.7 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.367e-05/0.008128, allocations: 12.11 kB / 248.1 MB, free: 10.69 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.554e-05/0.008164, allocations: 34.56 kB / 248.1 MB, free: 10.65 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.583e-06/0.008166, allocations: 0 / 248.1 MB, free: 10.65 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002484/0.008414, allocations: 93.48 kB / 248.2 MB, free: 10.55 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.377e-05/0.008498, allocations: 110.8 kB / 248.3 MB, free: 10.42 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001341/0.008632, allocations: 146.6 kB / 248.5 MB, free: 10.26 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.008651, allocations: 33.7 kB / 248.5 MB, free: 10.22 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.638e-05/0.008708, allocations: 88.39 kB / 248.6 MB, free: 10.13 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.759e-05/0.008725, allocations: 4 kB / 248.6 MB, free: 10.12 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.006e-05/0.008776, allocations: 25.66 kB / 248.6 MB, free: 10.09 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.008898, allocations: 318.8 kB / 248.9 MB, free: 9.773 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.768e-05/0.008915, allocations: 0 / 248.9 MB, free: 9.773 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.57e-05/0.008941, allocations: 21.95 kB / 248.9 MB, free: 9.746 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.324e-05/0.008984, allocations: 21.64 kB / 249 MB, free: 9.719 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.008988, allocations: 0 / 249 MB, free: 9.719 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.52e-05/0.009073, allocations: 45.58 kB / 249 MB, free: 9.668 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.472e-05/0.009098, allocations: 11.98 kB / 249 MB, free: 9.656 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.009105, allocations: 0 / 249 MB, free: 9.656 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.002e-05/0.009125, allocations: 3.938 kB / 249 MB, free: 9.652 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.779e-05/0.009223, allocations: 4 kB / 249 MB, free: 9.648 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.009227, allocations: 4.125 kB / 249 MB, free: 9.645 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.409e-05/0.009251, allocations: 4 kB / 249 MB, free: 9.641 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.064e-05/0.009262, allocations: 0 / 249 MB, free: 9.641 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample1.u,hold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001081/0.00937, allocations: 112.7 kB / 249.2 MB, free: 9.52 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001323/0.009502, allocations: 65.61 kB / 249.2 MB, free: 9.449 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.927e-05/0.009561, allocations: 20.77 kB / 249.2 MB, free: 9.43 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.009568, allocations: 3.938 kB / 249.2 MB, free: 9.426 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.00957, allocations: 0 / 249.2 MB, free: 9.426 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.009577, allocations: 4 kB / 249.2 MB, free: 9.422 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002187/0.009796, allocations: 77.88 kB / 249.3 MB, free: 9.328 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.009799, allocations: 4 kB / 249.3 MB, free: 9.324 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/0.009916, allocations: 23.98 kB / 249.3 MB, free: 9.301 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.824e-05/0.009974, allocations: 27.83 kB / 249.4 MB, free: 9.273 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.009978, allocations: 0 / 249.4 MB, free: 9.273 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.009989, allocations: 4 kB / 249.4 MB, free: 9.27 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.009993, allocations: 0 / 249.4 MB, free: 9.27 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.733e-06/0.009999, allocations: 7.875 kB / 249.4 MB, free: 9.262 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001914/0.01019, allocations: 222.5 kB / 249.6 MB, free: 9.023 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.116e-05/0.01021, allocations: 4 kB / 249.6 MB, free: 9.02 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.01032, allocations: 0 / 249.6 MB, free: 9.02 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.751e-05/0.01037, allocations: 15.95 kB / 249.6 MB, free: 9.004 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.957e-06/0.01038, allocations: 8 kB / 249.6 MB, free: 8.996 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.056e-05/0.01042, allocations: 32.69 kB / 249.7 MB, free: 8.965 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01042, allocations: 0 / 249.7 MB, free: 8.965 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001495/0.01057, allocations: 12 kB / 249.7 MB, free: 8.953 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (sample1.u,hold1.y,sample1.y,hold1.u,sample2.y,sum1.u[1],sum1.u[2],sum1.y,sum2.u[1],sum2.u[2],sum2.y,integerConstant.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * 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 Backend phase and start with SimCode phase: time 0.0001791/0.01075, allocations: 84.36 kB / 249.8 MB, free: 8.863 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.984e-05/0.01085, allocations: 28.78 kB / 249.8 MB, free: 8.832 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.01085, allocations: 8.188 kB / 249.8 MB, free: 8.824 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.897e-05/0.01087, allocations: 12.8 kB / 249.8 MB, free: 8.809 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004022/0.01128, allocations: 161.3 kB / 250 MB, free: 8.629 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006589/0.01193, allocations: 227.4 kB / 250.2 MB, free: 8.375 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.388e-05/0.012, allocations: 75.19 kB / 250.3 MB, free: 8.281 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.15e-05/0.01203, allocations: 4 kB / 250.3 MB, free: 8.277 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.108e-05/0.01211, allocations: 63.3 kB / 250.3 MB, free: 8.215 MB / 250.7 MB Notification: Performance of SimCode: time 1.844e-06/0.01211, allocations: 0 / 250.3 MB, free: 8.215 MB / 250.7 MB Notification: Performance of Templates: time 0.003773/0.01589, allocations: 1.007 MB / 251.3 MB, free: 7.23 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample2/Sample2.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.8317376747727394]