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.001843/0.001843, allocations: 104.8 kB / 16.92 MB, free: 6.145 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.002224/0.002224, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.587/1.587, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 43.94 kB / 300.7 MB, free: 5.742 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1227, allocations: 49.45 MB / 350.2 MB, free: 4.285 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.004411/0.1272, allocations: 1.974 MB / 352.1 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002057/0.1293, allocations: 1.106 MB / 353.3 MB, free: 1.172 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001427/0.1294, allocations: 8 kB / 353.3 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007501/0.1302, allocations: 147.4 kB / 353.4 MB, free: 1.02 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003147/0.1305, allocations: 115.5 kB / 353.5 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006853/0.1312, allocations: 238.3 kB / 353.8 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002818/0.1315, allocations: 227.4 kB / 354 MB, free: 464 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001707/0.1317, allocations: 48.27 kB / 354 MB, free: 416 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001222/0.1318, allocations: 91.58 kB / 354.1 MB, free: 324 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001329/0.132, allocations: 91.59 kB / 354.2 MB, free: 232 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.182e-05/0.132, allocations: 12 kB / 354.2 MB, free: 220 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000132/0.1321, allocations: 59.97 kB / 354.3 MB, free: 160 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.723e-05/0.1322, allocations: 55.78 kB / 354.3 MB, free: 104 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.049e-05/0.1323, allocations: 95.39 kB / 354.4 MB, free: 8 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005814/0.1329, allocations: 247.5 kB / 354.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.1329, allocations: 0 / 354.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.706e-06/0.1329, allocations: 0 / 354.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.132e-05/0.133, allocations: 0 / 354.7 MB, free: 15.77 MB / 302.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.001034/0.134, allocations: 0.5507 MB / 355.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.451e-05/0.1341, allocations: 8.031 kB / 355.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.265e-05/0.1341, allocations: 46.75 kB / 355.3 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.556e-05/0.1342, allocations: 24.66 kB / 355.3 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004417/0.1347, allocations: 282.7 kB / 355.6 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.057e-05/0.1347, allocations: 12.38 kB / 355.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.171e-05/0.1347, allocations: 15.94 kB / 355.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006411/0.1354, allocations: 304.4 kB / 355.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.1354, allocations: 0 / 355.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.526e-05/0.1354, allocations: 11.94 kB / 355.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.205e-06/0.1355, allocations: 4 kB / 355.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001663/0.1356, allocations: 59.95 kB / 356 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006739/0.1363, allocations: 394.2 kB / 356.3 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003859/0.1367, allocations: 176 kB / 356.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001597/0.1369, allocations: 82.53 kB / 356.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.75e-05/0.1369, allocations: 8 kB / 356.6 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002149/0.1372, allocations: 79.31 kB / 356.7 MB, free: 13.51 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.274e-06/0.1372, allocations: 0 / 356.7 MB, free: 13.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005693/0.1378, allocations: 225.2 kB / 356.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000164/0.1379, allocations: 144.6 kB / 357 MB, free: 13.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003659/0.1383, allocations: 272.8 kB / 357.3 MB, free: 12.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.019e-05/0.1383, allocations: 29.7 kB / 357.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/0.1385, allocations: 120.7 kB / 357.5 MB, free: 12.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.235e-05/0.1385, allocations: 35.62 kB / 357.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.677e-05/0.1386, allocations: 49.94 kB / 357.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000191/0.1388, allocations: 334.8 kB / 357.9 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.756e-05/0.1389, allocations: 36.45 kB / 357.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001834/0.1391, allocations: 167.2 kB / 358.1 MB, free: 12 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000266/0.1393, allocations: 203.5 kB / 358.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.1394, allocations: 8 kB / 358.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003481/0.1397, allocations: 221 kB / 358.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.1397, allocations: 8.531 kB / 358.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.1398, allocations: 8 kB / 358.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.1398, allocations: 4 kB / 358.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.061e-05/0.1399, allocations: 28.23 kB / 358.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.1399, allocations: 7.938 kB / 358.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.14, allocations: 19.84 kB / 358.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.38e-05/0.14, allocations: 12 kB / 358.6 MB, free: 11.43 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.0001755/0.1402, allocations: 167.9 kB / 358.7 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001882/0.1404, allocations: 125.3 kB / 358.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.385e-05/0.1405, allocations: 29.7 kB / 358.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.1405, allocations: 4 kB / 358.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.1405, allocations: 0 / 358.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.1405, allocations: 7.922 kB / 358.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002542/0.1408, allocations: 253.4 kB / 359.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.1408, allocations: 0 / 359.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.98e-05/0.1408, allocations: 11.94 kB / 359.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.1409, allocations: 0 / 359.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.561e-05/0.1409, allocations: 11.98 kB / 359.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.1409, allocations: 0 / 359.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1409, allocations: 4 kB / 359.2 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003564/0.1412, allocations: 225.4 kB / 359.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001177/0.1414, allocations: 108.9 kB / 359.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.079e-05/0.1414, allocations: 8 kB / 359.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.932e-05/0.1415, allocations: 8 kB / 359.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.043e-05/0.1416, allocations: 15.92 kB / 359.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-05/0.1416, allocations: 12.06 kB / 359.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002479/0.1418, allocations: 200.4 kB / 359.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1418, allocations: 0 / 359.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003174/0.1422, allocations: 43.91 kB / 359.8 MB, free: 10.11 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.002272/0.1444, allocations: 1.152 MB / 360.9 MB, free: 9.082 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004588/0.1449, allocations: 152.4 kB / 361.1 MB, free: 8.934 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.164e-06/0.1449, allocations: 4.312 kB / 361.1 MB, free: 8.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.416e-05/0.145, allocations: 23.98 kB / 361.1 MB, free: 8.906 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005964/0.1456, allocations: 124.5 kB / 361.2 MB, free: 8.789 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002376/0.148, allocations: 1.226 MB / 362.5 MB, free: 7.441 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005587/0.1486, allocations: 0.7674 MB / 363.2 MB, free: 6.648 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001139/0.1487, allocations: 25.94 kB / 363.3 MB, free: 6.621 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001444/0.1489, allocations: 63.41 kB / 363.3 MB, free: 6.559 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1489, allocations: 4 kB / 363.3 MB, free: 6.555 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03012/0.179, allocations: 5.35 MB / 368.7 MB, free: 1.344 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.885/9.064, allocations: 3.938 kB / 368.7 MB, free: 1.34 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