Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.001871/0.001871, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002259/0.002259, allocations: 211 kB / 23.73 MB, free: 4.387 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.601/1.601, allocations: 230.6 MB / 257.5 MB, free: 7.781 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.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5030,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5030,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 47.92 kB / 378.2 MB, free: 2.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.2401, allocations: 53.36 MB / 431.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003911/0.244, allocations: 1.985 MB / 433.6 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002424/0.2464, allocations: 1.192 MB / 434.8 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001356/0.2466, allocations: 11.94 kB / 434.8 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006309/0.2472, allocations: 163 kB / 434.9 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004114/0.2476, allocations: 159.4 kB / 435.1 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006049/0.2482, allocations: 211.3 kB / 435.3 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003174/0.2485, allocations: 239.4 kB / 435.5 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001312/0.2487, allocations: 32.38 kB / 435.6 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001408/0.2488, allocations: 99.55 kB / 435.6 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001507/0.249, allocations: 95.53 kB / 435.7 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.957e-05/0.249, allocations: 12 kB / 435.8 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001588/0.2491, allocations: 71.89 kB / 435.8 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.218e-05/0.2492, allocations: 47.84 kB / 435.9 MB, free: 2.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.724e-05/0.2493, allocations: 75.52 kB / 435.9 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003779/0.2497, allocations: 257.3 kB / 436.2 MB, free: 2.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2497, allocations: 0 / 436.2 MB, free: 2.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.2497, allocations: 4 kB / 436.2 MB, free: 2.086 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.2497, allocations: 7.938 kB / 436.2 MB, free: 2.078 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.0008376/0.2506, allocations: 490.5 kB / 436.7 MB, free: 1.562 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.071e-05/0.2506, allocations: 12.03 kB / 436.7 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.265e-05/0.2506, allocations: 24.8 kB / 436.7 MB, free: 1.527 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003969/0.251, allocations: 233 kB / 436.9 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.249e-05/0.2511, allocations: 8.375 kB / 437 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.144e-05/0.2511, allocations: 24.12 kB / 437 MB, free: 1.246 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006007/0.2517, allocations: 289.6 kB / 437.3 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.2517, allocations: 4 kB / 437.3 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.626e-05/0.2517, allocations: 4 kB / 437.3 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.2517, allocations: 0 / 437.3 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001617/0.2519, allocations: 63.95 kB / 437.3 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004979/0.2524, allocations: 314 kB / 437.6 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003452/0.2527, allocations: 160 kB / 437.8 MB, free: 352 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001475/0.2529, allocations: 82.53 kB / 437.9 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.987e-05/0.2529, allocations: 7.938 kB / 437.9 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001687/0.2531, allocations: 75.39 kB / 438 MB, free: 164 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 3.637e-06/0.2531, allocations: 3.984 kB / 438 MB, free: 160 kB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005438/0.2536, allocations: 241.4 kB / 438.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.397e-05/0.2537, allocations: 118.8 kB / 438.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003283/0.2541, allocations: 281 kB / 438.6 MB, free: 15.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.797e-05/0.2541, allocations: 33.7 kB / 438.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.682e-05/0.2542, allocations: 124.6 kB / 438.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.827e-05/0.2542, allocations: 27.84 kB / 438.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.555e-05/0.2543, allocations: 49.94 kB / 438.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.2545, allocations: 342.8 kB / 439.2 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.154e-05/0.2545, allocations: 44.39 kB / 439.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002072/0.2548, allocations: 190.9 kB / 439.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000283/0.255, allocations: 203.2 kB / 439.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.255, allocations: 0 / 439.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003877/0.2554, allocations: 233.1 kB / 439.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.2554, allocations: 8 kB / 439.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.2555, allocations: 4 kB / 439.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.169e-05/0.2555, allocations: 4 kB / 439.8 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.867e-05/0.2556, allocations: 24.45 kB / 439.8 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/0.2556, allocations: 11.94 kB / 439.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001133/0.2557, allocations: 19.89 kB / 439.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.918e-05/0.2557, allocations: 16 kB / 439.9 MB, free: 14.03 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.table1.combiTimeTable.nextTimeEvent,$whenCondition1,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,and1.y,and1.u2,and1.u1,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.0001732/0.2559, allocations: 163.8 kB / 440.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002031/0.2561, allocations: 133.4 kB / 440.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000271/0.2564, allocations: 115.8 kB / 440.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.2564, allocations: 4 kB / 440.3 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.2564, allocations: 0 / 440.3 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.2564, allocations: 11.92 kB / 440.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002054/0.2566, allocations: 173.5 kB / 440.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2566, allocations: 0 / 440.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.824e-05/0.2566, allocations: 15.98 kB / 440.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.2566, allocations: 4.469 kB / 440.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.2567, allocations: 4 kB / 440.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.2567, allocations: 4 kB / 440.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2567, allocations: 0 / 440.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004005/0.2571, allocations: 246.4 kB / 440.8 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.65e-05/0.2572, allocations: 43.77 kB / 440.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.884e-05/0.2572, allocations: 8 kB / 440.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.42e-05/0.2573, allocations: 11.98 kB / 440.8 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.3e-05/0.2573, allocations: 4 kB / 440.8 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.248e-05/0.2573, allocations: 11.98 kB / 440.8 MB, free: 13.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002334/0.2576, allocations: 204.5 kB / 441 MB, free: 12.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2576, allocations: 0 / 441 MB, free: 12.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003228/0.2579, allocations: 43.94 kB / 441.1 MB, free: 12.78 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,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEvent,table1.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.001713/0.2596, allocations: 464 kB / 441.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000339/0.26, allocations: 151 kB / 441.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.26, allocations: 0 / 441.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.296e-05/0.26, allocations: 31.92 kB / 441.7 MB, free: 12.33 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005033/0.2605, allocations: 114.2 kB / 441.8 MB, free: 12.22 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006977/0.2612, allocations: 394.3 kB / 442.2 MB, free: 11.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001589/0.2614, allocations: 149.5 kB / 442.3 MB, free: 11.63 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.419e-05/0.2615, allocations: 26.67 kB / 442.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.808e-05/0.2615, allocations: 27.42 kB / 442.4 MB, free: 11.58 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2615, allocations: 4 kB / 442.4 MB, free: 11.57 MB / 350.1 MB Notification: Performance of Templates: time 0.01077/0.2723, allocations: 3.351 MB / 445.8 MB, free: 8.27 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.848494315519929]