Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.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.001365/0.001365, allocations: 85.88 kB / 20.68 MB, free: 1.023 MB / 14.72 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.002113/0.002113, allocations: 163.2 kB / 23.95 MB, free: 4.148 MB / 14.72 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 1.518/1.518, allocations: 177.1 MB / 204.3 MB, free: 9.203 MB / 190.1 MB " [Timeout remaining time 178] 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.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5034,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.162e-06/1.162e-06, allocations: 0 / 325.1 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.838e-05/2.955e-05, allocations: 2.281 kB / 325.1 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003505/0.003535, allocations: 1.955 MB / 327 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00264/0.006175, allocations: 1.285 MB / 328.3 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001622/0.006338, allocations: 7.312 kB / 328.3 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003611/0.006699, allocations: 76.14 kB / 328.4 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004494/0.007148, allocations: 139 kB / 328.5 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009809/0.008129, allocations: 276.2 kB / 328.8 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004364/0.008565, allocations: 231.6 kB / 329 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001457/0.008711, allocations: 36.3 kB / 329.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002284/0.00894, allocations: 131.5 kB / 329.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000213/0.009153, allocations: 92.78 kB / 329.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.64e-05/0.009199, allocations: 17.62 kB / 329.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002138/0.009413, allocations: 68.73 kB / 329.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001206/0.009533, allocations: 69.8 kB / 329.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.009642, allocations: 57.97 kB / 329.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006217/0.01026, allocations: 304.4 kB / 329.8 MB, free: 13.76 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.01027, allocations: 1.406 kB / 329.8 MB, free: 13.76 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.01027, allocations: 3.938 kB / 329.8 MB, free: 13.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.424e-05/0.01029, allocations: 0 / 329.8 MB, free: 13.75 MB / 302.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.001302/0.01159, allocations: 0.5155 MB / 330.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.01163, allocations: 8.5 kB / 330.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.608e-05/0.01172, allocations: 35.62 kB / 330.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004846/0.0122, allocations: 250.8 kB / 330.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.789e-05/0.01223, allocations: 12.22 kB / 330.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.398e-05/0.01226, allocations: 12.41 kB / 330.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007017/0.01297, allocations: 347.8 kB / 331 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.196e-05/0.01299, allocations: 3.938 kB / 331 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.25e-05/0.01301, allocations: 6.281 kB / 331 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.01302, allocations: 2.188 kB / 331 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002012/0.01322, allocations: 77.81 kB / 331 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005658/0.01378, allocations: 339.4 kB / 331.4 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004121/0.0142, allocations: 194.1 kB / 331.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001656/0.01436, allocations: 84.06 kB / 331.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.79e-05/0.01439, allocations: 3.188 kB / 331.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001771/0.01457, allocations: 86.66 kB / 331.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.914e-06/0.01457, allocations: 0 / 331.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006097/0.01518, allocations: 269.6 kB / 332 MB, free: 12.08 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001252/0.0153, allocations: 139.2 kB / 332.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004225/0.01573, allocations: 360.8 kB / 332.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.35e-05/0.01576, allocations: 31.95 kB / 332.5 MB, free: 11.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.01587, allocations: 135.3 kB / 332.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.124e-05/0.01591, allocations: 24.31 kB / 332.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.002e-05/0.01598, allocations: 40.7 kB / 332.7 MB, free: 11.49 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.01616, allocations: 333.8 kB / 333 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.429e-05/0.01626, allocations: 36.42 kB / 333.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001796/0.01644, allocations: 146.4 kB / 333.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002035/0.01664, allocations: 110.5 kB / 333.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.01664, allocations: 1.062 kB / 333.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003162/0.01696, allocations: 156 kB / 333.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.01698, allocations: 10.7 kB / 333.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.01699, allocations: 1.375 kB / 333.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.017, allocations: 2.094 kB / 333.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.01711, allocations: 24 kB / 333.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.01712, allocations: 2.375 kB / 333.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.852e-05/0.01722, allocations: 8.297 kB / 333.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.181e-05/0.01723, allocations: 4.812 kB / 333.5 MB, free: 10.79 MB / 302.1 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.0001796/0.01741, allocations: 165.3 kB / 333.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000242/0.01765, allocations: 149.8 kB / 333.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003025/0.01795, allocations: 133.6 kB / 334 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.01796, allocations: 2.469 kB / 334 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.01796, allocations: 9.375 kB / 334 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.01797, allocations: 1.219 kB / 334 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002304/0.0182, allocations: 192.8 kB / 334.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/0.0182, allocations: 1.531 kB / 334.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001423/0.01834, allocations: 35.06 kB / 334.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.692e-06/0.01835, allocations: 5.5 kB / 334.2 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.024e-05/0.01837, allocations: 10.5 kB / 334.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.337e-06/0.01837, allocations: 2.406 kB / 334.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.01837, allocations: 480 / 334.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004335/0.01881, allocations: 255.8 kB / 334.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.01891, allocations: 52.36 kB / 334.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.649e-05/0.01896, allocations: 11.55 kB / 334.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.514e-05/0.01905, allocations: 6.781 kB / 334.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.909e-05/0.01912, allocations: 11.86 kB / 334.6 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.7e-05/0.01915, allocations: 10.59 kB / 334.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003101/0.01946, allocations: 258.2 kB / 334.8 MB, free: 9.867 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.01946, allocations: 0 / 334.8 MB, free: 9.867 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003028/0.01976, allocations: 46.06 kB / 334.9 MB, free: 9.855 MB / 302.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 (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.001715/0.02147, allocations: 472.3 kB / 335.3 MB, free: 9.633 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000312/0.02179, allocations: 117.8 kB / 335.4 MB, free: 9.582 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.02179, allocations: 0 / 335.4 MB, free: 9.582 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.654e-05/0.02188, allocations: 26.7 kB / 335.5 MB, free: 9.574 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000533/0.02241, allocations: 121.5 kB / 335.6 MB, free: 9.516 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000826/0.02323, allocations: 482.7 kB / 336.1 MB, free: 9.184 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000175/0.02341, allocations: 162.8 kB / 336.2 MB, free: 9.062 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.809e-05/0.0235, allocations: 32.75 kB / 336.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.272e-05/0.02357, allocations: 32.14 kB / 336.3 MB, free: 9.035 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.02357, allocations: 0 / 336.3 MB, free: 9.035 MB / 302.1 MB Notification: Performance of Templates: time 0.00846/0.03203, allocations: 3.627 MB / 339.9 MB, free: 6.152 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 4.555733595043421]