Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001486/0.001486, allocations: 107.1 kB / 20.44 MB, free: 1.195 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001703/0.001703, allocations: 216.2 kB / 23.73 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 230.5 MB / 257.4 MB, free: 7.77 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002622/0.002622, allocations: 71.83 kB / 378.2 MB, free: 2.305 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.3121, allocations: 53.4 MB / 431.6 MB, free: 6.512 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.004135/0.3163, allocations: 1.977 MB / 433.6 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002581/0.3189, allocations: 1.2 MB / 434.8 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002191/0.3191, allocations: 7.938 kB / 434.8 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007753/0.3199, allocations: 163.4 kB / 435 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000537/0.3204, allocations: 159.3 kB / 435.1 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007568/0.3211, allocations: 214.2 kB / 435.3 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004049/0.3216, allocations: 235.3 kB / 435.6 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001728/0.3217, allocations: 40.36 kB / 435.6 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002186/0.3219, allocations: 91.62 kB / 435.7 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002061/0.3222, allocations: 99.47 kB / 435.8 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.87e-05/0.3222, allocations: 12 kB / 435.8 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002084/0.3224, allocations: 63.97 kB / 435.9 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.715e-05/0.3225, allocations: 55.81 kB / 435.9 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.839e-05/0.3226, allocations: 71.48 kB / 436 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005319/0.3231, allocations: 269.3 kB / 436.3 MB, free: 1.875 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3231, allocations: 4 kB / 436.3 MB, free: 1.871 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3231, allocations: 0 / 436.3 MB, free: 1.871 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.451e-05/0.3231, allocations: 0 / 436.3 MB, free: 1.871 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.001061/0.3242, allocations: 498.5 kB / 436.7 MB, free: 1.348 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.3242, allocations: 11.98 kB / 436.8 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.086e-05/0.3243, allocations: 28.73 kB / 436.8 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004537/0.3248, allocations: 229.1 kB / 437 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.254e-05/0.3248, allocations: 16.38 kB / 437 MB, free: 1.047 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.059e-05/0.3248, allocations: 12.38 kB / 437 MB, free: 1.035 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005976/0.3254, allocations: 297 kB / 437.3 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.3254, allocations: 0 / 437.3 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.912e-05/0.3255, allocations: 4 kB / 437.3 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-06/0.3255, allocations: 0 / 437.3 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001869/0.3257, allocations: 71.89 kB / 437.4 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005789/0.3262, allocations: 310.1 kB / 437.7 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003708/0.3266, allocations: 163.8 kB / 437.9 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001518/0.3268, allocations: 82.67 kB / 437.9 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.511e-05/0.3268, allocations: 12 kB / 438 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002256/0.327, allocations: 71.38 kB / 438 MB, free: 15.94 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 2.344e-06/0.327, allocations: 0 / 438 MB, free: 15.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005704/0.3276, allocations: 229.6 kB / 438.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.3277, allocations: 118.9 kB / 438.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003471/0.328, allocations: 288.9 kB / 438.6 MB, free: 15.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.718e-05/0.3281, allocations: 29.7 kB / 438.7 MB, free: 15.24 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.612e-05/0.3282, allocations: 124.6 kB / 438.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.147e-05/0.3282, allocations: 31.77 kB / 438.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.838e-05/0.3283, allocations: 57.92 kB / 438.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.3285, allocations: 342.8 kB / 439.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.136e-05/0.3286, allocations: 40.44 kB / 439.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002258/0.3288, allocations: 186.9 kB / 439.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002982/0.3291, allocations: 203.2 kB / 439.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3291, allocations: 0 / 439.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004104/0.3295, allocations: 229.1 kB / 439.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.3295, allocations: 8 kB / 439.9 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.988e-06/0.3295, allocations: 4 kB / 439.9 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.663e-05/0.3296, allocations: 4.531 kB / 439.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.3297, allocations: 27.92 kB / 439.9 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.428e-05/0.3297, allocations: 11.92 kB / 439.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001191/0.3298, allocations: 19.89 kB / 439.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.336e-05/0.3298, allocations: 16 kB / 440 MB, free: 13.82 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.0001865/0.33, allocations: 168.1 kB / 440.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002168/0.3302, allocations: 129.4 kB / 440.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000285/0.3305, allocations: 127.3 kB / 440.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.3305, allocations: 4 kB / 440.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.3305, allocations: 4 kB / 440.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.3305, allocations: 0 / 440.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000258/0.3308, allocations: 177.1 kB / 440.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.3308, allocations: 4 kB / 440.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.682e-05/0.3308, allocations: 4 kB / 440.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.878e-06/0.3308, allocations: 4 kB / 440.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.982e-05/0.3308, allocations: 11.98 kB / 440.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.3309, allocations: 0 / 440.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.3309, allocations: 3.938 kB / 440.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003856/0.3312, allocations: 230.5 kB / 440.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.3313, allocations: 43.77 kB / 440.8 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.871e-05/0.3314, allocations: 12 kB / 440.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.821e-05/0.3315, allocations: 8.094 kB / 440.9 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.209e-05/0.3315, allocations: 7.922 kB / 440.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.181e-05/0.3315, allocations: 8 kB / 440.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000231/0.3318, allocations: 204.5 kB / 441.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3318, allocations: 0 / 441.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003365/0.3321, allocations: 51.86 kB / 441.1 MB, free: 12.57 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.001706/0.3338, allocations: 453 kB / 441.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003541/0.3342, allocations: 143.6 kB / 441.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3342, allocations: 0 / 441.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.584e-05/0.3342, allocations: 31.92 kB / 441.7 MB, free: 12.1 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005749/0.3348, allocations: 122.9 kB / 441.9 MB, free: 11.99 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008264/0.3356, allocations: 401.2 kB / 442.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001628/0.3358, allocations: 141.5 kB / 442.4 MB, free: 11.4 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001043/0.3359, allocations: 30.27 kB / 442.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.202e-05/0.336, allocations: 35.36 kB / 442.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.336, allocations: 0 / 442.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of Templates: time 0.008652/0.3446, allocations: 3.344 MB / 445.8 MB, free: 8.031 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.560812778770924]