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.001277/0.001277, allocations: 107.1 kB / 20.44 MB, free: 1.328 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.001379/0.001379, allocations: 205.3 kB / 23.72 MB, free: 4.5 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.404/1.404, allocations: 230.6 MB / 257.5 MB, free: 7.805 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 47.92 kB / 377.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.267, allocations: 53.37 MB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003656/0.2706, allocations: 1.976 MB / 433.1 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002291/0.2729, allocations: 1.188 MB / 434.2 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001219/0.273, allocations: 11.94 kB / 434.3 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005967/0.2736, allocations: 155.4 kB / 434.4 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003936/0.274, allocations: 167.3 kB / 434.6 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005668/0.2746, allocations: 218.9 kB / 434.8 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00032/0.2749, allocations: 231.4 kB / 435 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.275, allocations: 44.3 kB / 435.1 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001367/0.2752, allocations: 91.62 kB / 435.1 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001455/0.2753, allocations: 103.5 kB / 435.2 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.911e-05/0.2754, allocations: 12 kB / 435.3 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001502/0.2755, allocations: 63.95 kB / 435.3 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.043e-05/0.2756, allocations: 55.84 kB / 435.4 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.638e-05/0.2757, allocations: 75.45 kB / 435.4 MB, free: 2.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003513/0.276, allocations: 256.8 kB / 435.7 MB, free: 2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.276, allocations: 3.938 kB / 435.7 MB, free: 1.996 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.276, allocations: 0 / 435.7 MB, free: 1.996 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.276, allocations: 4 kB / 435.7 MB, free: 1.992 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.0008068/0.2768, allocations: 494.5 kB / 436.2 MB, free: 1.473 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.212e-05/0.2769, allocations: 8.031 kB / 436.2 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.364e-05/0.277, allocations: 46.73 kB / 436.2 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.649e-05/0.277, allocations: 28.73 kB / 436.3 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004124/0.2774, allocations: 233 kB / 436.5 MB, free: 1.133 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.347e-05/0.2775, allocations: 16.38 kB / 436.5 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.918e-05/0.2775, allocations: 15.94 kB / 436.5 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005621/0.2781, allocations: 297 kB / 436.8 MB, free: 0.793 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.2781, allocations: 4 kB / 436.8 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.2781, allocations: 4 kB / 436.8 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.768e-06/0.2781, allocations: 4 kB / 436.8 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001616/0.2782, allocations: 67.89 kB / 436.9 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005459/0.2788, allocations: 337.5 kB / 437.2 MB, free: 344 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000329/0.2791, allocations: 163.8 kB / 437.4 MB, free: 152 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001427/0.2793, allocations: 78.67 kB / 437.5 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.488e-05/0.2793, allocations: 8 kB / 437.5 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001766/0.2795, allocations: 75.38 kB / 437.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.623e-06/0.2795, allocations: 0 / 437.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005029/0.28, allocations: 233.4 kB / 437.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.025e-05/0.2801, allocations: 114.8 kB / 437.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003158/0.2804, allocations: 285 kB / 438.2 MB, free: 15.31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.46e-05/0.2804, allocations: 37.64 kB / 438.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.531e-05/0.2805, allocations: 120.6 kB / 438.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.714e-05/0.2805, allocations: 27.84 kB / 438.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.012e-05/0.2806, allocations: 49.94 kB / 438.4 MB, free: 15.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.2808, allocations: 350.8 kB / 438.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.369e-05/0.2809, allocations: 40.44 kB / 438.8 MB, free: 14.67 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002158/0.2811, allocations: 186.9 kB / 439 MB, free: 14.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002983/0.2814, allocations: 207.5 kB / 439.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.2814, allocations: 4 kB / 439.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004194/0.2818, allocations: 221.5 kB / 439.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.2818, allocations: 8 kB / 439.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.2818, allocations: 4 kB / 439.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.2819, allocations: 4.531 kB / 439.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.282, allocations: 35.86 kB / 439.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.408e-05/0.282, allocations: 11.94 kB / 439.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001132/0.2821, allocations: 27.81 kB / 439.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.579e-05/0.2821, allocations: 8 kB / 439.5 MB, free: 13.84 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.000172/0.2823, allocations: 163.9 kB / 439.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000193/0.2825, allocations: 125.4 kB / 439.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002641/0.2827, allocations: 127.3 kB / 439.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.2827, allocations: 4 kB / 439.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.2827, allocations: 4 kB / 439.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.2827, allocations: 7.922 kB / 439.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002248/0.283, allocations: 204.6 kB / 440.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.283, allocations: 0 / 440.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.687e-05/0.283, allocations: 15.98 kB / 440.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.283, allocations: 0 / 440.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.435e-05/0.283, allocations: 4 kB / 440.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.283, allocations: 0 / 440.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.283, allocations: 3.938 kB / 440.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003771/0.2834, allocations: 234.5 kB / 440.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.473e-05/0.2835, allocations: 39.77 kB / 440.4 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.656e-05/0.2835, allocations: 12 kB / 440.4 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.469e-05/0.2836, allocations: 16.05 kB / 440.4 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.119e-05/0.2837, allocations: 7.938 kB / 440.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.183e-05/0.2837, allocations: 11.98 kB / 440.4 MB, free: 12.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002156/0.2839, allocations: 204.5 kB / 440.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2839, allocations: 0 / 440.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002994/0.2842, allocations: 43.94 kB / 440.7 MB, free: 12.55 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.002426/0.2866, allocations: 1.194 MB / 441.9 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003074/0.2869, allocations: 139.6 kB / 442 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2869, allocations: 0 / 442 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.645e-05/0.287, allocations: 27.98 kB / 442 MB, free: 11.35 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004717/0.2875, allocations: 133.4 kB / 442.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003059/0.2905, allocations: 2.42 MB / 444.6 MB, free: 8.609 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001528/0.2907, allocations: 149.5 kB / 444.7 MB, free: 8.434 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.14e-05/0.2908, allocations: 26.67 kB / 444.8 MB, free: 8.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/0.2909, allocations: 71.41 kB / 444.8 MB, free: 8.34 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2909, allocations: 0 / 444.8 MB, free: 8.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03382/0.3247, allocations: 6.437 MB / 451.3 MB, free: 1.984 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.69/11.02, allocations: 4 kB / 451.3 MB, free: 1.98 MB / 350.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.78926e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","/var/lib/jenkins1/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: 13.464340413920581]