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.001134/0.001134, allocations: 78.19 kB / 21.42 MB, free: 3.078 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.00728/0.00728, allocations: 152.4 kB / 24.81 MB, free: 8.879 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.9454/0.9454, allocations: 173.4 MB / 201.5 MB, free: 8.309 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.342e-06/1.342e-06, allocations: 0 / 268.4 MB, free: 9.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.278e-05/1.413e-05, allocations: 2.312 kB / 268.4 MB, free: 9.766 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.001819/0.001834, allocations: 1.649 MB / 270.1 MB, free: 8.117 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003322/0.002166, allocations: 181.1 kB / 270.2 MB, free: 7.941 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.578e-05/0.002242, allocations: 4 kB / 270.2 MB, free: 7.938 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.206e-05/0.002334, allocations: 11.86 kB / 270.3 MB, free: 7.926 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.957e-05/0.002433, allocations: 19.81 kB / 270.3 MB, free: 7.906 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001639/0.002597, allocations: 49.16 kB / 270.3 MB, free: 7.859 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.92e-05/0.002696, allocations: 71.77 kB / 270.4 MB, free: 7.789 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.212e-05/0.002788, allocations: 23.92 kB / 270.4 MB, free: 7.766 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.838e-05/0.002837, allocations: 35.91 kB / 270.4 MB, free: 7.73 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.932e-05/0.002906, allocations: 32.52 kB / 270.5 MB, free: 7.699 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.019e-05/0.002926, allocations: 8.594 kB / 270.5 MB, free: 7.691 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.068e-05/0.002937, allocations: 4 kB / 270.5 MB, free: 7.688 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.367e-05/0.002971, allocations: 21.27 kB / 270.5 MB, free: 7.668 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.781e-05/0.002998, allocations: 27.91 kB / 270.5 MB, free: 7.641 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001002/0.003099, allocations: 63.75 kB / 270.6 MB, free: 7.578 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.753e-06/0.0031, allocations: 0 / 270.6 MB, free: 7.578 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.003101, allocations: 4.969 kB / 270.6 MB, free: 7.574 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.917e-06/0.003105, allocations: 0 / 270.6 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.000316/0.003421, allocations: 433.7 kB / 271 MB, free: 7.113 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.956e-05/0.003451, allocations: 8.031 kB / 271 MB, free: 7.105 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.887e-05/0.003479, allocations: 20.84 kB / 271.1 MB, free: 7.086 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001231/0.003602, allocations: 164.7 kB / 271.2 MB, free: 6.898 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.295e-06/0.003611, allocations: 8.375 kB / 271.2 MB, free: 6.891 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.634e-06/0.003618, allocations: 5.25 kB / 271.2 MB, free: 6.887 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001936/0.003812, allocations: 184.5 kB / 271.4 MB, free: 6.68 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.691e-06/0.003818, allocations: 192 / 271.4 MB, free: 6.68 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.831e-06/0.003823, allocations: 1.719 kB / 271.4 MB, free: 6.68 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.003828, allocations: 4.375 kB / 271.4 MB, free: 6.676 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.589e-05/0.003854, allocations: 23.8 kB / 271.4 MB, free: 6.652 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002223/0.004077, allocations: 396.9 kB / 271.8 MB, free: 6.23 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.594e-05/0.004163, allocations: 117.1 kB / 271.9 MB, free: 6.078 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.701e-05/0.0042, allocations: 47.3 kB / 272 MB, free: 6.02 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.004216, allocations: 8.859 kB / 272 MB, free: 6.012 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.926e-05/0.004235, allocations: 41.39 kB / 272 MB, free: 5.961 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.222e-06/0.004236, allocations: 0.5 kB / 272 MB, free: 5.961 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001505/0.004387, allocations: 105.4 kB / 272.1 MB, free: 5.852 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.123e-05/0.004428, allocations: 110.8 kB / 272.3 MB, free: 5.719 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002496/0.004678, allocations: 216.8 kB / 272.5 MB, free: 5.492 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.768e-06/0.004687, allocations: 25.7 kB / 272.5 MB, free: 5.461 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.9e-05/0.004736, allocations: 147.1 kB / 272.6 MB, free: 5.309 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.464e-06/0.004744, allocations: 0 / 272.6 MB, free: 5.309 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.108e-05/0.004775, allocations: 35.3 kB / 272.7 MB, free: 5.266 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.004882, allocations: 0.4884 MB / 273.2 MB, free: 4.766 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.764e-06/0.00489, allocations: 3.938 kB / 273.2 MB, free: 4.762 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.49e-05/0.004905, allocations: 19.62 kB / 273.2 MB, free: 4.734 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.332e-05/0.004928, allocations: 31.42 kB / 273.2 MB, free: 4.695 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.00493, allocations: 0 / 273.2 MB, free: 4.695 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.538e-05/0.004975, allocations: 41.59 kB / 273.2 MB, free: 4.648 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.132e-05/0.004986, allocations: 8 kB / 273.3 MB, free: 4.641 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.446e-06/0.00499, allocations: 0 / 273.3 MB, free: 4.641 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.726e-06/0.004999, allocations: 3.938 kB / 273.3 MB, free: 4.637 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.284e-05/0.005031, allocations: 4 kB / 273.3 MB, free: 4.633 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.216e-06/0.005035, allocations: 3.984 kB / 273.3 MB, free: 4.629 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.422e-05/0.005049, allocations: 8.062 kB / 273.3 MB, free: 4.621 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.586e-06/0.005053, allocations: 0 / 273.3 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 5.955e-05/0.005112, allocations: 160.6 kB / 273.4 MB, free: 4.453 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.187e-05/0.005184, allocations: 73.58 kB / 273.5 MB, free: 4.375 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.747e-05/0.005211, allocations: 16.78 kB / 273.5 MB, free: 4.355 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-06/0.005215, allocations: 7.938 kB / 273.5 MB, free: 4.348 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-06/0.005216, allocations: 0 / 273.5 MB, free: 4.348 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.005221, allocations: 3.984 kB / 273.5 MB, free: 4.344 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000119/0.00534, allocations: 121.1 kB / 273.7 MB, free: 4.199 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.005341, allocations: 0 / 273.7 MB, free: 4.199 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.031e-05/0.005391, allocations: 39.92 kB / 273.7 MB, free: 4.16 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.005393, allocations: 0 / 273.7 MB, free: 4.16 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.428e-06/0.005397, allocations: 0 / 273.7 MB, free: 4.16 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.005399, allocations: 4 kB / 273.7 MB, free: 4.156 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.0054, allocations: 0 / 273.7 MB, free: 4.156 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001012/0.005501, allocations: 322.7 kB / 274 MB, free: 3.816 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.914e-05/0.00553, allocations: 23.81 kB / 274 MB, free: 3.793 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.13e-05/0.005541, allocations: 8 kB / 274 MB, free: 3.785 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.964e-05/0.005591, allocations: 0 / 274 MB, free: 3.785 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.95e-05/0.00561, allocations: 7.938 kB / 274 MB, free: 3.777 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-06/0.005614, allocations: 4.031 kB / 274.1 MB, free: 3.773 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.383e-05/0.005658, allocations: 151.1 kB / 274.2 MB, free: 3.625 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005658, allocations: 0 / 274.2 MB, free: 3.625 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001579/0.005816, allocations: 11.95 kB / 274.2 MB, free: 3.613 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 6.7e-05/0.005883, allocations: 106.3 kB / 274.3 MB, free: 3.504 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 5.827e-05/0.005941, allocations: 31.61 kB / 274.3 MB, free: 3.469 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.21e-07/0.005942, allocations: 0 / 274.3 MB, free: 3.469 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.089e-05/0.005953, allocations: 15.81 kB / 274.4 MB, free: 3.449 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002629/0.006216, allocations: 46.75 kB / 274.4 MB, free: 3.406 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002449/0.006461, allocations: 234.7 kB / 274.6 MB, free: 3.137 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.961e-05/0.0065, allocations: 71.33 kB / 274.7 MB, free: 3.047 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.49e-05/0.006515, allocations: 7.953 kB / 274.7 MB, free: 3.039 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.838e-05/0.006564, allocations: 78.19 kB / 274.8 MB, free: 2.961 MB / 250.7 MB Notification: Performance of SimCode: time 6.41e-07/0.006564, allocations: 0 / 274.8 MB, free: 2.961 MB / 250.7 MB Notification: Performance of Templates: time 0.002215/0.008779, allocations: 0.9981 MB / 275.8 MB, free: 1.984 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.6467337822541595]