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.001358/0.001358, allocations: 98.62 kB / 16.3 MB, free: 5.559 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.001528/0.001528, allocations: 183.8 kB / 17.19 MB, free: 5.492 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.561/1.561, allocations: 223.2 MB / 241.1 MB, free: 280 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003155/0.0003156, allocations: 8 kB / 300.8 MB, free: 6.336 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1252, allocations: 50.4 MB / 351.2 MB, free: 3.914 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003389/0.1286, allocations: 1.641 MB / 352.9 MB, free: 2.254 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002497/0.1312, allocations: 1.002 MB / 353.9 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002421/0.1315, allocations: 4 kB / 353.9 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008297/0.1323, allocations: 131.6 kB / 354 MB, free: 1.113 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003569/0.1327, allocations: 99.67 kB / 354.1 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009409/0.1337, allocations: 218.4 kB / 354.3 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002969/0.134, allocations: 131.7 kB / 354.4 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001844/0.1342, allocations: 48.27 kB / 354.5 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001231/0.1343, allocations: 67.7 kB / 354.6 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001143/0.1344, allocations: 75.61 kB / 354.6 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.134e-05/0.1344, allocations: 8 kB / 354.6 MB, free: 496 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001338/0.1346, allocations: 31.97 kB / 354.7 MB, free: 464 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.521e-05/0.1347, allocations: 43.83 kB / 354.7 MB, free: 420 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.785e-05/0.1347, allocations: 57.58 kB / 354.8 MB, free: 356 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002615/0.135, allocations: 183.8 kB / 354.9 MB, free: 172 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.135, allocations: 4 kB / 354.9 MB, free: 168 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.135, allocations: 0 / 354.9 MB, free: 168 kB / 286.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.135, allocations: 4 kB / 355 MB, free: 164 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.0009289/0.136, allocations: 0.5 MB / 355.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.136, allocations: 11.97 kB / 355.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.883e-05/0.1361, allocations: 50.5 kB / 355.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.074e-05/0.1362, allocations: 27.72 kB / 355.5 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003969/0.1366, allocations: 269.6 kB / 355.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.072e-05/0.1366, allocations: 12 kB / 355.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.298e-05/0.1366, allocations: 12 kB / 355.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005482/0.1372, allocations: 294 kB / 356.1 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.1372, allocations: 0 / 356.1 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.264e-05/0.1372, allocations: 7.953 kB / 356.1 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.1372, allocations: 4 kB / 356.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001514/0.1374, allocations: 55.91 kB / 356.2 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000645/0.138, allocations: 390.3 kB / 356.6 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003493/0.1384, allocations: 183.9 kB / 356.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.195e-05/0.1385, allocations: 8.219 kB / 356.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002156/0.1387, allocations: 79.44 kB / 356.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 3.787e-06/0.1387, allocations: 3.984 kB / 356.8 MB, free: 14.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.000547/0.1393, allocations: 213.5 kB / 357 MB, free: 13.85 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001255/0.1394, allocations: 148.6 kB / 357.2 MB, free: 13.67 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002883/0.1397, allocations: 276.8 kB / 357.5 MB, free: 13.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.455e-05/0.1397, allocations: 25.7 kB / 357.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.991e-05/0.1398, allocations: 116.7 kB / 357.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.974e-05/0.1399, allocations: 43.56 kB / 357.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.051e-06/0.1399, allocations: 0 / 357.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.14, allocations: 334.8 kB / 358 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001101/0.1402, allocations: 44.44 kB / 358 MB, free: 12.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001754/0.1403, allocations: 167 kB / 358.2 MB, free: 12.6 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001142/0.1405, allocations: 68.2 kB / 358.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.1405, allocations: 3.953 kB / 358.2 MB, free: 12.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003637/0.1408, allocations: 221 kB / 358.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/0.1409, allocations: 8 kB / 358.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.1409, allocations: 4 kB / 358.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.1409, allocations: 8 kB / 358.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/0.141, allocations: 23.92 kB / 358.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.398e-05/0.141, allocations: 8 kB / 358.5 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001171/0.1412, allocations: 16.38 kB / 358.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.493e-05/0.1412, allocations: 16 kB / 358.5 MB, free: 12.23 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 ($whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,and1.y,and1.u2,and1.u1,upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000167/0.1414, allocations: 163.9 kB / 358.7 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001854/0.1416, allocations: 121.4 kB / 358.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.342e-05/0.1417, allocations: 29.7 kB / 358.8 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.1417, allocations: 4 kB / 358.9 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.046e-06/0.1417, allocations: 0 / 358.9 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.1417, allocations: 4 kB / 358.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002636/0.142, allocations: 253.4 kB / 359.1 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.142, allocations: 0 / 359.1 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.772e-05/0.142, allocations: 11.95 kB / 359.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.142, allocations: 0 / 359.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.763e-05/0.142, allocations: 11.98 kB / 359.1 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.1421, allocations: 3.938 kB / 359.1 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.1421, allocations: 4 kB / 359.1 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003499/0.1424, allocations: 248.8 kB / 359.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.1426, allocations: 116.8 kB / 359.5 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.965e-05/0.1426, allocations: 8 kB / 359.5 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.515e-05/0.1427, allocations: 8.078 kB / 359.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.755e-05/0.1427, allocations: 11.94 kB / 359.5 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.187e-05/0.1428, allocations: 12.06 kB / 359.5 MB, free: 11.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000189/0.143, allocations: 196.5 kB / 359.7 MB, free: 10.92 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.442e-06/0.143, allocations: 0 / 359.7 MB, free: 10.92 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003519/0.1433, allocations: 47.92 kB / 359.8 MB, free: 10.88 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001886/0.1452, allocations: 1.309 MB / 361.1 MB, free: 9.688 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003645/0.1456, allocations: 136.6 kB / 361.2 MB, free: 9.555 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.1456, allocations: 4 kB / 361.2 MB, free: 9.551 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.834e-05/0.1457, allocations: 28.17 kB / 361.2 MB, free: 9.523 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004708/0.1462, allocations: 115.3 kB / 361.4 MB, free: 9.414 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002954/0.1492, allocations: 3.783 MB / 365.1 MB, free: 5.492 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003291/0.1495, allocations: 0.7599 MB / 365.9 MB, free: 4.703 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001123/0.1496, allocations: 30.16 kB / 365.9 MB, free: 4.676 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000106/0.1497, allocations: 67.41 kB / 366 MB, free: 4.609 MB / 302.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1498, allocations: 0 / 366 MB, free: 4.609 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2774/0.4272, allocations: 4.919 MB / 370.9 MB, free: 24.45 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001647/0.4274, allocations: 229.1 kB / 371.1 MB, free: 24.22 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.976/2.403, allocations: 2.625 kB / 371.1 MB, free: 24.22 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat does not exist to compare? outputFormat=mat