Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007896/0.0007896, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001887/0.002677, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007111/0.0007111, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001101/0.001812, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9589/0.9589, allocations: 177.5 MB / 190 MB, free: 4.766 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09278/1.052, allocations: 53.87 MB / 243.9 MB, free: 14.83 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.725e-06/2.725e-06, allocations: 3.984 kB / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.153e-05/2.426e-05, allocations: 2.312 kB / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.005384/0.005408, allocations: 1.721 MB / 246.9 MB, free: 11.82 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004556/0.005863, allocations: 195.2 kB / 247.1 MB, free: 11.62 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.268e-05/0.005956, allocations: 3.938 kB / 247.1 MB, free: 11.62 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.264e-05/0.006039, allocations: 7.875 kB / 247.1 MB, free: 11.61 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.708e-05/0.006136, allocations: 19.86 kB / 247.1 MB, free: 11.59 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000226/0.006362, allocations: 47.83 kB / 247.2 MB, free: 11.55 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000138/0.0065, allocations: 59.78 kB / 247.2 MB, free: 11.49 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001162/0.006616, allocations: 27.97 kB / 247.3 MB, free: 11.46 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.996e-05/0.006706, allocations: 55.88 kB / 247.3 MB, free: 11.41 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.744e-05/0.006803, allocations: 27.91 kB / 247.4 MB, free: 11.38 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.058e-05/0.006834, allocations: 4 kB / 247.4 MB, free: 11.38 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.661e-05/0.006851, allocations: 7.938 kB / 247.4 MB, free: 11.37 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.907e-05/0.0069, allocations: 23.94 kB / 247.4 MB, free: 11.34 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.786e-05/0.006938, allocations: 19.88 kB / 247.4 MB, free: 11.32 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001516/0.007089, allocations: 63.69 kB / 247.5 MB, free: 11.26 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.109e-05/0.0071, allocations: 0 / 247.5 MB, free: 11.26 MB / 250.7 MB Notification: Performance of FrontEnd: time 0.003013/0.01011, allocations: 0 / 247.5 MB, free: 11.26 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.998e-05/0.01013, allocations: 0 / 247.5 MB, free: 11.26 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.0005566/0.01069, allocations: 320.1 kB / 247.8 MB, free: 10.92 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.01073, allocations: 16.03 kB / 247.8 MB, free: 10.91 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.096e-05/0.01078, allocations: 16.92 kB / 247.8 MB, free: 10.89 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000216/0.011, allocations: 149.4 kB / 248 MB, free: 10.72 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.217e-05/0.01101, allocations: 8.312 kB / 248 MB, free: 10.71 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.003e-05/0.01103, allocations: 12.38 kB / 248 MB, free: 10.7 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003104/0.01134, allocations: 160.7 kB / 248.1 MB, free: 10.52 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.01135, allocations: 4.188 kB / 248.1 MB, free: 10.51 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.425e-06/0.01136, allocations: 384 / 248.1 MB, free: 10.51 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.01136, allocations: 384 / 248.1 MB, free: 10.51 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.258e-05/0.0114, allocations: 30.69 kB / 248.2 MB, free: 10.48 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003147/0.01172, allocations: 264 kB / 248.4 MB, free: 10.2 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001264/0.01185, allocations: 90.59 kB / 248.5 MB, free: 10.08 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.358e-05/0.0119, allocations: 42.69 kB / 248.6 MB, free: 10.03 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.194e-05/0.01192, allocations: 4 kB / 248.6 MB, free: 10.03 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.923e-05/0.01195, allocations: 42.5 kB / 248.6 MB, free: 9.977 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.413e-06/0.01195, allocations: 0 / 248.6 MB, free: 9.977 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.00021/0.01216, allocations: 85.55 kB / 248.7 MB, free: 9.887 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.233e-05/0.01222, allocations: 118.7 kB / 248.8 MB, free: 9.746 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.01233, allocations: 151.8 kB / 249 MB, free: 9.586 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.233e-05/0.01236, allocations: 33.7 kB / 249 MB, free: 9.547 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.222e-05/0.0124, allocations: 80.42 kB / 249.1 MB, free: 9.461 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.461e-05/0.01242, allocations: 7.984 kB / 249.1 MB, free: 9.453 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.677e-05/0.01245, allocations: 25.66 kB / 249.1 MB, free: 9.422 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.529e-05/0.01255, allocations: 319.1 kB / 249.4 MB, free: 9.102 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.305e-06/0.01256, allocations: 4 kB / 249.4 MB, free: 9.098 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.664e-05/0.01257, allocations: 13.72 kB / 249.4 MB, free: 9.078 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.146e-05/0.01261, allocations: 21.64 kB / 249.5 MB, free: 9.051 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.01261, allocations: 0 / 249.5 MB, free: 9.051 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.51e-05/0.01267, allocations: 41.69 kB / 249.5 MB, free: 9.004 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.01269, allocations: 8 kB / 249.5 MB, free: 8.996 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.01269, allocations: 3.984 kB / 249.5 MB, free: 8.992 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.0127, allocations: 8 kB / 249.5 MB, free: 8.984 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.247e-05/0.01277, allocations: 11.94 kB / 249.5 MB, free: 8.973 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.605e-06/0.01277, allocations: 0 / 249.5 MB, free: 8.973 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.265e-05/0.01279, allocations: 4 kB / 249.5 MB, free: 8.969 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.146e-06/0.0128, allocations: 3.984 kB / 249.5 MB, free: 8.965 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 0.003145/0.01595, allocations: 120.6 kB / 249.6 MB, free: 8.836 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001667/0.01611, allocations: 57.69 kB / 249.7 MB, free: 8.773 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.171e-05/0.01616, allocations: 20.77 kB / 249.7 MB, free: 8.754 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.01617, allocations: 7.875 kB / 249.7 MB, free: 8.746 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.01617, allocations: 4 kB / 249.7 MB, free: 8.742 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.01618, allocations: 0 / 249.7 MB, free: 8.742 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002069/0.01638, allocations: 81.88 kB / 249.8 MB, free: 8.645 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.01639, allocations: 0 / 249.8 MB, free: 8.645 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001022/0.01649, allocations: 23.98 kB / 249.8 MB, free: 8.621 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.725e-05/0.01655, allocations: 27.83 kB / 249.9 MB, free: 8.594 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.01655, allocations: 0 / 249.9 MB, free: 8.594 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.234e-06/0.01656, allocations: 4 kB / 249.9 MB, free: 8.59 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.01656, allocations: 0 / 249.9 MB, free: 8.59 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.01656, allocations: 3.938 kB / 249.9 MB, free: 8.586 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001407/0.0167, allocations: 222.5 kB / 250.1 MB, free: 8.348 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.471e-05/0.01672, allocations: 4 kB / 250.1 MB, free: 8.344 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001049/0.01682, allocations: 4.031 kB / 250.1 MB, free: 8.34 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.398e-05/0.01686, allocations: 11.92 kB / 250.1 MB, free: 8.328 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.466e-06/0.01686, allocations: 4 kB / 250.1 MB, free: 8.324 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.749e-05/0.01691, allocations: 30.25 kB / 250.1 MB, free: 8.293 MB / 250.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01691, allocations: 4 kB / 250.1 MB, free: 8.289 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002527/0.01717, allocations: 12 kB / 250.2 MB, free: 8.277 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.000139/0.0173, allocations: 83.78 kB / 250.2 MB, free: 8.191 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.009e-05/0.01739, allocations: 32.73 kB / 250.3 MB, free: 8.156 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.0174, allocations: 0 / 250.3 MB, free: 8.156 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.051e-05/0.01742, allocations: 16.84 kB / 250.3 MB, free: 8.137 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004471/0.01787, allocations: 168.4 kB / 250.5 MB, free: 7.949 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005873/0.01845, allocations: 223.5 kB / 250.7 MB, free: 7.699 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.091e-05/0.01851, allocations: 71.2 kB / 250.7 MB, free: 7.609 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.726e-05/0.01854, allocations: 8.359 kB / 250.8 MB, free: 7.602 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.857e-05/0.01862, allocations: 59.38 kB / 250.8 MB, free: 7.543 MB / 250.7 MB Notification: Performance of SimCode: time 1.162e-06/0.01862, allocations: 0 / 250.8 MB, free: 7.543 MB / 250.7 MB Notification: Performance of Templates: time 0.01033/0.02895, allocations: 1.011 MB / 251.8 MB, free: 6.551 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.3057925971224904]