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.0007544/0.0007544, allocations: 77.36 kB / 10 MB, free: 0.6797 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001053/0.001807, allocations: 449.9 kB / 10.44 MB, free: 248 kB / 10.45 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.000639/0.000639, allocations: 144.9 kB / 11.34 MB, free: 2.832 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009333/0.001572, allocations: 475.6 kB / 11.8 MB, free: 2.363 MB / 13.93 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.8739/0.8739, allocations: 173.4 MB / 185.9 MB, free: 8.926 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07089/0.9448, allocations: 52.5 MB / 238.4 MB, free: 4.363 MB / 234.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 1.313e-06/1.313e-06, allocations: 0 / 239.7 MB, free: 3.098 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.097e-05/1.228e-05, allocations: 5.828 kB / 239.7 MB, free: 3.094 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.001977/0.001989, allocations: 1.706 MB / 241.4 MB, free: 1.375 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003167/0.002306, allocations: 187.1 kB / 241.6 MB, free: 1.191 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.775e-05/0.002394, allocations: 4 kB / 241.6 MB, free: 1.188 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 5.866e-05/0.002452, allocations: 19.8 kB / 241.6 MB, free: 1.168 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 6.417e-05/0.002516, allocations: 7.922 kB / 241.6 MB, free: 1.16 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001605/0.002677, allocations: 55.77 kB / 241.7 MB, free: 1.105 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001211/0.002798, allocations: 71.77 kB / 241.8 MB, free: 1.035 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.002908, allocations: 23.94 kB / 241.8 MB, free: 1.012 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.741e-05/0.002975, allocations: 43.89 kB / 241.8 MB, free: 0.9688 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.299e-05/0.003058, allocations: 27.91 kB / 241.9 MB, free: 0.9414 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.366e-05/0.003082, allocations: 4 kB / 241.9 MB, free: 0.9375 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.28e-05/0.003094, allocations: 8 kB / 241.9 MB, free: 0.9297 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.203e-05/0.003137, allocations: 27.86 kB / 241.9 MB, free: 0.9023 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 2.863e-05/0.003165, allocations: 23.92 kB / 241.9 MB, free: 0.8789 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001064/0.003272, allocations: 59.7 kB / 242 MB, free: 0.8203 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.156e-06/0.00328, allocations: 0 / 242 MB, free: 0.8203 MB / 234.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.003281, allocations: 8 kB / 242 MB, free: 0.8125 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.003289, allocations: 3.938 kB / 242 MB, free: 0.8086 MB / 234.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.0003733/0.003662, allocations: 324.1 kB / 242.3 MB, free: 476 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.003695, allocations: 8.031 kB / 242.3 MB, free: 468 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.444e-05/0.003729, allocations: 8.938 kB / 242.3 MB, free: 460 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001604/0.00389, allocations: 155.1 kB / 242.5 MB, free: 280 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.067e-06/0.003899, allocations: 4.375 kB / 242.5 MB, free: 276 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.318e-05/0.003912, allocations: 8.375 kB / 242.5 MB, free: 268 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000236/0.004148, allocations: 176.5 kB / 242.7 MB, free: 64 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.004155, allocations: 192 / 242.7 MB, free: 64 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.428e-06/0.004165, allocations: 4.375 kB / 242.7 MB, free: 60 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.004173, allocations: 4.375 kB / 242.7 MB, free: 56 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.991e-05/0.004203, allocations: 26.69 kB / 242.7 MB, free: 28 kB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002831/0.004486, allocations: 248.1 kB / 242.9 MB, free: 15.76 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001107/0.004597, allocations: 98.53 kB / 243 MB, free: 15.64 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.692e-05/0.004644, allocations: 50.67 kB / 243.1 MB, free: 15.58 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.083e-05/0.004665, allocations: 4 kB / 243.1 MB, free: 15.57 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.979e-05/0.004685, allocations: 34.55 kB / 243.1 MB, free: 15.53 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 3.627e-06/0.004688, allocations: 3.984 kB / 243.1 MB, free: 15.53 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001603/0.004849, allocations: 89.48 kB / 243.2 MB, free: 15.43 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.817e-05/0.004897, allocations: 110.8 kB / 243.3 MB, free: 15.3 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.764e-05/0.004974, allocations: 157.4 kB / 243.5 MB, free: 15.14 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.03e-05/0.004985, allocations: 25.7 kB / 243.5 MB, free: 15.11 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.456e-05/0.005019, allocations: 100.6 kB / 243.6 MB, free: 15 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.03e-05/0.00503, allocations: 4 kB / 243.6 MB, free: 15 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.54e-05/0.005055, allocations: 21.7 kB / 243.6 MB, free: 14.97 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.415e-05/0.005129, allocations: 322.8 kB / 243.9 MB, free: 14.64 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.552e-06/0.005136, allocations: 4 kB / 243.9 MB, free: 14.64 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.251e-05/0.005148, allocations: 9.719 kB / 244 MB, free: 14.62 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.139e-05/0.00517, allocations: 21.66 kB / 244 MB, free: 14.6 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.005171, allocations: 0 / 244 MB, free: 14.6 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.706e-05/0.005218, allocations: 45.72 kB / 244 MB, free: 14.55 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.138e-05/0.00523, allocations: 4 kB / 244 MB, free: 14.54 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.005234, allocations: 0 / 244 MB, free: 14.54 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.00525, allocations: 11.94 kB / 244 MB, free: 14.53 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.999e-05/0.0053, allocations: 7.984 kB / 244 MB, free: 14.52 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.076e-06/0.005303, allocations: 0 / 244 MB, free: 14.52 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.463e-05/0.005318, allocations: 3.953 kB / 244 MB, free: 14.52 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.554e-06/0.005325, allocations: 4 kB / 244 MB, free: 14.52 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 5.594e-05/0.005381, allocations: 112.7 kB / 244.2 MB, free: 14.39 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.939e-05/0.005441, allocations: 61.61 kB / 244.2 MB, free: 14.33 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.89e-05/0.00547, allocations: 20.81 kB / 244.2 MB, free: 14.3 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.005473, allocations: 7.938 kB / 244.2 MB, free: 14.3 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.005475, allocations: 0 / 244.2 MB, free: 14.3 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.005479, allocations: 3.984 kB / 244.3 MB, free: 14.29 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001176/0.005596, allocations: 81.88 kB / 244.3 MB, free: 14.2 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.005598, allocations: 4 kB / 244.3 MB, free: 14.19 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.358e-05/0.005652, allocations: 19.98 kB / 244.4 MB, free: 14.17 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.958e-05/0.005681, allocations: 23.84 kB / 244.4 MB, free: 14.15 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.005683, allocations: 0 / 244.4 MB, free: 14.15 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.324e-06/0.00569, allocations: 7.984 kB / 244.4 MB, free: 14.14 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.005693, allocations: 11.88 kB / 244.4 MB, free: 14.13 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.005695, allocations: 7.938 kB / 244.4 MB, free: 14.12 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.083e-05/0.005776, allocations: 218.5 kB / 244.6 MB, free: 13.89 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.033e-05/0.005786, allocations: 0 / 244.6 MB, free: 13.89 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.3e-05/0.005839, allocations: 8 kB / 244.6 MB, free: 13.88 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.128e-05/0.005861, allocations: 3.938 kB / 244.6 MB, free: 13.88 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.127e-06/0.005865, allocations: 4 kB / 244.6 MB, free: 13.87 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.618e-05/0.005891, allocations: 32.81 kB / 244.7 MB, free: 13.84 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005891, allocations: 0 / 244.7 MB, free: 13.84 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001423/0.006033, allocations: 12 kB / 244.7 MB, free: 13.82 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 8.419e-05/0.006117, allocations: 92.39 kB / 244.8 MB, free: 13.73 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 6.769e-05/0.006185, allocations: 28.78 kB / 244.8 MB, free: 13.7 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.006188, allocations: 0 / 244.8 MB, free: 13.7 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.308e-05/0.006201, allocations: 8.859 kB / 244.8 MB, free: 13.68 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/0.006486, allocations: 167 kB / 245 MB, free: 13.5 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003708/0.006857, allocations: 227.8 kB / 245.2 MB, free: 13.25 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.22e-05/0.006899, allocations: 75.33 kB / 245.3 MB, free: 13.15 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.59e-05/0.006915, allocations: 3.953 kB / 245.3 MB, free: 13.15 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.52e-05/0.00697, allocations: 67.36 kB / 245.3 MB, free: 13.08 MB / 250.7 MB Notification: Performance of SimCode: time 4.61e-07/0.00697, allocations: 0 / 245.3 MB, free: 13.08 MB / 250.7 MB Notification: Performance of Templates: time 0.002255/0.009226, allocations: 1.011 MB / 246.3 MB, free: 12.09 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 -emit_protected -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.20869224332273]