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.0009868/0.0009868, allocations: 82.28 kB / 22.21 MB, free: 2.289 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.0009844/0.0009844, allocations: 154.3 kB / 25.6 MB, free: 8.922 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.9785/0.9785, allocations: 173.4 MB / 202.2 MB, free: 8.305 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 1.493e-06/1.493e-06, allocations: 0 / 269.2 MB, free: 9.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.305e-05/2.455e-05, allocations: 2.312 kB / 269.2 MB, free: 9.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.00337/0.003394, allocations: 1.645 MB / 270.8 MB, free: 8.117 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004814/0.003876, allocations: 183.2 kB / 271 MB, free: 7.938 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.299e-05/0.003969, allocations: 5.25 kB / 271 MB, free: 7.934 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001037/0.004073, allocations: 11.88 kB / 271 MB, free: 7.922 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001165/0.004189, allocations: 19.8 kB / 271.1 MB, free: 7.902 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001808/0.00437, allocations: 45.86 kB / 271.1 MB, free: 7.859 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001141/0.004484, allocations: 67.77 kB / 271.2 MB, free: 7.793 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.004593, allocations: 31.91 kB / 271.2 MB, free: 7.762 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.285e-05/0.004655, allocations: 31.91 kB / 271.2 MB, free: 7.73 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.372e-05/0.004739, allocations: 31.89 kB / 271.3 MB, free: 7.699 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.152e-05/0.004761, allocations: 4 kB / 271.3 MB, free: 7.695 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.61e-05/0.004777, allocations: 8.875 kB / 271.3 MB, free: 7.688 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.593e-05/0.004823, allocations: 23.92 kB / 271.3 MB, free: 7.664 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.835e-05/0.004861, allocations: 24.83 kB / 271.3 MB, free: 7.641 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001439/0.005005, allocations: 67.67 kB / 271.4 MB, free: 7.574 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.834e-06/0.005007, allocations: 0.6875 kB / 271.4 MB, free: 7.574 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.005008, allocations: 0 / 271.4 MB, free: 7.574 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.527e-06/0.005011, allocations: 1.25 kB / 271.4 MB, free: 7.574 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.000422/0.005433, allocations: 432.1 kB / 271.8 MB, free: 7.113 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.005469, allocations: 8.031 kB / 271.8 MB, free: 7.105 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.302e-05/0.005512, allocations: 29.34 kB / 271.9 MB, free: 7.078 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001813/0.005693, allocations: 166.9 kB / 272 MB, free: 6.891 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.005705, allocations: 8.375 kB / 272 MB, free: 6.883 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.165e-05/0.005717, allocations: 4.375 kB / 272 MB, free: 6.879 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002709/0.005988, allocations: 179.7 kB / 272.2 MB, free: 6.68 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.005995, allocations: 192 / 272.2 MB, free: 6.68 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.065e-06/0.006003, allocations: 4.375 kB / 272.2 MB, free: 6.676 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.006008, allocations: 1.75 kB / 272.2 MB, free: 6.676 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.039e-05/0.006039, allocations: 23.86 kB / 272.2 MB, free: 6.652 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003421/0.006381, allocations: 400.3 kB / 272.6 MB, free: 6.227 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001354/0.006516, allocations: 109.4 kB / 272.7 MB, free: 6.082 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.155e-05/0.006578, allocations: 55.02 kB / 272.8 MB, free: 6.016 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.006595, allocations: 0.5312 kB / 272.8 MB, free: 6.016 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.692e-05/0.006622, allocations: 41.92 kB / 272.8 MB, free: 5.965 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.423e-06/0.006623, allocations: 0 / 272.8 MB, free: 5.965 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002369/0.00686, allocations: 114 kB / 272.9 MB, free: 5.848 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.195e-05/0.006922, allocations: 114.8 kB / 273 MB, free: 5.711 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001359/0.007058, allocations: 208.8 kB / 273.3 MB, free: 5.492 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.419e-05/0.007072, allocations: 33.64 kB / 273.3 MB, free: 5.453 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.554e-05/0.007138, allocations: 147.1 kB / 273.4 MB, free: 5.301 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.987e-06/0.007147, allocations: 0 / 273.4 MB, free: 5.301 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.192e-05/0.007179, allocations: 27.31 kB / 273.5 MB, free: 5.266 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.007289, allocations: 0.4923 MB / 273.9 MB, free: 4.762 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.935e-06/0.007297, allocations: 0 / 273.9 MB, free: 4.762 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.512e-05/0.007312, allocations: 19.38 kB / 274 MB, free: 4.734 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.033e-05/0.007343, allocations: 27.59 kB / 274 MB, free: 4.699 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.007344, allocations: 0 / 274 MB, free: 4.699 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.117e-05/0.007415, allocations: 49.58 kB / 274 MB, free: 4.645 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.007429, allocations: 4 kB / 274 MB, free: 4.641 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.007433, allocations: 0 / 274 MB, free: 4.641 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.091e-05/0.007444, allocations: 3.938 kB / 274 MB, free: 4.637 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.686e-05/0.007491, allocations: 4 kB / 274.1 MB, free: 4.633 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.997e-06/0.007495, allocations: 4 kB / 274.1 MB, free: 4.629 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.257e-05/0.007518, allocations: 64 / 274.1 MB, free: 4.629 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.007524, allocations: 7.984 kB / 274.1 MB, free: 4.621 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 9.191e-05/0.007616, allocations: 168.5 kB / 274.2 MB, free: 4.445 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001292/0.007745, allocations: 73.64 kB / 274.3 MB, free: 4.367 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.593e-05/0.007781, allocations: 12.78 kB / 274.3 MB, free: 4.352 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.007788, allocations: 11.88 kB / 274.3 MB, free: 4.34 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.00779, allocations: 0 / 274.3 MB, free: 4.34 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.007794, allocations: 0 / 274.3 MB, free: 4.34 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002117/0.008006, allocations: 121.1 kB / 274.4 MB, free: 4.195 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.00801, allocations: 4 kB / 274.4 MB, free: 4.191 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.008e-05/0.00809, allocations: 16 kB / 274.5 MB, free: 4.176 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.257e-06/0.008093, allocations: 4 kB / 274.5 MB, free: 4.172 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/0.008105, allocations: 15.98 kB / 274.5 MB, free: 4.156 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.008107, allocations: 0 / 274.5 MB, free: 4.156 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.008109, allocations: 0 / 274.5 MB, free: 4.156 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001671/0.008276, allocations: 326.6 kB / 274.8 MB, free: 3.812 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.843e-05/0.008324, allocations: 23.88 kB / 274.8 MB, free: 3.789 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.543e-05/0.00834, allocations: 4 kB / 274.8 MB, free: 3.785 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000108/0.008448, allocations: 7.984 kB / 274.8 MB, free: 3.777 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.733e-05/0.008475, allocations: 3.938 kB / 274.8 MB, free: 3.773 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/0.008484, allocations: 4 kB / 274.8 MB, free: 3.77 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.786e-05/0.008562, allocations: 155.2 kB / 275 MB, free: 3.617 MB / 250.7 MB Notification: Performance of sort global known variables: time 9e-08/0.008562, allocations: 0 / 275 MB, free: 3.617 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003122/0.008874, allocations: 11.95 kB / 275 MB, free: 3.605 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 0.0001122/0.008986, allocations: 99.25 kB / 275.1 MB, free: 3.5 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.62e-05/0.009082, allocations: 31.61 kB / 275.1 MB, free: 3.465 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.009084, allocations: 0 / 275.1 MB, free: 3.465 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.294e-05/0.009107, allocations: 23.75 kB / 275.2 MB, free: 3.438 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004378/0.009545, allocations: 34.83 kB / 275.2 MB, free: 3.406 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000409/0.009954, allocations: 238.7 kB / 275.4 MB, free: 3.133 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.844e-05/0.01001, allocations: 67.34 kB / 275.5 MB, free: 3.047 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.642e-05/0.01004, allocations: 11.94 kB / 275.5 MB, free: 3.035 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.073e-05/0.01011, allocations: 78.2 kB / 275.6 MB, free: 2.957 MB / 250.7 MB Notification: Performance of SimCode: time 6.91e-07/0.01011, allocations: 0 / 275.6 MB, free: 2.957 MB / 250.7 MB Notification: Performance of Templates: time 0.003929/0.01404, allocations: 1.014 MB / 276.6 MB, free: 1.969 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 -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.6938193682581186]