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.0006829/0.0006829, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009958/0.001679, allocations: 449.7 kB / 10.37 MB, free: 332 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.0006265/0.0006265, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000871/0.001498, allocations: 459.6 kB / 11.69 MB, free: 2.48 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.8987/0.8987, allocations: 173.4 MB / 185.8 MB, free: 8.992 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08631/0.985, allocations: 52.5 MB / 238.3 MB, free: 4.43 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.613e-06/1.613e-06, allocations: 0 / 239.5 MB, free: 3.184 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.393e-05/1.554e-05, allocations: 2.312 kB / 239.5 MB, free: 3.18 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.002716/0.002732, allocations: 1.695 MB / 241.2 MB, free: 1.477 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003995/0.003131, allocations: 191.2 kB / 241.4 MB, free: 1.289 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.7e-05/0.003218, allocations: 7.938 kB / 241.4 MB, free: 1.281 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 7.057e-05/0.003289, allocations: 15.86 kB / 241.5 MB, free: 1.266 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 8.496e-05/0.003374, allocations: 15.88 kB / 241.5 MB, free: 1.25 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000215/0.003589, allocations: 47.81 kB / 241.5 MB, free: 1.203 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001368/0.003726, allocations: 63.78 kB / 241.6 MB, free: 1.141 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001043/0.00383, allocations: 27.92 kB / 241.6 MB, free: 1.113 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.199e-05/0.003912, allocations: 43.89 kB / 241.6 MB, free: 1.07 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.811e-05/0.00401, allocations: 27.91 kB / 241.7 MB, free: 1.043 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.144e-05/0.004041, allocations: 8 kB / 241.7 MB, free: 1.035 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.523e-05/0.004057, allocations: 4 kB / 241.7 MB, free: 1.031 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.797e-05/0.004105, allocations: 27.88 kB / 241.7 MB, free: 1.004 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 4.15e-05/0.004146, allocations: 19.94 kB / 241.7 MB, free: 0.9844 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001651/0.004311, allocations: 71.61 kB / 241.8 MB, free: 0.9141 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.077e-05/0.004332, allocations: 0 / 241.8 MB, free: 0.9141 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.004333, allocations: 0 / 241.8 MB, free: 0.9141 MB / 234.7 MB Notification: Performance of Transformations before backend: time 2.51e-05/0.004358, allocations: 0 / 241.8 MB, free: 0.9141 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.0005442/0.004902, allocations: 316.1 kB / 242.1 MB, free: 0.5781 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.004939, allocations: 8.031 kB / 242.1 MB, free: 0.5703 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.645e-05/0.004985, allocations: 16.92 kB / 242.1 MB, free: 0.5547 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001986/0.005184, allocations: 153.4 kB / 242.3 MB, free: 388 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.606e-05/0.0052, allocations: 12.38 kB / 242.3 MB, free: 376 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.215e-05/0.005212, allocations: 4.375 kB / 242.3 MB, free: 372 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002859/0.005498, allocations: 176.5 kB / 242.5 MB, free: 168 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.005509, allocations: 4.172 kB / 242.5 MB, free: 164 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.005522, allocations: 8.359 kB / 242.5 MB, free: 156 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.005528, allocations: 384 / 242.5 MB, free: 156 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.533e-05/0.005584, allocations: 30.64 kB / 242.5 MB, free: 124 kB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003266/0.00591, allocations: 260.1 kB / 242.8 MB, free: 15.84 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001243/0.006034, allocations: 90.72 kB / 242.9 MB, free: 15.73 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.589e-05/0.00609, allocations: 46.55 kB / 242.9 MB, free: 15.67 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.469e-05/0.006115, allocations: 4 kB / 242.9 MB, free: 15.67 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.792e-05/0.006143, allocations: 34.56 kB / 242.9 MB, free: 15.62 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.623e-06/0.006145, allocations: 0 / 242.9 MB, free: 15.62 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002052/0.00635, allocations: 89.47 kB / 243 MB, free: 15.53 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.195e-05/0.006412, allocations: 111.1 kB / 243.1 MB, free: 15.4 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.006522, allocations: 153.9 kB / 243.3 MB, free: 15.24 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.006537, allocations: 33.64 kB / 243.3 MB, free: 15.2 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.089e-05/0.006578, allocations: 92.36 kB / 243.4 MB, free: 15.1 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.538e-06/0.006588, allocations: 0 / 243.4 MB, free: 15.1 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.473e-05/0.006622, allocations: 25.69 kB / 243.4 MB, free: 15.07 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.816e-05/0.006711, allocations: 322.8 kB / 243.8 MB, free: 14.75 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.235e-06/0.006719, allocations: 0 / 243.8 MB, free: 14.75 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.859e-05/0.006737, allocations: 21.69 kB / 243.8 MB, free: 14.72 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.13e-05/0.006769, allocations: 13.72 kB / 243.8 MB, free: 14.7 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.006771, allocations: 4.062 kB / 243.8 MB, free: 14.7 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.159e-05/0.006832, allocations: 45.62 kB / 243.8 MB, free: 14.64 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.006847, allocations: 6.812 kB / 243.8 MB, free: 14.64 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.006852, allocations: 4 kB / 243.8 MB, free: 14.64 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.006863, allocations: 3.938 kB / 243.8 MB, free: 14.63 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.774e-05/0.00692, allocations: 4 kB / 243.9 MB, free: 14.63 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.005e-06/0.006923, allocations: 0 / 243.9 MB, free: 14.63 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.42e-05/0.006948, allocations: 7.953 kB / 243.9 MB, free: 14.62 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.006954, allocations: 0 / 243.9 MB, free: 14.62 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 6.994e-05/0.007024, allocations: 116.7 kB / 244 MB, free: 14.5 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001028/0.007127, allocations: 65.62 kB / 244 MB, free: 14.43 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.927e-05/0.007166, allocations: 16.77 kB / 244.1 MB, free: 14.41 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.007171, allocations: 11.94 kB / 244.1 MB, free: 14.39 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.205e-06/0.007173, allocations: 0 / 244.1 MB, free: 14.39 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.007176, allocations: 0 / 244.1 MB, free: 14.39 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001779/0.007354, allocations: 81.88 kB / 244.1 MB, free: 14.3 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.007356, allocations: 0 / 244.1 MB, free: 14.3 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001117/0.007468, allocations: 27.92 kB / 244.2 MB, free: 14.27 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.694e-05/0.007505, allocations: 27.83 kB / 244.2 MB, free: 14.24 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.007508, allocations: 0 / 244.2 MB, free: 14.24 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.242e-06/0.007514, allocations: 8 kB / 244.2 MB, free: 14.23 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.007516, allocations: 0 / 244.2 MB, free: 14.23 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.007518, allocations: 7.875 kB / 244.2 MB, free: 14.23 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.979e-05/0.007618, allocations: 222.5 kB / 244.4 MB, free: 13.99 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.135e-05/0.00763, allocations: 4 kB / 244.4 MB, free: 13.98 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.071e-05/0.00768, allocations: 3.984 kB / 244.4 MB, free: 13.98 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.226e-05/0.007703, allocations: 11.88 kB / 244.5 MB, free: 13.97 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-06/0.007708, allocations: 4 kB / 244.5 MB, free: 13.96 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.383e-05/0.007732, allocations: 24.84 kB / 244.5 MB, free: 13.94 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.007732, allocations: 32 / 244.5 MB, free: 13.94 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001323/0.007864, allocations: 12 kB / 244.5 MB, free: 13.93 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.059e-05/0.007945, allocations: 92.39 kB / 244.6 MB, free: 13.83 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 6.183e-05/0.008007, allocations: 24.8 kB / 244.6 MB, free: 13.8 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.00801, allocations: 0 / 244.6 MB, free: 13.8 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.428e-05/0.008024, allocations: 16.84 kB / 244.6 MB, free: 13.78 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002319/0.008256, allocations: 45.84 kB / 244.7 MB, free: 13.74 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003739/0.00863, allocations: 235.5 kB / 244.9 MB, free: 13.47 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.777e-05/0.008678, allocations: 71.33 kB / 245 MB, free: 13.38 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.789e-05/0.008696, allocations: 3.953 kB / 245 MB, free: 13.38 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.692e-05/0.008753, allocations: 63.36 kB / 245 MB, free: 13.32 MB / 250.7 MB Notification: Performance of SimCode: time 6.21e-07/0.008753, allocations: 0 / 245 MB, free: 13.32 MB / 250.7 MB Notification: Performance of Templates: time 0.002283/0.01104, allocations: 1.006 MB / 246 MB, free: 12.33 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.401501601561904]