Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.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.001662/0.001662, 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.001933/0.001933, allocations: 151.3 kB / 24.81 MB, free: 9.34 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 1.043/1.043, allocations: 173.3 MB / 201.4 MB, free: 9.195 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.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5034,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5034,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.114e-06/2.114e-06, allocations: 0 / 268.4 MB, free: 6.188 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.024e-05/3.235e-05, allocations: 6.25 kB / 268.4 MB, free: 6.18 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003941/0.003973, allocations: 1.979 MB / 270.4 MB, free: 4.184 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002094/0.006067, allocations: 1.168 MB / 271.6 MB, free: 3.008 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001597/0.006227, allocations: 7.938 kB / 271.6 MB, free: 3 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000342/0.006569, allocations: 59.66 kB / 271.6 MB, free: 2.941 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003069/0.006876, allocations: 111.4 kB / 271.7 MB, free: 2.832 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008119/0.007688, allocations: 302.9 kB / 272 MB, free: 2.535 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003051/0.007993, allocations: 215.4 kB / 272.2 MB, free: 2.324 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/0.008116, allocations: 33.8 kB / 272.3 MB, free: 2.289 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001888/0.008305, allocations: 127.6 kB / 272.4 MB, free: 2.164 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001665/0.008471, allocations: 91.77 kB / 272.5 MB, free: 2.074 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.326e-05/0.008505, allocations: 12 kB / 272.5 MB, free: 2.062 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001843/0.008689, allocations: 75.88 kB / 272.6 MB, free: 1.988 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.219e-05/0.008781, allocations: 71.75 kB / 272.6 MB, free: 1.918 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.763e-05/0.008849, allocations: 47.78 kB / 272.7 MB, free: 1.871 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003877/0.009236, allocations: 235.1 kB / 272.9 MB, free: 1.641 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.155e-06/0.00924, allocations: 4 kB / 272.9 MB, free: 1.637 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.009241, allocations: 0 / 272.9 MB, free: 1.637 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.009246, allocations: 0 / 272.9 MB, free: 1.637 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007738/0.01002, allocations: 0.606 MB / 273.5 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.01006, allocations: 8.031 kB / 273.5 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.931e-05/0.01014, allocations: 40.75 kB / 273.6 MB, free: 0.9414 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002944/0.01043, allocations: 248.6 kB / 273.8 MB, free: 0.6758 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.387e-05/0.01045, allocations: 8.375 kB / 273.8 MB, free: 0.668 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.977e-05/0.01047, allocations: 16.38 kB / 273.8 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004015/0.01088, allocations: 265 kB / 274.1 MB, free: 372 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.01089, allocations: 7.875 kB / 274.1 MB, free: 364 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.313e-05/0.0109, allocations: 4 kB / 274.1 MB, free: 360 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.01091, allocations: 4 kB / 274.1 MB, free: 356 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.54e-05/0.01099, allocations: 27.97 kB / 274.1 MB, free: 328 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004248/0.01141, allocations: 339.6 kB / 274.5 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00023/0.01164, allocations: 161.5 kB / 274.6 MB, free: 15.76 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.571e-05/0.01173, allocations: 75.09 kB / 274.7 MB, free: 15.67 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.571e-05/0.01175, allocations: 4 kB / 274.7 MB, free: 15.67 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001134/0.01187, allocations: 72.98 kB / 274.8 MB, free: 15.58 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.913e-06/0.01187, allocations: 0 / 274.8 MB, free: 15.58 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003417/0.01221, allocations: 181.8 kB / 275 MB, free: 15.4 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.447e-05/0.01228, allocations: 126.9 kB / 275.1 MB, free: 15.25 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002759/0.01256, allocations: 330.1 kB / 275.4 MB, free: 14.91 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.414e-05/0.01258, allocations: 29.7 kB / 275.4 MB, free: 14.87 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.01269, allocations: 187.3 kB / 275.6 MB, free: 14.68 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.429e-05/0.01273, allocations: 31.77 kB / 275.6 MB, free: 14.65 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.028e-05/0.0128, allocations: 43.34 kB / 275.7 MB, free: 14.6 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.01298, allocations: 0.5156 MB / 276.2 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.665e-05/0.01301, allocations: 15.98 kB / 276.2 MB, free: 14.06 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.692e-05/0.0131, allocations: 105.5 kB / 276.3 MB, free: 13.92 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001032/0.0132, allocations: 94.06 kB / 276.4 MB, free: 13.8 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.0132, allocations: 0 / 276.4 MB, free: 13.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001993/0.0134, allocations: 125.3 kB / 276.5 MB, free: 13.68 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.01342, allocations: 6.812 kB / 276.5 MB, free: 13.67 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.01343, allocations: 4 kB / 276.5 MB, free: 13.67 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.01344, allocations: 4.156 kB / 276.5 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.96e-05/0.01353, allocations: 19.92 kB / 276.6 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.01354, allocations: 4 kB / 276.6 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.481e-05/0.0136, allocations: 11.95 kB / 276.6 MB, free: 13.63 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/0.01361, allocations: 4 kB / 276.6 MB, free: 13.62 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$CLKPRE.upSample2.b_super,upSample2.b_super,$CLKPRE.upSample1.b_super,upSample1.b_super,$CLKPRE.upSample2.b,upSample2.b,$CLKPRE.upSample1.b,upSample1.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001176/0.01373, allocations: 176.4 kB / 276.8 MB, free: 13.44 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001612/0.01389, allocations: 121.7 kB / 276.9 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001748/0.01407, allocations: 111.5 kB / 277 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.01407, allocations: 0 / 277 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.01407, allocations: 8 kB / 277 MB, free: 13.19 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.371e-06/0.01408, allocations: 3.984 kB / 277 MB, free: 13.19 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001674/0.01425, allocations: 153.2 kB / 277.1 MB, free: 13.01 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.01425, allocations: 4 kB / 277.2 MB, free: 13.01 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.01435, allocations: 27.92 kB / 277.2 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.01436, allocations: 7.938 kB / 277.2 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.35e-05/0.01437, allocations: 8.125 kB / 277.2 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.01438, allocations: 4 kB / 277.2 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.01438, allocations: 3.984 kB / 277.2 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001735/0.01455, allocations: 147.6 kB / 277.3 MB, free: 12.78 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.66e-05/0.01464, allocations: 55.66 kB / 277.4 MB, free: 12.73 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.286e-05/0.01467, allocations: 15.92 kB / 277.4 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.369e-05/0.01474, allocations: 8 kB / 277.4 MB, free: 12.7 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.052e-05/0.01478, allocations: 11.98 kB / 277.4 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.769e-05/0.01479, allocations: 4 kB / 277.4 MB, free: 12.69 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001502/0.01494, allocations: 215 kB / 277.7 MB, free: 12.48 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01494, allocations: 0 / 277.7 MB, free: 12.48 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002922/0.01524, allocations: 47.92 kB / 277.7 MB, free: 12.43 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: 20 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001196/0.01643, allocations: 408.5 kB / 278.1 MB, free: 12.16 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001755/0.01661, allocations: 83.19 kB / 278.2 MB, free: 12.08 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.01661, allocations: 4.062 kB / 278.2 MB, free: 12.08 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.785e-05/0.01666, allocations: 31.61 kB / 278.2 MB, free: 12.04 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004063/0.01706, allocations: 102.9 kB / 278.3 MB, free: 11.95 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005884/0.01765, allocations: 414.9 kB / 278.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.793e-05/0.01772, allocations: 96.3 kB / 278.8 MB, free: 11.39 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.684e-05/0.01779, allocations: 25.94 kB / 278.8 MB, free: 11.36 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001383/0.01793, allocations: 122.2 kB / 279 MB, free: 11.24 MB / 266.7 MB Notification: Performance of SimCode: time 7.12e-07/0.01793, allocations: 3.938 kB / 279 MB, free: 11.24 MB / 266.7 MB Notification: Performance of Templates: time 0.007493/0.02542, allocations: 3.839 MB / 282.8 MB, free: 7.461 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.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: 3.1038790750317276]