Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009455/0.0009455, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009064/0.0009064, allocations: 143.1 kB / 24.89 MB, free: 8.785 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8875/0.8875, allocations: 173.4 MB / 201.5 MB, free: 8.273 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 8.82e-07/8.82e-07, allocations: 0 / 268.5 MB, free: 9.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.378e-06/1.026e-05, allocations: 2.312 kB / 268.5 MB, free: 9.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.001863/0.001873, allocations: 1.702 MB / 270.2 MB, free: 8.066 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003136/0.002187, allocations: 187.8 kB / 270.4 MB, free: 7.883 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.791e-05/0.002245, allocations: 5.906 kB / 270.4 MB, free: 7.879 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 7.273e-05/0.002317, allocations: 15.86 kB / 270.4 MB, free: 7.863 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.197e-05/0.002399, allocations: 7.875 kB / 270.4 MB, free: 7.855 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001428/0.002542, allocations: 51.83 kB / 270.5 MB, free: 7.805 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.249e-05/0.002625, allocations: 63.77 kB / 270.5 MB, free: 7.742 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.035e-05/0.002695, allocations: 29.69 kB / 270.6 MB, free: 7.715 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.208e-05/0.002737, allocations: 39.89 kB / 270.6 MB, free: 7.676 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.651e-05/0.002794, allocations: 27.91 kB / 270.6 MB, free: 7.648 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.391e-05/0.002807, allocations: 4 kB / 270.6 MB, free: 7.645 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.987e-06/0.002816, allocations: 8 kB / 270.6 MB, free: 7.637 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.053e-05/0.002847, allocations: 28.78 kB / 270.7 MB, free: 7.609 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.045e-05/0.002867, allocations: 19.92 kB / 270.7 MB, free: 7.59 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 8.783e-05/0.002955, allocations: 72.38 kB / 270.8 MB, free: 7.52 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.583e-06/0.002957, allocations: 0 / 270.8 MB, free: 7.52 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.51e-07/0.002957, allocations: 0.6875 kB / 270.8 MB, free: 7.52 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.695e-06/0.00296, allocations: 0 / 270.8 MB, free: 7.52 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.0005031/0.003463, allocations: 305.1 kB / 271.1 MB, free: 7.195 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.702e-05/0.00349, allocations: 8.031 kB / 271.1 MB, free: 7.188 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.53e-05/0.003515, allocations: 19.77 kB / 271.1 MB, free: 7.172 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001323/0.003648, allocations: 153.4 kB / 271.2 MB, free: 6.996 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.642e-06/0.003654, allocations: 4.375 kB / 271.2 MB, free: 6.992 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.197e-06/0.003664, allocations: 8.375 kB / 271.3 MB, free: 6.984 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000182/0.003846, allocations: 173.5 kB / 271.4 MB, free: 6.789 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.68e-06/0.003851, allocations: 192 / 271.4 MB, free: 6.789 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-06/0.00386, allocations: 12.86 kB / 271.4 MB, free: 6.777 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.003864, allocations: 4.375 kB / 271.4 MB, free: 6.773 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.67e-05/0.00389, allocations: 22.7 kB / 271.5 MB, free: 6.75 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000194/0.004084, allocations: 260 kB / 271.7 MB, free: 6.473 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.903e-05/0.004163, allocations: 94.59 kB / 271.8 MB, free: 6.352 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.614e-05/0.004199, allocations: 42.67 kB / 271.8 MB, free: 6.301 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.412e-05/0.004214, allocations: 4 kB / 271.9 MB, free: 6.297 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.276e-05/0.004236, allocations: 38.56 kB / 271.9 MB, free: 6.25 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 8.71e-07/0.004237, allocations: 0 / 271.9 MB, free: 6.25 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.000128/0.004365, allocations: 93.75 kB / 272 MB, free: 6.152 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.173e-05/0.004407, allocations: 110.9 kB / 272.1 MB, free: 6.02 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.545e-05/0.004472, allocations: 149.7 kB / 272.2 MB, free: 5.863 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.129e-05/0.004484, allocations: 29.64 kB / 272.3 MB, free: 5.828 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.903e-05/0.004513, allocations: 92.36 kB / 272.4 MB, free: 5.73 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.334e-06/0.00452, allocations: 4 kB / 272.4 MB, free: 5.727 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.371e-05/0.004544, allocations: 25.69 kB / 272.4 MB, free: 5.695 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.049e-05/0.004604, allocations: 314.8 kB / 272.7 MB, free: 5.379 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.19e-06/0.004609, allocations: 3.984 kB / 272.7 MB, free: 5.375 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.366e-05/0.004623, allocations: 21.95 kB / 272.7 MB, free: 5.348 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.783e-05/0.004641, allocations: 13.72 kB / 272.7 MB, free: 5.328 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.004642, allocations: 0 / 272.7 MB, free: 5.328 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 3.633e-05/0.004679, allocations: 41.62 kB / 272.8 MB, free: 5.281 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.407e-06/0.004688, allocations: 9.875 kB / 272.8 MB, free: 5.273 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.076e-06/0.004691, allocations: 0 / 272.8 MB, free: 5.273 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.278e-06/0.0047, allocations: 3.938 kB / 272.8 MB, free: 5.27 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.057e-05/0.004731, allocations: 4 kB / 272.8 MB, free: 5.266 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.405e-06/0.004733, allocations: 128 / 272.8 MB, free: 5.266 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.466e-05/0.004748, allocations: 11.95 kB / 272.8 MB, free: 5.254 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.899e-06/0.004753, allocations: 3.984 kB / 272.8 MB, free: 5.25 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 4.798e-05/0.004801, allocations: 116.7 kB / 272.9 MB, free: 5.125 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.148e-05/0.004862, allocations: 61.56 kB / 273 MB, free: 5.059 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.981e-05/0.004892, allocations: 20.77 kB / 273 MB, free: 5.035 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.004895, allocations: 3.938 kB / 273 MB, free: 5.031 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.004896, allocations: 0 / 273 MB, free: 5.031 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.0049, allocations: 4 kB / 273 MB, free: 5.027 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001069/0.005007, allocations: 89.81 kB / 273.1 MB, free: 4.922 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.005009, allocations: 3.984 kB / 273.1 MB, free: 4.918 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.673e-05/0.005055, allocations: 23.94 kB / 273.1 MB, free: 4.895 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.005057, allocations: 4 kB / 273.1 MB, free: 4.891 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.549e-06/0.005062, allocations: 0 / 273.1 MB, free: 4.891 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.005063, allocations: 3.984 kB / 273.1 MB, free: 4.887 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.005065, allocations: 4 kB / 273.1 MB, free: 4.883 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.273e-05/0.005138, allocations: 226.4 kB / 273.4 MB, free: 4.641 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.624e-05/0.005164, allocations: 19.84 kB / 273.4 MB, free: 4.621 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.095e-06/0.005172, allocations: 0 / 273.4 MB, free: 4.621 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.315e-05/0.005225, allocations: 11.98 kB / 273.4 MB, free: 4.609 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.734e-05/0.005243, allocations: 7.969 kB / 273.4 MB, free: 4.602 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.388e-06/0.005247, allocations: 4 kB / 273.4 MB, free: 4.598 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.02e-05/0.005267, allocations: 32.83 kB / 273.4 MB, free: 4.562 MB / 250.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.005267, allocations: 0 / 273.4 MB, free: 4.562 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001351/0.005402, allocations: 8 kB / 273.4 MB, free: 4.555 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 5.515e-05/0.005457, allocations: 84.41 kB / 273.5 MB, free: 4.465 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 5.263e-05/0.00551, allocations: 32.78 kB / 273.6 MB, free: 4.43 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.005512, allocations: 4.125 kB / 273.6 MB, free: 4.426 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.043e-05/0.005523, allocations: 16.84 kB / 273.6 MB, free: 4.406 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002108/0.005734, allocations: 45.59 kB / 273.6 MB, free: 4.363 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002309/0.005965, allocations: 219.4 kB / 273.8 MB, free: 4.113 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.635e-05/0.006001, allocations: 67.34 kB / 273.9 MB, free: 4.027 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.55e-05/0.006016, allocations: 11.94 kB / 273.9 MB, free: 4.016 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.376e-05/0.00606, allocations: 59.38 kB / 274 MB, free: 3.957 MB / 250.7 MB Notification: Performance of SimCode: time 3.6e-07/0.006061, allocations: 0 / 274 MB, free: 3.957 MB / 250.7 MB Notification: Performance of Templates: time 0.002105/0.008165, allocations: 0.9881 MB / 275 MB, free: 2.992 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample2/Sample2.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: 2.449221206828952]