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.001486/0.001486, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001777/0.001777, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.518/1.518, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.001421/0.001421, allocations: 51.92 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1061, allocations: 53.33 MB / 426.3 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003613/0.1097, allocations: 2.01 MB / 428.3 MB, free: 2.762 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002121/0.1118, allocations: 1.28 MB / 429.6 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000124/0.112, allocations: 3.938 kB / 429.6 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006014/0.1126, allocations: 147.5 kB / 429.7 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004119/0.113, allocations: 167.3 kB / 429.9 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005827/0.1136, allocations: 207.1 kB / 430.1 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000289/0.1138, allocations: 227.4 kB / 430.3 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001161/0.114, allocations: 36.28 kB / 430.4 MB, free: 0.707 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00013/0.1141, allocations: 95.62 kB / 430.5 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001511/0.1142, allocations: 99.53 kB / 430.6 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.883e-05/0.1143, allocations: 20 kB / 430.6 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001358/0.1144, allocations: 63.89 kB / 430.6 MB, free: 444 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.847e-05/0.1145, allocations: 55.83 kB / 430.7 MB, free: 388 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.937e-05/0.1146, allocations: 91.34 kB / 430.8 MB, free: 296 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003441/0.1149, allocations: 266.8 kB / 431 MB, free: 28 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1149, allocations: 0 / 431 MB, free: 28 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1149, allocations: 0 / 431 MB, free: 28 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.179e-06/0.1149, allocations: 0 / 431 MB, free: 28 kB / 350.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.1851/0.3001, allocations: 0.5547 MB / 431.6 MB, free: 11.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.3001, allocations: 10.66 kB / 431.6 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.182e-05/0.3001, allocations: 46.23 kB / 431.7 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.589e-05/0.3002, allocations: 29.53 kB / 431.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003555/0.3006, allocations: 291.2 kB / 432 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.119e-05/0.3006, allocations: 16.34 kB / 432 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.694e-05/0.3006, allocations: 10.84 kB / 432 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005558/0.3012, allocations: 305.1 kB / 432.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.3012, allocations: 3.938 kB / 432.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.677e-05/0.3012, allocations: 5.844 kB / 432.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.3012, allocations: 5.594 kB / 432.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001599/0.3014, allocations: 56.92 kB / 432.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004626/0.3018, allocations: 393.9 kB / 432.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003213/0.3021, allocations: 164.6 kB / 432.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001329/0.3023, allocations: 76.58 kB / 433 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.523e-05/0.3023, allocations: 7.469 kB / 433 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001518/0.3025, allocations: 77.81 kB / 433.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 2.304e-06/0.3025, allocations: 0.6562 kB / 433.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005139/0.303, allocations: 226.7 kB / 433.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.892e-05/0.3031, allocations: 146.6 kB / 433.4 MB, free: 10.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002656/0.3033, allocations: 288.5 kB / 433.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.562e-05/0.3033, allocations: 31.23 kB / 433.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.501e-05/0.3034, allocations: 122.3 kB / 433.9 MB, free: 9.957 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.811e-05/0.3034, allocations: 27.42 kB / 433.9 MB, free: 9.945 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.813e-05/0.3035, allocations: 53.91 kB / 433.9 MB, free: 9.926 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.368e-05/0.3035, allocations: 339.9 kB / 434.3 MB, free: 9.609 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.777e-05/0.3036, allocations: 37.45 kB / 434.3 MB, free: 9.609 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001179/0.3037, allocations: 170.1 kB / 434.5 MB, free: 9.453 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002102/0.3039, allocations: 201.8 kB / 434.7 MB, free: 9.312 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.3039, allocations: 1.062 kB / 434.7 MB, free: 9.312 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003286/0.3043, allocations: 228.1 kB / 434.9 MB, free: 9.258 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.3043, allocations: 7.344 kB / 434.9 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.3043, allocations: 4.594 kB / 434.9 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.065e-05/0.3043, allocations: 6.078 kB / 434.9 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.488e-05/0.3044, allocations: 24.53 kB / 434.9 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/0.3044, allocations: 6.25 kB / 434.9 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.3045, allocations: 21.44 kB / 435 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.859e-05/0.3046, allocations: 10.75 kB / 435 MB, free: 9.246 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.0001279/0.3047, allocations: 174.8 kB / 435.1 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001737/0.3049, allocations: 131.1 kB / 435.3 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.071e-05/0.3049, allocations: 25.22 kB / 435.3 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.3049, allocations: 7.25 kB / 435.3 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.3049, allocations: 1.969 kB / 435.3 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.3049, allocations: 3.016 kB / 435.3 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001799/0.3051, allocations: 254.7 kB / 435.6 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.3051, allocations: 5.094 kB / 435.6 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.736e-05/0.3052, allocations: 11.69 kB / 435.6 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.3052, allocations: 2.062 kB / 435.6 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.546e-05/0.3052, allocations: 7.344 kB / 435.6 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.3052, allocations: 1.312 kB / 435.6 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3052, allocations: 1.5 kB / 435.6 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003206/0.3055, allocations: 232.3 kB / 435.8 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.541e-05/0.3056, allocations: 124 kB / 435.9 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.732e-05/0.3056, allocations: 9.875 kB / 435.9 MB, free: 8.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.755e-05/0.3057, allocations: 6.375 kB / 436 MB, free: 8.629 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.085e-05/0.3057, allocations: 10.98 kB / 436 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.898e-05/0.3057, allocations: 5.438 kB / 436 MB, free: 8.625 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001684/0.3059, allocations: 205.5 kB / 436.2 MB, free: 8.512 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3059, allocations: 1.312 kB / 436.2 MB, free: 8.512 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003032/0.3062, allocations: 38.91 kB / 436.2 MB, free: 8.504 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.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent) * 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 (22): * Single equations (assignments): 20 * 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.001964/0.3082, allocations: 1.157 MB / 437.4 MB, free: 7.734 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003401/0.3085, allocations: 138.6 kB / 437.5 MB, free: 7.688 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3085, allocations: 3.938 kB / 437.5 MB, free: 7.684 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.394e-05/0.3086, allocations: 22.38 kB / 437.5 MB, free: 7.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005224/0.3091, allocations: 116.7 kB / 437.6 MB, free: 7.633 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002369/0.3115, allocations: 2.41 MB / 440.1 MB, free: 5.797 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002003/0.3117, allocations: 0.7574 MB / 440.8 MB, free: 5.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.522e-05/0.3118, allocations: 24.14 kB / 440.8 MB, free: 5.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.998e-05/0.3119, allocations: 65.3 kB / 440.9 MB, free: 5.047 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3119, allocations: 4 kB / 440.9 MB, free: 5.043 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02907/0.3409, allocations: 5.675 MB / 446.6 MB, free: 4.152 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.878/8.219, allocations: 5.203 kB / 446.6 MB, free: 4.148 MB / 350.1 MB " [Timeout remaining time 652] (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: 10.810487600974739]