Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 119.9 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001233/0.001233, allocations: 185.2 kB / 20.73 MB, free: 2.355 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 225.6 MB / 249.1 MB, free: 3.605 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 55.91 kB / 365.6 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09433/0.09579, allocations: 52.14 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003513/0.0993, allocations: 1.996 MB / 419.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001887/0.1012, allocations: 1.122 MB / 420.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001138/0.1013, allocations: 4 kB / 420.9 MB, free: 9.469 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005964/0.1019, allocations: 159.4 kB / 421.1 MB, free: 9.312 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002976/0.1022, allocations: 115.6 kB / 421.2 MB, free: 9.199 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006663/0.1029, allocations: 246.7 kB / 421.4 MB, free: 8.961 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003/0.1032, allocations: 223.4 kB / 421.6 MB, free: 8.742 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001272/0.1033, allocations: 32.28 kB / 421.7 MB, free: 8.707 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.1034, allocations: 95.56 kB / 421.8 MB, free: 8.613 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001424/0.1036, allocations: 99.58 kB / 421.8 MB, free: 8.516 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.023e-05/0.1036, allocations: 16 kB / 421.9 MB, free: 8.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001351/0.1037, allocations: 55.97 kB / 421.9 MB, free: 8.445 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.866e-05/0.1038, allocations: 55.77 kB / 422 MB, free: 8.391 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.946e-05/0.1039, allocations: 87.41 kB / 422.1 MB, free: 8.305 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004008/0.1043, allocations: 258.9 kB / 422.3 MB, free: 8.051 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.1043, allocations: 4 kB / 422.3 MB, free: 8.047 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1043, allocations: 0 / 422.3 MB, free: 8.047 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.1043, allocations: 3.938 kB / 422.3 MB, free: 8.043 MB / 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.000858/0.1052, allocations: 0.5505 MB / 422.9 MB, free: 7.438 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.1052, allocations: 12.03 kB / 422.9 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.665e-05/0.1053, allocations: 46.69 kB / 422.9 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.995e-05/0.1053, allocations: 28.78 kB / 423 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003796/0.1057, allocations: 278.9 kB / 423.2 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.884e-05/0.1057, allocations: 16.38 kB / 423.2 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.805e-05/0.1058, allocations: 15.92 kB / 423.3 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005392/0.1063, allocations: 295 kB / 423.5 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.1063, allocations: 0 / 423.5 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.1063, allocations: 4 kB / 423.6 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.1063, allocations: 4 kB / 423.6 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001472/0.1065, allocations: 59.91 kB / 423.6 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005145/0.107, allocations: 386.3 kB / 424 MB, free: 6.191 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003268/0.1073, allocations: 175.9 kB / 424.2 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001355/0.1075, allocations: 74.55 kB / 424.2 MB, free: 5.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.784e-05/0.1075, allocations: 4 kB / 424.2 MB, free: 5.906 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001653/0.1077, allocations: 83.33 kB / 424.3 MB, free: 5.812 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.503e-06/0.1077, allocations: 0 / 424.3 MB, free: 5.812 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005104/0.1082, allocations: 225.4 kB / 424.5 MB, free: 5.586 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/0.1083, allocations: 144.4 kB / 424.7 MB, free: 5.414 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002927/0.1086, allocations: 280.9 kB / 425 MB, free: 5.125 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.941e-05/0.1086, allocations: 29.7 kB / 425 MB, free: 5.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.16e-05/0.1087, allocations: 116.7 kB / 425.1 MB, free: 4.973 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.784e-05/0.1087, allocations: 39.72 kB / 425.1 MB, free: 4.934 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.824e-05/0.1088, allocations: 53.89 kB / 425.2 MB, free: 4.875 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1089, allocations: 330.8 kB / 425.5 MB, free: 4.543 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.873e-05/0.109, allocations: 40.44 kB / 425.6 MB, free: 4.504 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001921/0.1092, allocations: 174.7 kB / 425.7 MB, free: 4.273 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000261/0.1095, allocations: 195.3 kB / 425.9 MB, free: 4.027 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.1095, allocations: 0 / 425.9 MB, free: 4.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003709/0.1099, allocations: 233.5 kB / 426.1 MB, free: 3.793 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.1099, allocations: 8 kB / 426.2 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.1099, allocations: 4 kB / 426.2 MB, free: 3.781 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.1099, allocations: 4 kB / 426.2 MB, free: 3.777 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.431e-05/0.11, allocations: 23.92 kB / 426.2 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.11, allocations: 4 kB / 426.2 MB, free: 3.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001055/0.1101, allocations: 19.89 kB / 426.2 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.477e-05/0.1101, allocations: 16 kB / 426.2 MB, free: 3.715 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.0001539/0.1103, allocations: 169 kB / 426.4 MB, free: 3.543 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001958/0.1105, allocations: 133.8 kB / 426.5 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.438e-05/0.1106, allocations: 30.11 kB / 426.5 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.1106, allocations: 7.938 kB / 426.6 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.1106, allocations: 3.938 kB / 426.6 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.1106, allocations: 7.938 kB / 426.6 MB, free: 3.355 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002276/0.1108, allocations: 249.4 kB / 426.8 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.1108, allocations: 0 / 426.8 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.649e-05/0.1108, allocations: 8 kB / 426.8 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.1108, allocations: 4 kB / 426.8 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/0.1109, allocations: 4 kB / 426.8 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.72e-06/0.1109, allocations: 7.984 kB / 426.8 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.1109, allocations: 0 / 426.8 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003522/0.1112, allocations: 226.5 kB / 427.1 MB, free: 2.793 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/0.1113, allocations: 116.9 kB / 427.2 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.659e-05/0.1114, allocations: 8 kB / 427.2 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.544e-05/0.1114, allocations: 8 kB / 427.2 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.789e-05/0.1115, allocations: 7.984 kB / 427.2 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.688e-05/0.1115, allocations: 8 kB / 427.2 MB, free: 2.629 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002054/0.1117, allocations: 200.4 kB / 427.4 MB, free: 2.434 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1117, allocations: 0 / 427.4 MB, free: 2.434 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002929/0.112, allocations: 47.88 kB / 427.4 MB, free: 2.387 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.002177/0.1142, allocations: 1.159 MB / 428.6 MB, free: 1.367 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003074/0.1145, allocations: 140.3 kB / 428.7 MB, free: 1.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1145, allocations: 0 / 428.7 MB, free: 1.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.021e-05/0.1145, allocations: 27.98 kB / 428.8 MB, free: 1.203 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004788/0.115, allocations: 113.6 kB / 428.9 MB, free: 1.098 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002748/0.1178, allocations: 2.38 MB / 431.3 MB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003724/0.1181, allocations: 0.7556 MB / 432 MB, free: 13.74 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.021e-05/0.1182, allocations: 34.67 kB / 432 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000105/0.1183, allocations: 63.42 kB / 432.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1183, allocations: 0 / 432.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03858/0.1569, allocations: 5.581 MB / 437.7 MB, free: 8.164 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.914/8.071, allocations: 6.688 kB / 437.7 MB, free: 8.16 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.78926e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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.71248915605247]