Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.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.000767/0.000767, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001179/0.001946, allocations: 445.8 kB / 10.44 MB, free: 256 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.0006544/0.0006544, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009572/0.001612, allocations: 475.6 kB / 11.8 MB, free: 2.367 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.8443/0.8443, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1448/0.9891, allocations: 52.48 MB / 238.5 MB, free: 7.641 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.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 239.7 MB, free: 6.375 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.752e-05/1.915e-05, allocations: 2.312 kB / 239.7 MB, free: 6.371 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.00183/0.001849, allocations: 1.591 MB / 241.3 MB, free: 4.789 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001993/0.002048, allocations: 143.4 kB / 241.5 MB, free: 4.648 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.744e-05/0.002106, allocations: 5.406 kB / 241.5 MB, free: 4.645 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 3.447e-05/0.00214, allocations: 7.922 kB / 241.5 MB, free: 4.637 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.986e-05/0.0022, allocations: 11.92 kB / 241.5 MB, free: 4.625 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001335/0.002334, allocations: 31.84 kB / 241.5 MB, free: 4.594 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001038/0.002437, allocations: 28.55 kB / 241.6 MB, free: 4.566 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.632e-05/0.002504, allocations: 7.984 kB / 241.6 MB, free: 4.559 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.372e-05/0.002557, allocations: 20.52 kB / 241.6 MB, free: 4.539 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.69e-05/0.002594, allocations: 12.47 kB / 241.6 MB, free: 4.527 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.921e-05/0.002614, allocations: 0 / 241.6 MB, free: 4.527 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.277e-06/0.002623, allocations: 5.688 kB / 241.6 MB, free: 4.523 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 3.397e-05/0.002657, allocations: 7.984 kB / 241.6 MB, free: 4.516 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 1.7e-05/0.002674, allocations: 11.94 kB / 241.6 MB, free: 4.504 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 8.086e-05/0.002755, allocations: 27.84 kB / 241.6 MB, free: 4.477 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.021e-05/0.002765, allocations: 1.156 kB / 241.6 MB, free: 4.477 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.92e-07/0.002765, allocations: 4 kB / 241.6 MB, free: 4.473 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.878e-06/0.002775, allocations: 0 / 241.6 MB, free: 4.473 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000301/0.003076, allocations: 269.3 kB / 241.9 MB, free: 4.184 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.64e-05/0.003103, allocations: 12.03 kB / 241.9 MB, free: 4.172 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.515e-05/0.003128, allocations: 0.9375 kB / 241.9 MB, free: 4.172 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001314/0.003259, allocations: 134.6 kB / 242.1 MB, free: 4.016 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.023e-06/0.003266, allocations: 5.062 kB / 242.1 MB, free: 4.012 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.028e-05/0.003277, allocations: 8.375 kB / 242.1 MB, free: 4.004 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001345/0.003411, allocations: 95.7 kB / 242.2 MB, free: 3.891 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.131e-06/0.003417, allocations: 192 / 242.2 MB, free: 3.891 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.758e-06/0.003422, allocations: 1.031 kB / 242.2 MB, free: 3.891 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.003428, allocations: 384 / 242.2 MB, free: 3.891 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.218e-05/0.00344, allocations: 10.47 kB / 242.2 MB, free: 3.883 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001443/0.003584, allocations: 153.1 kB / 242.3 MB, free: 3.715 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.468e-05/0.003619, allocations: 41.19 kB / 242.4 MB, free: 3.656 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.396e-05/0.003633, allocations: 9.719 kB / 242.4 MB, free: 3.641 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.764e-05/0.00365, allocations: 4.062 kB / 242.4 MB, free: 3.637 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.792e-05/0.003668, allocations: 35.97 kB / 242.4 MB, free: 3.594 MB / 234.7 MB Notification: Performance of pre-optimization done (n=2): time 8.61e-07/0.003669, allocations: 0 / 242.4 MB, free: 3.594 MB / 234.7 MB Notification: Performance of matching and sorting (n=2): time 9.463e-05/0.003764, allocations: 42.5 kB / 242.5 MB, free: 3.547 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.729e-05/0.003801, allocations: 84.98 kB / 242.5 MB, free: 3.445 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.719e-05/0.003868, allocations: 135.7 kB / 242.7 MB, free: 3.301 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 7.654e-06/0.003876, allocations: 25.7 kB / 242.7 MB, free: 3.27 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.801e-05/0.003904, allocations: 88.09 kB / 242.8 MB, free: 3.18 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.283e-06/0.003911, allocations: 3.125 kB / 242.8 MB, free: 3.18 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.095e-05/0.003932, allocations: 17.7 kB / 242.8 MB, free: 3.156 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 6.127e-05/0.003993, allocations: 314.8 kB / 243.1 MB, free: 2.84 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.581e-06/0.003999, allocations: 4 kB / 243.1 MB, free: 2.836 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.639e-06/0.004004, allocations: 0 / 243.1 MB, free: 2.836 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.376e-05/0.004017, allocations: 8.859 kB / 243.1 MB, free: 2.824 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.004019, allocations: 0 / 243.1 MB, free: 2.824 MB / 234.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.661e-05/0.004056, allocations: 38.91 kB / 243.2 MB, free: 2.781 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.015e-05/0.004066, allocations: 4 kB / 243.2 MB, free: 2.777 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.466e-06/0.004069, allocations: 0 / 243.2 MB, free: 2.777 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.004081, allocations: 5.047 kB / 243.2 MB, free: 2.773 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.102e-05/0.004122, allocations: 7.938 kB / 243.2 MB, free: 2.766 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.635e-06/0.004125, allocations: 0 / 243.2 MB, free: 2.766 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.351e-05/0.004138, allocations: 8.969 kB / 243.2 MB, free: 2.758 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.018e-06/0.004143, allocations: 3.984 kB / 243.2 MB, free: 2.754 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (step.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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.975e-05/0.004192, allocations: 117.5 kB / 243.3 MB, free: 2.629 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.616e-05/0.004218, allocations: 29.7 kB / 243.3 MB, free: 2.594 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.264e-05/0.004241, allocations: 9.594 kB / 243.3 MB, free: 2.582 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.004243, allocations: 3.984 kB / 243.3 MB, free: 2.578 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.004246, allocations: 3.938 kB / 243.3 MB, free: 2.574 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.004249, allocations: 4 kB / 243.4 MB, free: 2.57 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.368e-05/0.004323, allocations: 69.89 kB / 243.4 MB, free: 2.484 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.004324, allocations: 8.594 kB / 243.4 MB, free: 2.477 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.365e-05/0.004348, allocations: 8.672 kB / 243.4 MB, free: 2.469 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.927e-05/0.004367, allocations: 7.953 kB / 243.4 MB, free: 2.461 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.004369, allocations: 1.969 kB / 243.4 MB, free: 2.461 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.116e-06/0.004372, allocations: 0 / 243.4 MB, free: 2.461 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.004373, allocations: 4 kB / 243.5 MB, free: 2.457 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.004375, allocations: 3.938 kB / 243.5 MB, free: 2.453 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.775e-05/0.004433, allocations: 132.9 kB / 243.6 MB, free: 2.305 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.514e-06/0.00444, allocations: 0 / 243.6 MB, free: 2.305 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.751e-05/0.004468, allocations: 4.812 kB / 243.6 MB, free: 2.301 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.869e-05/0.004486, allocations: 3.984 kB / 243.6 MB, free: 2.297 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.015e-06/0.004489, allocations: 1.656 kB / 243.6 MB, free: 2.297 MB / 234.7 MB Notification: Performance of sorting global known variables: time 2.347e-05/0.004513, allocations: 39.8 kB / 243.6 MB, free: 2.258 MB / 234.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.004513, allocations: 0 / 243.6 MB, free: 2.258 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0001116/0.004625, allocations: 4 kB / 243.6 MB, free: 2.254 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 6.627e-05/0.004691, allocations: 80.83 kB / 243.7 MB, free: 2.168 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 4.705e-05/0.004738, allocations: 8.859 kB / 243.7 MB, free: 2.156 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.004741, allocations: 0 / 243.7 MB, free: 2.156 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 1.125e-05/0.004753, allocations: 8.859 kB / 243.7 MB, free: 2.145 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001871/0.00494, allocations: 83.39 kB / 243.8 MB, free: 2.051 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003302/0.00527, allocations: 147.6 kB / 244 MB, free: 1.879 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.245e-05/0.005302, allocations: 59.34 kB / 244 MB, free: 1.801 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 1.423e-05/0.005317, allocations: 320 / 244 MB, free: 1.801 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.328e-05/0.00536, allocations: 59.38 kB / 244.1 MB, free: 1.742 MB / 234.7 MB Notification: Performance of SimCode: time 6.22e-07/0.00536, allocations: 0 / 244.1 MB, free: 1.742 MB / 234.7 MB Notification: Performance of Templates: time 0.001871/0.007232, allocations: 0.5145 MB / 244.6 MB, free: 1.238 MB / 234.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SampleClocked/SampleClocked.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.345414678566158]