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.001936/0.001936, allocations: 113 kB / 19.04 MB, free: 3.254 MB / 14.72 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.002072/0.002072, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 14.72 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.546/1.546, allocations: 225.6 MB / 250.8 MB, free: 13.33 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001559/0.001559, allocations: 47.92 kB / 368.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3531/0.3546, allocations: 52.15 MB / 420.9 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.004126/0.3588, allocations: 1.987 MB / 422.9 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002313/0.3611, allocations: 1.219 MB / 424.1 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001207/0.3612, allocations: 0 / 424.1 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003663/0.3616, allocations: 79.58 kB / 424.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002987/0.3619, allocations: 99.53 kB / 424.2 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008441/0.3627, allocations: 298.1 kB / 424.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002935/0.363, allocations: 215.4 kB / 424.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001691/0.3632, allocations: 29.67 kB / 424.8 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001438/0.3633, allocations: 95.61 kB / 424.9 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001858/0.3635, allocations: 115.5 kB / 425 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.936e-05/0.3635, allocations: 12 kB / 425 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001636/0.3637, allocations: 71.95 kB / 425.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.8e-05/0.3638, allocations: 63.81 kB / 425.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001291/0.3639, allocations: 107.2 kB / 425.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004546/0.3644, allocations: 280.1 kB / 425.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.104e-06/0.3644, allocations: 7.984 kB / 425.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3644, allocations: 0 / 425.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.3644, allocations: 0 / 425.5 MB, free: 10.46 MB / 334.1 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.001036/0.3654, allocations: 0.597 MB / 426.1 MB, free: 9.805 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.3655, allocations: 11.89 kB / 426.1 MB, free: 9.793 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.051e-05/0.3656, allocations: 32.75 kB / 426.2 MB, free: 9.762 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004266/0.366, allocations: 307.7 kB / 426.5 MB, free: 9.426 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.577e-05/0.366, allocations: 16.31 kB / 426.5 MB, free: 9.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.478e-05/0.366, allocations: 20.11 kB / 426.5 MB, free: 9.391 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000624/0.3667, allocations: 319.3 kB / 426.8 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.3667, allocations: 7.969 kB / 426.8 MB, free: 9.047 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.123e-05/0.3667, allocations: 8 kB / 426.8 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.3667, allocations: 0 / 426.8 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001795/0.3669, allocations: 67.91 kB / 426.9 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006704/0.3676, allocations: 414.3 kB / 427.3 MB, free: 8.512 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003926/0.368, allocations: 183.9 kB / 427.5 MB, free: 8.305 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001672/0.3681, allocations: 86.53 kB / 427.6 MB, free: 8.211 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.322e-05/0.3682, allocations: 8 kB / 427.6 MB, free: 8.203 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000186/0.3683, allocations: 83.31 kB / 427.6 MB, free: 8.109 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.763e-06/0.3683, allocations: 0 / 427.6 MB, free: 8.109 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005701/0.3689, allocations: 249.9 kB / 427.9 MB, free: 7.859 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001333/0.369, allocations: 170.2 kB / 428.1 MB, free: 7.656 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003881/0.3694, allocations: 350.9 kB / 428.4 MB, free: 7.305 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.855e-05/0.3695, allocations: 33.7 kB / 428.4 MB, free: 7.266 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/0.3696, allocations: 132.6 kB / 428.6 MB, free: 7.129 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.251e-05/0.3696, allocations: 35.78 kB / 428.6 MB, free: 7.094 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001447/0.3698, allocations: 49.94 kB / 428.6 MB, free: 7.035 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.3699, allocations: 342.8 kB / 429 MB, free: 6.691 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.8e-05/0.37, allocations: 44.44 kB / 429 MB, free: 6.648 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000214/0.3702, allocations: 184.3 kB / 429.2 MB, free: 6.406 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003048/0.3705, allocations: 219.5 kB / 429.4 MB, free: 6.137 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.3706, allocations: 0 / 429.4 MB, free: 6.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004412/0.371, allocations: 241.4 kB / 429.6 MB, free: 5.895 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.371, allocations: 11.98 kB / 429.7 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.371, allocations: 4.312 kB / 429.7 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/0.371, allocations: 4 kB / 429.7 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001599/0.3712, allocations: 43.92 kB / 429.7 MB, free: 5.832 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/0.3712, allocations: 7.938 kB / 429.7 MB, free: 5.824 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001115/0.3713, allocations: 19.83 kB / 429.7 MB, free: 5.805 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.801e-05/0.3714, allocations: 23.97 kB / 429.8 MB, free: 5.781 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,sum.y,sum.u[2],sum.u[1],upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * 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 (28): * Single equations (assignments): 28 * 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.0001955/0.3715, allocations: 176.1 kB / 429.9 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002202/0.3718, allocations: 141.4 kB / 430.1 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002865/0.3721, allocations: 127.3 kB / 430.2 MB, free: 5.328 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.3721, allocations: 4 kB / 430.2 MB, free: 5.324 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.3721, allocations: 3.938 kB / 430.2 MB, free: 5.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.3721, allocations: 3.984 kB / 430.2 MB, free: 5.316 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002797/0.3724, allocations: 261.5 kB / 430.5 MB, free: 5.012 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3724, allocations: 0 / 430.5 MB, free: 5.012 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001245/0.3725, allocations: 31.92 kB / 430.5 MB, free: 4.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.147e-06/0.3725, allocations: 12.02 kB / 430.5 MB, free: 4.969 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.167e-05/0.3725, allocations: 4 kB / 430.5 MB, free: 4.965 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.3725, allocations: 4 kB / 430.5 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.3725, allocations: 4.062 kB / 430.5 MB, free: 4.957 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004177/0.3729, allocations: 249.9 kB / 430.8 MB, free: 4.691 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000138/0.3731, allocations: 132.8 kB / 430.9 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.783e-05/0.3731, allocations: 0 / 430.9 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.589e-05/0.3732, allocations: 12.08 kB / 430.9 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.502e-05/0.3733, allocations: 23.8 kB / 430.9 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.62e-05/0.3733, allocations: 8 kB / 430.9 MB, free: 4.5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002884/0.3736, allocations: 249.9 kB / 431.2 MB, free: 4.258 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3736, allocations: 0 / 431.2 MB, free: 4.258 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003275/0.3739, allocations: 44 kB / 431.2 MB, free: 4.215 MB / 334.1 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 (22): * Single equations (assignments): 20 * 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.001683/0.3756, allocations: 439.5 kB / 431.6 MB, free: 3.934 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003982/0.376, allocations: 147.7 kB / 431.8 MB, free: 3.789 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.376, allocations: 9 kB / 431.8 MB, free: 3.781 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.512e-05/0.3761, allocations: 23.98 kB / 431.8 MB, free: 3.758 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005238/0.3766, allocations: 120.4 kB / 431.9 MB, free: 3.641 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009128/0.3775, allocations: 465.6 kB / 432.4 MB, free: 3.148 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004929/0.378, allocations: 0.7751 MB / 433.2 MB, free: 2.344 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.758e-05/0.3781, allocations: 34.5 kB / 433.2 MB, free: 2.312 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.913e-05/0.3782, allocations: 23.44 kB / 433.2 MB, free: 2.289 MB / 334.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3782, allocations: 0 / 433.2 MB, free: 2.289 MB / 334.1 MB Notification: Performance of Templates: time 0.009448/0.3876, allocations: 3.58 MB / 436.8 MB, free: 14.73 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.101970587857068]