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.0009865/0.0009865, allocations: 82.66 kB / 21.43 MB, free: 3.07 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.001171/0.001171, allocations: 173.6 kB / 24.83 MB, free: 9.199 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 1.137/1.137, allocations: 177.1 MB / 205.3 MB, free: 5.504 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.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.883e-06/1.883e-06, allocations: 0 / 273.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.506e-05/2.694e-05, allocations: 6.25 kB / 273.4 MB, free: 1.305 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003532/0.003559, allocations: 2.005 MB / 275.4 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002157/0.005716, allocations: 1.301 MB / 276.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.005863, allocations: 11.94 kB / 276.7 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003294/0.006192, allocations: 71.53 kB / 276.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003866/0.006579, allocations: 139.3 kB / 276.9 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007098/0.007289, allocations: 278.9 kB / 277.2 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003232/0.007612, allocations: 227.3 kB / 277.4 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001328/0.007745, allocations: 36.52 kB / 277.4 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002025/0.007947, allocations: 127.7 kB / 277.6 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001583/0.008106, allocations: 91.75 kB / 277.7 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.212e-05/0.008138, allocations: 12 kB / 277.7 MB, free: 13 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001644/0.008302, allocations: 79.81 kB / 277.7 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.23e-05/0.008385, allocations: 67.77 kB / 277.8 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.761e-05/0.008452, allocations: 55.77 kB / 277.9 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003395/0.008792, allocations: 231.1 kB / 278.1 MB, free: 12.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.008794, allocations: 0 / 278.1 MB, free: 12.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.008795, allocations: 4 kB / 278.1 MB, free: 12.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.008799, allocations: 0 / 278.1 MB, free: 12.57 MB / 266.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.0006991/0.009498, allocations: 0.6177 MB / 278.7 MB, free: 11.91 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.00954, allocations: 8.031 kB / 278.7 MB, free: 11.9 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.433e-05/0.009614, allocations: 40.75 kB / 278.8 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003046/0.009919, allocations: 248.5 kB / 279 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.668e-05/0.009945, allocations: 12.38 kB / 279 MB, free: 11.58 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.353e-05/0.009969, allocations: 20.31 kB / 279 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.01104, allocations: 271.4 kB / 279.3 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.01105, allocations: 7.938 kB / 279.3 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/0.01107, allocations: 4 kB / 279.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.01107, allocations: 4 kB / 279.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.248e-05/0.01114, allocations: 35.89 kB / 279.4 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003963/0.01153, allocations: 339.6 kB / 279.7 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000173/0.01171, allocations: 161.5 kB / 279.8 MB, free: 10.65 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.118e-05/0.01177, allocations: 75.05 kB / 279.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.513e-05/0.01179, allocations: 8 kB / 279.9 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.014e-05/0.01188, allocations: 69.05 kB / 280 MB, free: 10.48 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.673e-06/0.01188, allocations: 0 / 280 MB, free: 10.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.0002686/0.01215, allocations: 185.3 kB / 280.2 MB, free: 10.29 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.284e-05/0.01222, allocations: 118.8 kB / 280.3 MB, free: 10.15 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000208/0.01242, allocations: 338.2 kB / 280.6 MB, free: 9.805 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/0.01244, allocations: 29.7 kB / 280.6 MB, free: 9.77 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.37e-05/0.01254, allocations: 191.3 kB / 280.8 MB, free: 9.578 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.401e-05/0.01256, allocations: 19.84 kB / 280.9 MB, free: 9.559 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.977e-05/0.01261, allocations: 55.3 kB / 280.9 MB, free: 9.496 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.01276, allocations: 0.5118 MB / 281.4 MB, free: 8.973 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.242e-05/0.01278, allocations: 11.98 kB / 281.4 MB, free: 8.961 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.877e-05/0.01285, allocations: 111.4 kB / 281.5 MB, free: 8.816 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.333e-05/0.01293, allocations: 86.3 kB / 281.6 MB, free: 8.707 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.01293, allocations: 8 kB / 281.6 MB, free: 8.699 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000152/0.01309, allocations: 137.2 kB / 281.8 MB, free: 8.559 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.0131, allocations: 4 kB / 281.8 MB, free: 8.555 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.01311, allocations: 0 / 281.8 MB, free: 8.555 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.01312, allocations: 4 kB / 281.8 MB, free: 8.551 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.579e-05/0.01318, allocations: 15.98 kB / 281.8 MB, free: 8.535 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/0.01319, allocations: 4 kB / 281.8 MB, free: 8.531 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.759e-05/0.01324, allocations: 8 kB / 281.8 MB, free: 8.523 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.01325, allocations: 8.141 kB / 281.8 MB, free: 8.516 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.0001059/0.01335, allocations: 180.5 kB / 282 MB, free: 8.328 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.01345, allocations: 113.4 kB / 282.1 MB, free: 8.211 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001238/0.01358, allocations: 111.4 kB / 282.2 MB, free: 8.098 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.01358, allocations: 3.984 kB / 282.2 MB, free: 8.094 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.01359, allocations: 4 kB / 282.2 MB, free: 8.09 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.01359, allocations: 0 / 282.2 MB, free: 8.09 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001246/0.01371, allocations: 169 kB / 282.4 MB, free: 7.898 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.01372, allocations: 0 / 282.4 MB, free: 7.898 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.656e-05/0.01378, allocations: 27.98 kB / 282.4 MB, free: 7.871 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.01378, allocations: 7.938 kB / 282.4 MB, free: 7.863 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.01379, allocations: 8 kB / 282.4 MB, free: 7.855 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-06/0.0138, allocations: 0 / 282.4 MB, free: 7.855 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.0138, allocations: 3.938 kB / 282.4 MB, free: 7.852 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001144/0.01391, allocations: 152.1 kB / 282.6 MB, free: 7.672 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.803e-05/0.01397, allocations: 47.78 kB / 282.6 MB, free: 7.625 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.443e-05/0.01399, allocations: 11.94 kB / 282.6 MB, free: 7.613 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.978e-05/0.01403, allocations: 7.984 kB / 282.6 MB, free: 7.605 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.239e-05/0.01407, allocations: 7.984 kB / 282.6 MB, free: 7.598 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.01408, allocations: 12.06 kB / 282.7 MB, free: 7.586 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.892e-05/0.01418, allocations: 219 kB / 282.9 MB, free: 7.371 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01418, allocations: 0 / 282.9 MB, free: 7.371 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001803/0.01436, allocations: 51.92 kB / 282.9 MB, free: 7.32 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.0007916/0.01515, allocations: 422.7 kB / 283.3 MB, free: 7.043 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000128/0.01528, allocations: 79.5 kB / 283.4 MB, free: 6.961 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.01528, allocations: 4 kB / 283.4 MB, free: 6.957 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.452e-05/0.01532, allocations: 23.67 kB / 283.4 MB, free: 6.93 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002869/0.0156, allocations: 111.4 kB / 283.5 MB, free: 6.82 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004722/0.01607, allocations: 427.4 kB / 284 MB, free: 6.367 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.162e-05/0.01614, allocations: 96.3 kB / 284.1 MB, free: 6.254 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.499e-05/0.01619, allocations: 30.31 kB / 284.1 MB, free: 6.223 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/0.0163, allocations: 118.2 kB / 284.2 MB, free: 6.105 MB / 266.7 MB Notification: Performance of SimCode: time 6.81e-07/0.0163, allocations: 0 / 284.2 MB, free: 6.105 MB / 266.7 MB Notification: Performance of Templates: time 0.006152/0.02245, allocations: 3.857 MB / 288.1 MB, free: 2.312 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 240] 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","",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.917863595765084]