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.0009619/0.0009619, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 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.00113/0.00113, allocations: 169.9 kB / 24.91 MB, free: 8.723 MB / 18.57 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 0.968/0.968, allocations: 177.1 MB / 205.3 MB, free: 5.121 MB / 186.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 1.182e-06/1.182e-06, allocations: 0 / 273.4 MB, free: 1.184 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.789e-05/1.908e-05, allocations: 2.312 kB / 273.4 MB, free: 1.18 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.002108/0.002127, allocations: 1.676 MB / 275.1 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004002/0.002527, allocations: 187.2 kB / 275.3 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.589e-05/0.002603, allocations: 4 kB / 275.3 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 9.451e-05/0.002697, allocations: 7.875 kB / 275.3 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001083/0.002806, allocations: 19.84 kB / 275.3 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001807/0.002986, allocations: 51.77 kB / 275.4 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001014/0.003088, allocations: 63.83 kB / 275.4 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.136e-05/0.003179, allocations: 31.89 kB / 275.5 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.352e-05/0.003233, allocations: 39.91 kB / 275.5 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.708e-05/0.00331, allocations: 27.89 kB / 275.5 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.199e-05/0.003332, allocations: 12 kB / 275.6 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.111e-05/0.003343, allocations: 4 kB / 275.6 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.254e-05/0.003385, allocations: 27.86 kB / 275.6 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.891e-05/0.003414, allocations: 23.91 kB / 275.6 MB, free: 15 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001259/0.00354, allocations: 67.75 kB / 275.7 MB, free: 14.94 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.543e-06/0.003542, allocations: 0 / 275.7 MB, free: 14.94 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.71e-07/0.003542, allocations: 0 / 275.7 MB, free: 14.94 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.437e-06/0.003546, allocations: 0 / 275.7 MB, free: 14.94 MB / 266.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.0003167/0.003863, allocations: 308.4 kB / 276 MB, free: 14.61 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.955e-05/0.003892, allocations: 8.031 kB / 276 MB, free: 14.6 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.774e-05/0.00392, allocations: 12.92 kB / 276 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001355/0.004055, allocations: 157.5 kB / 276.2 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.926e-06/0.004064, allocations: 4.375 kB / 276.2 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.126e-05/0.004076, allocations: 8.375 kB / 276.2 MB, free: 14.4 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002012/0.004277, allocations: 164.6 kB / 276.3 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.721e-06/0.004282, allocations: 192 / 276.3 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.217e-06/0.004292, allocations: 8.359 kB / 276.3 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.004297, allocations: 8.375 kB / 276.3 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.776e-05/0.004325, allocations: 22.7 kB / 276.4 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002231/0.004548, allocations: 256.1 kB / 276.6 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.971e-05/0.004638, allocations: 98.59 kB / 276.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002756/0.004913, allocations: 38.75 kB / 276.8 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.558e-05/0.004929, allocations: 7.938 kB / 276.8 MB, free: 13.72 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.752e-05/0.004946, allocations: 30.56 kB / 276.8 MB, free: 13.68 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.282e-06/0.004948, allocations: 0 / 276.8 MB, free: 13.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001411/0.005089, allocations: 93.48 kB / 276.9 MB, free: 13.58 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.65e-05/0.005135, allocations: 114.8 kB / 277 MB, free: 13.45 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.66e-05/0.005212, allocations: 161.2 kB / 277.1 MB, free: 13.28 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.029e-05/0.005222, allocations: 25.7 kB / 277.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.924e-05/0.005251, allocations: 84.42 kB / 277.3 MB, free: 13.16 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.899e-06/0.005261, allocations: 3.984 kB / 277.3 MB, free: 13.15 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.689e-05/0.005288, allocations: 25.66 kB / 277.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.801e-05/0.005356, allocations: 318.8 kB / 277.6 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.571e-06/0.005362, allocations: 0 / 277.6 MB, free: 12.8 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.726e-05/0.005379, allocations: 25.89 kB / 277.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.357e-05/0.005403, allocations: 17.66 kB / 277.6 MB, free: 12.75 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.005405, allocations: 4 kB / 277.6 MB, free: 12.74 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.156e-05/0.005446, allocations: 41.62 kB / 277.7 MB, free: 12.7 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.969e-06/0.005456, allocations: 4 kB / 277.7 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.00546, allocations: 0 / 277.7 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.598e-06/0.00547, allocations: 3.938 kB / 277.7 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.664e-05/0.005506, allocations: 4 kB / 277.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.048e-06/0.00551, allocations: 4.125 kB / 277.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.334e-05/0.005524, allocations: 4 kB / 277.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.609e-06/0.005528, allocations: 0 / 277.7 MB, free: 12.68 MB / 266.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 5.945e-05/0.005588, allocations: 128.6 kB / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.16e-05/0.005649, allocations: 57.62 kB / 277.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.057e-05/0.00568, allocations: 20.77 kB / 277.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.005683, allocations: 3.938 kB / 277.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.005684, allocations: 4 kB / 277.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.005687, allocations: 0 / 277.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001161/0.005803, allocations: 81.81 kB / 278 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.005805, allocations: 4 kB / 278 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.042e-05/0.005856, allocations: 27.98 kB / 278 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-06/0.005857, allocations: 4 kB / 278 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.709e-06/0.005862, allocations: 0 / 278 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.005864, allocations: 4 kB / 278 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.005866, allocations: 3.938 kB / 278 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.183e-05/0.005948, allocations: 218.9 kB / 278.2 MB, free: 12.07 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.089e-05/0.005979, allocations: 23.89 kB / 278.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.248e-06/0.005988, allocations: 0 / 278.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.153e-05/0.006039, allocations: 8 kB / 278.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.131e-05/0.006061, allocations: 7.953 kB / 278.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.159e-06/0.006066, allocations: 8 kB / 278.3 MB, free: 12.02 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.495e-05/0.006091, allocations: 31.47 kB / 278.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.006091, allocations: 0 / 278.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001443/0.006235, allocations: 12 kB / 278.3 MB, free: 11.98 MB / 266.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 8.132e-05/0.006316, allocations: 92.34 kB / 278.4 MB, free: 11.88 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 5.402e-05/0.00637, allocations: 24.73 kB / 278.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.006373, allocations: 4.125 kB / 278.5 MB, free: 11.85 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.078e-05/0.006383, allocations: 12.86 kB / 278.5 MB, free: 11.84 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002367/0.00662, allocations: 49.81 kB / 278.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002589/0.006879, allocations: 231 kB / 278.7 MB, free: 11.54 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.029e-05/0.006919, allocations: 67.34 kB / 278.8 MB, free: 11.45 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.667e-05/0.006936, allocations: 7.984 kB / 278.8 MB, free: 11.44 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.176e-05/0.006988, allocations: 59.38 kB / 278.9 MB, free: 11.38 MB / 266.7 MB Notification: Performance of SimCode: time 4.91e-07/0.006988, allocations: 0 / 278.9 MB, free: 11.38 MB / 266.7 MB Notification: Performance of Templates: time 0.002313/0.009301, allocations: 0.9728 MB / 279.8 MB, free: 10.43 MB / 266.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5803861380554736]