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.001302/0.001302, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.0009499/0.0009499, allocations: 147.4 kB / 24.89 MB, free: 8.742 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.9601/0.9601, allocations: 173.4 MB / 201.5 MB, free: 8.73 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.163e-06/1.163e-06, allocations: 0 / 268.5 MB, free: 6.035 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.085e-05/2.201e-05, allocations: 10.05 kB / 268.5 MB, free: 6.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.002093/0.002115, allocations: 1.647 MB / 270.1 MB, free: 4.367 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004035/0.002518, allocations: 191.1 kB / 270.3 MB, free: 4.18 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.022e-05/0.002588, allocations: 7.938 kB / 270.3 MB, free: 4.172 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.596e-05/0.002674, allocations: 11.86 kB / 270.3 MB, free: 4.16 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.674e-05/0.002771, allocations: 15.86 kB / 270.3 MB, free: 4.145 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001755/0.002947, allocations: 43.83 kB / 270.4 MB, free: 4.102 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.697e-05/0.003044, allocations: 67.84 kB / 270.4 MB, free: 4.035 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.324e-05/0.003127, allocations: 27.91 kB / 270.5 MB, free: 4.008 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.895e-05/0.003176, allocations: 43.89 kB / 270.5 MB, free: 3.965 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.768e-05/0.003244, allocations: 27.89 kB / 270.5 MB, free: 3.938 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.994e-05/0.003263, allocations: 8 kB / 270.6 MB, free: 3.93 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.959e-06/0.003273, allocations: 4 kB / 270.6 MB, free: 3.926 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.844e-05/0.003312, allocations: 31.84 kB / 270.6 MB, free: 3.895 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.018e-05/0.003342, allocations: 15.94 kB / 270.6 MB, free: 3.879 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001039/0.003446, allocations: 67.69 kB / 270.7 MB, free: 3.812 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.003448, allocations: 0 / 270.7 MB, free: 3.812 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.62e-07/0.003449, allocations: 4 kB / 270.7 MB, free: 3.809 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.347e-06/0.003452, allocations: 0 / 270.7 MB, free: 3.809 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.0002902/0.003742, allocations: 308.4 kB / 271 MB, free: 3.48 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.798e-05/0.00377, allocations: 8.031 kB / 271 MB, free: 3.473 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.932e-05/0.0038, allocations: 12.94 kB / 271 MB, free: 3.461 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000142/0.003942, allocations: 165.2 kB / 271.2 MB, free: 3.273 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.365e-06/0.00395, allocations: 8.375 kB / 271.2 MB, free: 3.266 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.098e-05/0.003961, allocations: 8.375 kB / 271.2 MB, free: 3.258 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002035/0.004165, allocations: 175.1 kB / 271.3 MB, free: 3.066 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.004172, allocations: 192 / 271.3 MB, free: 3.066 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.356e-06/0.00418, allocations: 384 / 271.3 MB, free: 3.066 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.219e-06/0.004185, allocations: 4.375 kB / 271.3 MB, free: 3.062 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.006e-05/0.004215, allocations: 30.69 kB / 271.4 MB, free: 3.031 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002212/0.004436, allocations: 248.1 kB / 271.6 MB, free: 2.766 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.7e-05/0.004523, allocations: 94.72 kB / 271.7 MB, free: 2.645 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.606e-05/0.00456, allocations: 46.56 kB / 271.8 MB, free: 2.59 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.469e-05/0.004574, allocations: 0 / 271.8 MB, free: 2.59 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.984e-05/0.004594, allocations: 42.53 kB / 271.8 MB, free: 2.539 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.323e-06/0.004595, allocations: 0 / 271.8 MB, free: 2.539 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.000138/0.004733, allocations: 89.48 kB / 271.9 MB, free: 2.445 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.749e-05/0.004781, allocations: 114.8 kB / 272 MB, free: 2.309 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.541e-05/0.004856, allocations: 149.5 kB / 272.1 MB, free: 2.152 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.149e-05/0.004868, allocations: 29.7 kB / 272.2 MB, free: 2.117 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.213e-05/0.0049, allocations: 96.34 kB / 272.3 MB, free: 2.016 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.784e-06/0.004908, allocations: 4.25 kB / 272.3 MB, free: 2.012 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.58e-05/0.004934, allocations: 25.66 kB / 272.3 MB, free: 1.98 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.132e-05/0.005005, allocations: 314.8 kB / 272.6 MB, free: 1.664 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.711e-06/0.005011, allocations: 0 / 272.6 MB, free: 1.664 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.217e-05/0.005023, allocations: 17.7 kB / 272.6 MB, free: 1.641 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.025e-05/0.005043, allocations: 13.72 kB / 272.6 MB, free: 1.621 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.005046, allocations: 11.94 kB / 272.6 MB, free: 1.609 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.191e-05/0.005088, allocations: 45.62 kB / 272.7 MB, free: 1.559 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.064e-05/0.005099, allocations: 8.125 kB / 272.7 MB, free: 1.551 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.387e-06/0.005102, allocations: 0 / 272.7 MB, free: 1.551 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.997e-06/0.005111, allocations: 3.938 kB / 272.7 MB, free: 1.547 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.744e-05/0.005149, allocations: 7.984 kB / 272.7 MB, free: 1.539 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.527e-06/0.005152, allocations: 4 kB / 272.7 MB, free: 1.535 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.38e-05/0.005166, allocations: 0 / 272.7 MB, free: 1.535 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.047e-06/0.00517, allocations: 0 / 272.7 MB, free: 1.535 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.538e-05/0.005235, allocations: 116.6 kB / 272.8 MB, free: 1.41 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.397e-05/0.005299, allocations: 61.67 kB / 272.9 MB, free: 1.344 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.849e-05/0.005328, allocations: 16.78 kB / 272.9 MB, free: 1.324 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.005331, allocations: 7.938 kB / 272.9 MB, free: 1.316 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-06/0.005332, allocations: 4 kB / 272.9 MB, free: 1.312 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.005336, allocations: 3.984 kB / 272.9 MB, free: 1.309 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001177/0.005454, allocations: 89.8 kB / 273 MB, free: 1.203 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.005456, allocations: 0 / 273 MB, free: 1.203 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.001e-05/0.005506, allocations: 23.92 kB / 273 MB, free: 1.18 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.005508, allocations: 4 kB / 273 MB, free: 1.176 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.304e-06/0.005515, allocations: 4 kB / 273 MB, free: 1.172 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.005517, allocations: 0 / 273 MB, free: 1.172 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-07/0.005517, allocations: 4 kB / 273 MB, free: 1.168 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.537e-05/0.005603, allocations: 226.4 kB / 273.3 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.23e-05/0.005635, allocations: 23.89 kB / 273.3 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.887e-06/0.005644, allocations: 0 / 273.3 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.02e-05/0.005694, allocations: 4 kB / 273.3 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.782e-05/0.005712, allocations: 3.938 kB / 273.3 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.721e-06/0.005717, allocations: 8 kB / 273.3 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.413e-05/0.005742, allocations: 35.86 kB / 273.3 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005742, allocations: 0 / 273.3 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001398/0.005881, allocations: 12 kB / 273.3 MB, free: 0.8398 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 7.357e-05/0.005955, allocations: 84.45 kB / 273.4 MB, free: 0.75 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 5.932e-05/0.006014, allocations: 32.7 kB / 273.5 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.006018, allocations: 8 kB / 273.5 MB, free: 0.707 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.044e-05/0.006028, allocations: 12.8 kB / 273.5 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002274/0.006256, allocations: 37.66 kB / 273.5 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002594/0.006515, allocations: 231.3 kB / 273.7 MB, free: 404 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.96e-05/0.006555, allocations: 71.58 kB / 273.8 MB, free: 312 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.685e-05/0.006572, allocations: 12 kB / 273.8 MB, free: 300 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.897e-05/0.006621, allocations: 59.36 kB / 273.9 MB, free: 240 kB / 250.7 MB Notification: Performance of SimCode: time 5.71e-07/0.006621, allocations: 0 / 273.9 MB, free: 240 kB / 250.7 MB Notification: Performance of Templates: time 0.002286/0.008908, allocations: 0.9846 MB / 274.9 MB, free: 15.26 MB / 266.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.4195239790715277]