Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001675/0.001675, allocations: 81.97 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002093/0.002093, allocations: 168.7 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9554/0.9554, allocations: 177.1 MB / 206 MB, free: 4.477 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 3.938 kB / 274.2 MB, free: 4.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.287e-05/2.431e-05, allocations: 3.844 kB / 274.2 MB, free: 4.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.002362/0.002386, allocations: 1.651 MB / 275.8 MB, free: 2.777 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004291/0.002815, allocations: 188.2 kB / 276 MB, free: 2.594 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.708e-05/0.002902, allocations: 0 / 276 MB, free: 2.594 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001093/0.003012, allocations: 11.86 kB / 276 MB, free: 2.582 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001266/0.003138, allocations: 16.56 kB / 276 MB, free: 2.566 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001881/0.003326, allocations: 51.83 kB / 276.1 MB, free: 2.516 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001125/0.003439, allocations: 69.69 kB / 276.2 MB, free: 2.449 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001105/0.003549, allocations: 27.92 kB / 276.2 MB, free: 2.422 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.74e-05/0.003607, allocations: 39.89 kB / 276.2 MB, free: 2.383 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.322e-05/0.00369, allocations: 27.91 kB / 276.3 MB, free: 2.355 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.256e-05/0.003712, allocations: 4 kB / 276.3 MB, free: 2.352 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.459e-05/0.003727, allocations: 8.594 kB / 276.3 MB, free: 2.344 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.181e-05/0.003769, allocations: 27.91 kB / 276.3 MB, free: 2.316 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.07e-05/0.0038, allocations: 20.98 kB / 276.3 MB, free: 2.297 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001161/0.003916, allocations: 67.73 kB / 276.4 MB, free: 2.23 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.365e-06/0.003918, allocations: 1.344 kB / 276.4 MB, free: 2.23 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.003919, allocations: 0 / 276.4 MB, free: 2.23 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.429e-06/0.003923, allocations: 3.938 kB / 276.4 MB, free: 2.227 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.0003785/0.004302, allocations: 436 kB / 276.8 MB, free: 1.762 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.256e-05/0.004335, allocations: 12.03 kB / 276.8 MB, free: 1.75 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.702e-05/0.004372, allocations: 20.89 kB / 276.8 MB, free: 1.73 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001613/0.004533, allocations: 152.3 kB / 277 MB, free: 1.555 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.979e-06/0.004543, allocations: 4.375 kB / 277 MB, free: 1.551 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.019e-05/0.004553, allocations: 12.38 kB / 277 MB, free: 1.539 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000221/0.004774, allocations: 183.3 kB / 277.2 MB, free: 1.332 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.004782, allocations: 4.188 kB / 277.2 MB, free: 1.328 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.656e-06/0.00479, allocations: 8.375 kB / 277.2 MB, free: 1.32 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.004796, allocations: 384 / 277.2 MB, free: 1.32 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.989e-05/0.004826, allocations: 23.86 kB / 277.2 MB, free: 1.297 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002669/0.005093, allocations: 391 kB / 277.6 MB, free: 0.8789 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001047/0.005198, allocations: 113.1 kB / 277.7 MB, free: 0.7305 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.511e-05/0.005243, allocations: 55.3 kB / 277.8 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.507e-05/0.005258, allocations: 0 / 277.8 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/0.005281, allocations: 41.39 kB / 277.8 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 9.62e-07/0.005282, allocations: 0 / 277.8 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001811/0.005463, allocations: 105.4 kB / 277.9 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.602e-05/0.005519, allocations: 111.2 kB / 278 MB, free: 380 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.993e-05/0.005619, allocations: 212.6 kB / 278.2 MB, free: 152 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.13e-05/0.00563, allocations: 33.7 kB / 278.3 MB, free: 112 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.408e-05/0.005694, allocations: 143.1 kB / 278.4 MB, free: 15.96 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.869e-06/0.005704, allocations: 7.953 kB / 278.4 MB, free: 15.95 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.974e-05/0.005734, allocations: 27.36 kB / 278.4 MB, free: 15.92 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.005845, allocations: 0.4886 MB / 278.9 MB, free: 15.42 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.575e-06/0.005853, allocations: 4 kB / 278.9 MB, free: 15.41 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.637e-05/0.005869, allocations: 23.31 kB / 279 MB, free: 15.38 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.659e-05/0.005896, allocations: 23.36 kB / 279 MB, free: 15.35 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.005898, allocations: 0 / 279 MB, free: 15.35 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.369e-05/0.005951, allocations: 49.59 kB / 279 MB, free: 15.3 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.035e-05/0.005962, allocations: 4 kB / 279 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.227e-06/0.005966, allocations: 0 / 279 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.036e-05/0.005976, allocations: 4.062 kB / 279 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.581e-05/0.006022, allocations: 8 kB / 279 MB, free: 15.28 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.887e-06/0.006026, allocations: 4 kB / 279 MB, free: 15.28 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.479e-05/0.006041, allocations: 3.984 kB / 279 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.979e-06/0.006046, allocations: 0 / 279 MB, free: 15.27 MB / 266.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.872e-05/0.006114, allocations: 160.6 kB / 279.2 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.796e-05/0.006192, allocations: 77.52 kB / 279.3 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.925e-05/0.006222, allocations: 16.78 kB / 279.3 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.006225, allocations: 7.938 kB / 279.3 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.522e-06/0.006227, allocations: 0 / 279.3 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.006233, allocations: 3.984 kB / 279.3 MB, free: 14.99 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001318/0.006365, allocations: 125.1 kB / 279.4 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-06/0.006367, allocations: 4 kB / 279.4 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.824e-05/0.006425, allocations: 23.92 kB / 279.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.006427, allocations: 0 / 279.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.142e-06/0.006433, allocations: 4 kB / 279.5 MB, free: 14.81 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.006434, allocations: 0 / 279.5 MB, free: 14.81 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.006436, allocations: 4 kB / 279.5 MB, free: 14.81 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001296/0.006566, allocations: 326.7 kB / 279.8 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.362e-05/0.0066, allocations: 19.91 kB / 279.8 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.039e-05/0.00661, allocations: 7.922 kB / 279.8 MB, free: 14.44 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.386e-05/0.006664, allocations: 12.03 kB / 279.8 MB, free: 14.43 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.312e-05/0.006687, allocations: 7.875 kB / 279.8 MB, free: 14.42 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.989e-06/0.006692, allocations: 4 kB / 279.8 MB, free: 14.41 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.765e-05/0.00674, allocations: 150.4 kB / 280 MB, free: 14.27 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00674, allocations: 4 kB / 280 MB, free: 14.27 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001576/0.006897, allocations: 8 kB / 280 MB, free: 14.26 MB / 266.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.533e-05/0.006983, allocations: 102.6 kB / 280.1 MB, free: 14.15 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.555e-05/0.007058, allocations: 43.55 kB / 280.1 MB, free: 14.11 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.00706, allocations: 0 / 280.1 MB, free: 14.11 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.297e-05/0.007073, allocations: 11.69 kB / 280.1 MB, free: 14.09 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000298/0.007371, allocations: 54.48 kB / 280.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002961/0.007667, allocations: 234.7 kB / 280.4 MB, free: 13.77 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.573e-05/0.007712, allocations: 71.33 kB / 280.5 MB, free: 13.68 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.655e-05/0.007729, allocations: 4 kB / 280.5 MB, free: 13.68 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.873e-05/0.007788, allocations: 86.44 kB / 280.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of SimCode: time 6.82e-07/0.007788, allocations: 4 kB / 280.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of Templates: time 0.002759/0.01055, allocations: 0.9949 MB / 281.6 MB, free: 12.62 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.5804614103399217]