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.001332/0.001332, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.001605/0.001605, allocations: 209 kB / 24.48 MB, free: 3.938 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.5/1.5, allocations: 230.6 MB / 258.2 MB, free: 7.793 MB / 206.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 0.001595/0.001595, allocations: 47.92 kB / 379 MB, free: 2.457 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2279/0.2295, allocations: 53.38 MB / 432.3 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003508/0.233, allocations: 1.95 MB / 434.3 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002331/0.2353, allocations: 1.274 MB / 435.6 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001306/0.2354, allocations: 11.88 kB / 435.6 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002962/0.2357, allocations: 71.55 kB / 435.6 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003807/0.2361, allocations: 147.4 kB / 435.8 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007532/0.2369, allocations: 270.5 kB / 436 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002944/0.2372, allocations: 219.4 kB / 436.3 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001335/0.2373, allocations: 39.52 kB / 436.3 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001413/0.2374, allocations: 103.5 kB / 436.4 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001757/0.2376, allocations: 103.6 kB / 436.5 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.139e-05/0.2376, allocations: 12 kB / 436.5 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001758/0.2378, allocations: 83.88 kB / 436.6 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.367e-05/0.2379, allocations: 67.77 kB / 436.7 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.639e-05/0.238, allocations: 75.47 kB / 436.7 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004245/0.2384, allocations: 298.5 kB / 437 MB, free: 1.988 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.2384, allocations: 0 / 437 MB, free: 1.988 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2384, allocations: 0 / 437 MB, free: 1.988 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.2384, allocations: 0 / 437 MB, free: 1.988 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.0009189/0.2394, allocations: 0.5294 MB / 437.6 MB, free: 1.422 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.2394, allocations: 12.02 kB / 437.6 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.113e-05/0.2395, allocations: 32.75 kB / 437.6 MB, free: 1.379 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004349/0.2399, allocations: 246.5 kB / 437.8 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.998e-05/0.2399, allocations: 8.375 kB / 437.8 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.292e-05/0.24, allocations: 20.12 kB / 437.9 MB, free: 1.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006594/0.2406, allocations: 345.7 kB / 438.2 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.2406, allocations: 0 / 438.2 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.118e-05/0.2406, allocations: 8 kB / 438.2 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-06/0.2407, allocations: 0 / 438.2 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001894/0.2408, allocations: 79.89 kB / 438.3 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005466/0.2414, allocations: 334 kB / 438.6 MB, free: 280 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003818/0.2418, allocations: 188 kB / 438.8 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001832/0.242, allocations: 90.53 kB / 438.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.901e-05/0.242, allocations: 4 kB / 438.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001863/0.2422, allocations: 83.31 kB / 439 MB, free: 15.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.783e-06/0.2422, allocations: 0 / 439 MB, free: 15.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005978/0.2428, allocations: 273.4 kB / 439.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.2429, allocations: 140.5 kB / 439.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004009/0.2433, allocations: 360.2 kB / 439.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.479e-05/0.2433, allocations: 25.7 kB / 439.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.2434, allocations: 136.6 kB / 439.9 MB, free: 14.9 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.782e-05/0.2435, allocations: 31.78 kB / 439.9 MB, free: 14.87 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.846e-05/0.2435, allocations: 53.89 kB / 440 MB, free: 14.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.2437, allocations: 342.8 kB / 440.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.2438, allocations: 44.44 kB / 440.3 MB, free: 14.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002432/0.244, allocations: 238.3 kB / 440.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003/0.2443, allocations: 219.2 kB / 440.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.2443, allocations: 0 / 440.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004082/0.2448, allocations: 237.2 kB / 441 MB, free: 13.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.2448, allocations: 8 kB / 441 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.2448, allocations: 4 kB / 441 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.2448, allocations: 4 kB / 441 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001619/0.245, allocations: 43.92 kB / 441.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.267e-05/0.245, allocations: 7.984 kB / 441.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001181/0.2451, allocations: 12 kB / 441.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.382e-05/0.2451, allocations: 12.38 kB / 441.1 MB, free: 13.52 MB / 350.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.0001853/0.2453, allocations: 195.8 kB / 441.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000225/0.2455, allocations: 141.7 kB / 441.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003051/0.2458, allocations: 131.5 kB / 441.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.2458, allocations: 4 kB / 441.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.2458, allocations: 4 kB / 441.6 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.2458, allocations: 0 / 441.6 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002166/0.2461, allocations: 197.1 kB / 441.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.2461, allocations: 4 kB / 441.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001341/0.2462, allocations: 31.92 kB / 441.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.2462, allocations: 4 kB / 441.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.2462, allocations: 8.469 kB / 441.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.2462, allocations: 0 / 441.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.2462, allocations: 0 / 441.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004228/0.2467, allocations: 269.9 kB / 442.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001151/0.2468, allocations: 47.78 kB / 442.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.882e-05/0.2468, allocations: 8 kB / 442.1 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.871e-05/0.2469, allocations: 8 kB / 442.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.346e-05/0.2469, allocations: 7.984 kB / 442.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.734e-05/0.247, allocations: 19.98 kB / 442.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002748/0.2472, allocations: 259 kB / 442.4 MB, free: 12.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2472, allocations: 0 / 442.4 MB, free: 12.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003226/0.2476, allocations: 47.94 kB / 442.5 MB, free: 12.09 MB / 350.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.001637/0.2492, allocations: 466.1 kB / 442.9 MB, free: 11.81 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003528/0.2496, allocations: 160 kB / 443.1 MB, free: 11.65 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.2496, allocations: 0 / 443.1 MB, free: 11.65 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.239e-05/0.2496, allocations: 31.98 kB / 443.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005023/0.2501, allocations: 126.1 kB / 443.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008098/0.251, allocations: 0.4955 MB / 443.7 MB, free: 10.97 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001634/0.2511, allocations: 166.1 kB / 443.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.367e-05/0.2512, allocations: 31.42 kB / 443.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2512, allocations: 0 / 443.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of Templates: time 0.006213/0.2574, allocations: 3.735 MB / 447.7 MB, free: 7.016 MB / 350.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins1/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: 7.551649711094797]