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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001513/0.001513, allocations: 106.2 kB / 16.62 MB, free: 6.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001673/0.001673, allocations: 193.8 kB / 17.55 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.546/1.546, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 50.92 kB / 300.2 MB, free: 6.109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1077, allocations: 49.44 MB / 349.7 MB, free: 4.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.004123/0.1119, allocations: 2.035 MB / 351.7 MB, free: 2.605 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002122/0.1141, allocations: 1.087 MB / 352.8 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002328/0.1143, allocations: 7.938 kB / 352.8 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000639/0.115, allocations: 135.7 kB / 352.9 MB, free: 1.371 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000373/0.1154, allocations: 109.6 kB / 353.1 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007355/0.1161, allocations: 230.9 kB / 353.3 MB, free: 1.043 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002643/0.1164, allocations: 223.4 kB / 353.5 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001485/0.1166, allocations: 40.3 kB / 353.5 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001297/0.1167, allocations: 99.61 kB / 353.6 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001299/0.1168, allocations: 95.55 kB / 353.7 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.697e-05/0.1169, allocations: 12 kB / 353.7 MB, free: 0.582 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001352/0.117, allocations: 47.98 kB / 353.8 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.981e-05/0.1171, allocations: 59.75 kB / 353.8 MB, free: 488 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.424e-05/0.1172, allocations: 91.47 kB / 353.9 MB, free: 396 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003319/0.1175, allocations: 255.4 kB / 354.2 MB, free: 140 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1176, allocations: 0 / 354.2 MB, free: 140 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1176, allocations: 0 / 354.2 MB, free: 140 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.22e-05/0.1176, allocations: 0 / 354.2 MB, free: 140 kB / 286.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.0008626/0.1184, allocations: 0.5509 MB / 354.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.1185, allocations: 8.031 kB / 354.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.834e-05/0.1186, allocations: 42.75 kB / 354.8 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.595e-05/0.1186, allocations: 28.64 kB / 354.8 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003369/0.119, allocations: 278.7 kB / 355.1 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.086e-05/0.119, allocations: 12.38 kB / 355.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.372e-05/0.119, allocations: 15.94 kB / 355.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005325/0.1196, allocations: 305.8 kB / 355.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.1196, allocations: 0 / 355.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.952e-05/0.1196, allocations: 8 kB / 355.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.1196, allocations: 0 / 355.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000155/0.1198, allocations: 59.91 kB / 355.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005076/0.1203, allocations: 394.2 kB / 355.9 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003165/0.1206, allocations: 176 kB / 356 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001412/0.1208, allocations: 86.48 kB / 356.1 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.382e-05/0.1208, allocations: 16.05 kB / 356.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000166/0.121, allocations: 71.33 kB / 356.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.104e-06/0.121, allocations: 0 / 356.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004865/0.1215, allocations: 225.2 kB / 356.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.716e-05/0.1216, allocations: 140.5 kB / 356.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002784/0.1219, allocations: 276.8 kB / 356.8 MB, free: 13.22 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.348e-05/0.1219, allocations: 29.7 kB / 356.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.101e-05/0.122, allocations: 116.7 kB / 357 MB, free: 13.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.705e-05/0.1221, allocations: 39.61 kB / 357 MB, free: 13.03 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.579e-05/0.1221, allocations: 49.94 kB / 357.1 MB, free: 12.97 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.1223, allocations: 334.8 kB / 357.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.636e-05/0.1224, allocations: 40.45 kB / 357.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001604/0.1225, allocations: 166 kB / 357.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002571/0.1228, allocations: 207.5 kB / 357.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.69e-06/0.1228, allocations: 8 kB / 357.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003809/0.1232, allocations: 221.3 kB / 358 MB, free: 11.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/0.1232, allocations: 8 kB / 358 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.1232, allocations: 4 kB / 358 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.1233, allocations: 4 kB / 358 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.1234, allocations: 23.92 kB / 358.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.202e-05/0.1234, allocations: 11.94 kB / 358.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.1235, allocations: 19.84 kB / 358.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.816e-05/0.1236, allocations: 15.98 kB / 358.1 MB, free: 11.8 MB / 302.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.0001671/0.1237, allocations: 168.6 kB / 358.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001878/0.1239, allocations: 122 kB / 358.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.018e-05/0.124, allocations: 29.7 kB / 358.4 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.124, allocations: 4 kB / 358.4 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.124, allocations: 96 / 358.4 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.124, allocations: 15.86 kB / 358.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002281/0.1243, allocations: 245.4 kB / 358.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.1243, allocations: 0 / 358.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.444e-05/0.1243, allocations: 8 kB / 358.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.1243, allocations: 7.984 kB / 358.7 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.956e-05/0.1244, allocations: 8 kB / 358.7 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.86e-06/0.1244, allocations: 3.938 kB / 358.7 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.1244, allocations: 0 / 358.7 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003406/0.1247, allocations: 222.4 kB / 358.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.1248, allocations: 108.9 kB / 359 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.064e-05/0.1249, allocations: 12 kB / 359 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.368e-05/0.125, allocations: 8 kB / 359 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.914e-05/0.125, allocations: 8.047 kB / 359 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.14e-05/0.125, allocations: 12 kB / 359.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001846/0.1252, allocations: 200.4 kB / 359.3 MB, free: 10.53 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1252, allocations: 0 / 359.3 MB, free: 10.53 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000317/0.1256, allocations: 43.91 kB / 359.3 MB, free: 10.49 MB / 302.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.001684/0.1273, allocations: 1.165 MB / 360.5 MB, free: 9.449 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003359/0.1276, allocations: 148.1 kB / 360.6 MB, free: 9.305 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1276, allocations: 3.938 kB / 360.6 MB, free: 9.301 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.867e-05/0.1277, allocations: 27.98 kB / 360.6 MB, free: 9.273 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004919/0.1282, allocations: 119.8 kB / 360.8 MB, free: 9.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001913/0.1301, allocations: 1.282 MB / 362 MB, free: 7.762 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002934/0.1304, allocations: 0.748 MB / 362.8 MB, free: 6.984 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001017/0.1305, allocations: 34.16 kB / 362.8 MB, free: 6.949 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001125/0.1307, allocations: 67.41 kB / 362.9 MB, free: 6.883 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1307, allocations: 0 / 362.9 MB, free: 6.883 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01799/0.1487, allocations: 5.231 MB / 368.1 MB, free: 1.812 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002227/0.1489, allocations: 259.4 kB / 368.4 MB, free: 1.555 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.192/2.341, allocations: 0 / 368.4 MB, free: 1.555 MB / 302.1 MB (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 --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) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches