Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.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.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",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.001188/0.001188, allocations: 89.31 kB / 16.3 MB, free: 5.656 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.001512/0.001512, allocations: 187 kB / 17.2 MB, free: 5.59 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.506/1.506, allocations: 223.2 MB / 241.1 MB, free: 14.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003024/0.0003024, allocations: 4 kB / 300.8 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1277, allocations: 50.4 MB / 351.2 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.002227/0.13, allocations: 1.551 MB / 352.8 MB, free: 2.148 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001503/0.1315, allocations: 0.9438 MB / 353.7 MB, free: 1.199 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001062/0.1317, allocations: 4 kB / 353.7 MB, free: 1.195 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005574/0.1322, allocations: 131.7 kB / 353.9 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002343/0.1325, allocations: 95.67 kB / 353.9 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004667/0.133, allocations: 174.4 kB / 354.1 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001682/0.1331, allocations: 103.8 kB / 354.2 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.788e-05/0.1332, allocations: 33.52 kB / 354.3 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.253e-05/0.1333, allocations: 63.7 kB / 354.3 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.425e-05/0.1334, allocations: 55.77 kB / 354.4 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.708e-05/0.1335, allocations: 0 / 354.4 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001082/0.1336, allocations: 39.91 kB / 354.4 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.519e-05/0.1336, allocations: 31.91 kB / 354.4 MB, free: 500 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.087e-05/0.1337, allocations: 49.58 kB / 354.5 MB, free: 444 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000184/0.1339, allocations: 155.9 kB / 354.6 MB, free: 288 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.1339, allocations: 0 / 354.6 MB, free: 288 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1339, allocations: 0 / 354.6 MB, free: 288 kB / 286.1 MB Notification: Performance of Transformations before backend: time 3.927e-06/0.1339, allocations: 4 kB / 354.6 MB, free: 284 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006583/0.1346, allocations: 492 kB / 355.1 MB, free: 15.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.1346, allocations: 12.03 kB / 355.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.963e-05/0.1347, allocations: 34.56 kB / 355.2 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.068e-05/0.1347, allocations: 15.81 kB / 355.2 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000306/0.135, allocations: 257.7 kB / 355.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.477e-05/0.1351, allocations: 8 kB / 355.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.269e-05/0.1351, allocations: 4 kB / 355.4 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002728/0.1354, allocations: 142.7 kB / 355.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.1354, allocations: 0 / 355.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.577e-05/0.1354, allocations: 7.953 kB / 355.6 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.1354, allocations: 0 / 355.6 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.443e-05/0.1355, allocations: 43.91 kB / 355.6 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004241/0.1359, allocations: 350.5 kB / 356 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001973/0.1362, allocations: 111.8 kB / 356.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.322e-05/0.1362, allocations: 3.953 kB / 356.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001415/0.1363, allocations: 79.58 kB / 356.2 MB, free: 14.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.423e-06/0.1363, allocations: 0 / 356.2 MB, free: 14.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003145/0.1367, allocations: 145.3 kB / 356.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.929e-05/0.1368, allocations: 140.4 kB / 356.5 MB, free: 14.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002696/0.137, allocations: 257 kB / 356.7 MB, free: 13.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.101e-05/0.1371, allocations: 33.7 kB / 356.7 MB, free: 13.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.649e-05/0.1372, allocations: 112.1 kB / 356.8 MB, free: 13.8 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.075e-05/0.1372, allocations: 15.75 kB / 356.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.378e-06/0.1372, allocations: 256 / 356.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.1373, allocations: 334.8 kB / 357.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.662e-05/0.1374, allocations: 27.86 kB / 357.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.449e-05/0.1375, allocations: 62 kB / 357.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.021e-05/0.1375, allocations: 39.95 kB / 357.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.1375, allocations: 0 / 357.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001902/0.1377, allocations: 113.4 kB / 357.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.1378, allocations: 8 kB / 357.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.1378, allocations: 0 / 357.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.1378, allocations: 0 / 357.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.609e-05/0.1379, allocations: 15.94 kB / 357.4 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.1379, allocations: 4.125 kB / 357.5 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.083e-05/0.138, allocations: 15.89 kB / 357.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.228e-06/0.138, allocations: 4 kB / 357.5 MB, free: 13.14 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001248/0.1381, allocations: 142.8 kB / 357.6 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.109e-05/0.1382, allocations: 65.41 kB / 357.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.071e-05/0.1383, allocations: 21.7 kB / 357.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.1383, allocations: 4 kB / 357.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.1383, allocations: 4.062 kB / 357.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.1383, allocations: 0 / 357.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001858/0.1385, allocations: 221.6 kB / 357.9 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.1385, allocations: 4 kB / 357.9 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.665e-05/0.1385, allocations: 7.938 kB / 357.9 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.1385, allocations: 0 / 357.9 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.1386, allocations: 8.266 kB / 357.9 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.716e-06/0.1386, allocations: 8 kB / 357.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1386, allocations: 0 / 357.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002362/0.1388, allocations: 181.9 kB / 358.1 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.203e-05/0.1389, allocations: 108.8 kB / 358.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.263e-05/0.1389, allocations: 7.984 kB / 358.2 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.061e-05/0.139, allocations: 4 kB / 358.2 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.418e-05/0.1391, allocations: 11.98 kB / 358.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.564e-05/0.1391, allocations: 11.94 kB / 358.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001706/0.1393, allocations: 192.5 kB / 358.5 MB, free: 12.03 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1393, allocations: 0 / 358.5 MB, free: 12.03 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002559/0.1395, allocations: 28 kB / 358.5 MB, free: 12 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: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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.001356/0.1409, allocations: 1.16 MB / 359.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001956/0.1411, allocations: 71.84 kB / 359.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1411, allocations: 3.938 kB / 359.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.571e-05/0.1412, allocations: 24.25 kB / 359.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003196/0.1415, allocations: 62.02 kB / 359.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001543/0.1431, allocations: 1.545 MB / 361.3 MB, free: 9.176 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002573/0.1433, allocations: 0.74 MB / 362.1 MB, free: 8.41 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.2e-05/0.1434, allocations: 21.53 kB / 362.1 MB, free: 8.391 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.532e-05/0.1435, allocations: 47.42 kB / 362.2 MB, free: 8.344 MB / 302.1 MB Notification: Performance of SimCode: time 6.52e-07/0.1435, allocations: 0 / 362.2 MB, free: 8.344 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01452/0.158, allocations: 3.991 MB / 366.1 MB, free: 4.523 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001952/0.1583, allocations: 239.9 kB / 366.4 MB, free: 4.281 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.018/2.176, allocations: 0 / 366.4 MB, free: 4.281 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat does not exist to compare? outputFormat=mat