Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.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.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SampleClocked",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.0008923/0.0008919, allocations: 87.33 kB / 16.31 MB, free: 6.449 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.0008681/0.0008682, allocations: 180.9 kB / 17.21 MB, free: 6.32 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.5/1.5, allocations: 223.3 MB / 241.2 MB, free: 5.281 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002696/0.0002697, allocations: 8.969 kB / 300.9 MB, free: 5.57 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1249, allocations: 50.43 MB / 351.3 MB, free: 11.36 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked): time 0.001736/0.1267, allocations: 1.193 MB / 352.5 MB, free: 10.16 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000354/0.1271, allocations: 143.5 kB / 352.7 MB, free: 10.02 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.553e-05/0.1272, allocations: 0 / 352.7 MB, free: 10.02 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.951e-05/0.1272, allocations: 0 / 352.7 MB, free: 10.02 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001233/0.1273, allocations: 11.92 kB / 352.7 MB, free: 10 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002492/0.1276, allocations: 35.91 kB / 352.7 MB, free: 9.969 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.241e-05/0.1277, allocations: 27.92 kB / 352.7 MB, free: 9.941 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.664e-05/0.1278, allocations: 4 kB / 352.8 MB, free: 9.938 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.953e-05/0.1278, allocations: 7.875 kB / 352.8 MB, free: 9.93 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.351e-05/0.1278, allocations: 15.92 kB / 352.8 MB, free: 9.914 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.094e-05/0.1279, allocations: 4 kB / 352.8 MB, free: 9.91 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.698e-06/0.1279, allocations: 0 / 352.8 MB, free: 9.91 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.042e-05/0.1279, allocations: 4 kB / 352.8 MB, free: 9.906 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.676e-05/0.128, allocations: 33.64 kB / 352.8 MB, free: 9.867 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.549e-05/0.128, allocations: 31.94 kB / 352.8 MB, free: 9.836 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.128, allocations: 4 kB / 352.9 MB, free: 9.832 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.128, allocations: 0 / 352.9 MB, free: 9.832 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.1281, allocations: 0 / 352.9 MB, free: 9.832 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004098/0.1285, allocations: 351.2 kB / 353.2 MB, free: 9.441 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.1285, allocations: 8.031 kB / 353.2 MB, free: 9.434 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.707e-05/0.1286, allocations: 30.56 kB / 353.2 MB, free: 9.395 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.001e-05/0.1286, allocations: 11.86 kB / 353.2 MB, free: 9.383 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000196/0.1288, allocations: 190.8 kB / 353.4 MB, free: 9.156 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.921e-05/0.1288, allocations: 8 kB / 353.4 MB, free: 9.148 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.237e-06/0.1289, allocations: 0 / 353.4 MB, free: 9.148 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002333/0.1291, allocations: 85.11 kB / 353.5 MB, free: 9.047 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.657e-06/0.1291, allocations: 3.938 kB / 353.5 MB, free: 9.043 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.737e-06/0.1291, allocations: 0 / 353.5 MB, free: 9.043 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.1291, allocations: 3.953 kB / 353.5 MB, free: 9.039 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.513e-05/0.1292, allocations: 19.98 kB / 353.5 MB, free: 9.02 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003076/0.1295, allocations: 253.8 kB / 353.8 MB, free: 8.719 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.971e-05/0.1296, allocations: 45.14 kB / 353.8 MB, free: 8.656 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.77e-05/0.1296, allocations: 25.72 kB / 353.9 MB, free: 8.625 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.704e-05/0.1297, allocations: 0 / 353.9 MB, free: 8.625 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.006e-05/0.1297, allocations: 30.56 kB / 353.9 MB, free: 8.586 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 8.42e-07/0.1297, allocations: 0 / 353.9 MB, free: 8.586 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002137/0.1299, allocations: 69.7 kB / 354 MB, free: 8.512 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.225e-05/0.13, allocations: 81.05 kB / 354 MB, free: 8.414 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.1301, allocations: 136.2 kB / 354.2 MB, free: 8.273 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.117e-05/0.1301, allocations: 25.7 kB / 354.2 MB, free: 8.242 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.058e-05/0.1302, allocations: 92.08 kB / 354.3 MB, free: 8.148 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.676e-06/0.1302, allocations: 4 kB / 354.3 MB, free: 8.145 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.415e-06/0.1302, allocations: 0 / 354.3 MB, free: 8.145 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.1303, allocations: 310.8 kB / 354.6 MB, free: 7.832 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.02e-05/0.1304, allocations: 12.02 kB / 354.6 MB, free: 7.82 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.815e-05/0.1304, allocations: 21.72 kB / 354.6 MB, free: 7.793 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.848e-05/0.1304, allocations: 4 kB / 354.6 MB, free: 7.789 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1304, allocations: 0 / 354.6 MB, free: 7.789 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.548e-05/0.1305, allocations: 53.69 kB / 354.7 MB, free: 7.73 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.1306, allocations: 8 kB / 354.7 MB, free: 7.723 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.1306, allocations: 0 / 354.7 MB, free: 7.723 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.1306, allocations: 3.953 kB / 354.7 MB, free: 7.719 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.518e-05/0.1306, allocations: 0 / 354.7 MB, free: 7.719 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.796e-06/0.1306, allocations: 4 kB / 354.7 MB, free: 7.715 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.444e-05/0.1306, allocations: 0 / 354.7 MB, free: 7.715 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.781e-06/0.1307, allocations: 0 / 354.7 MB, free: 7.715 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 8.847e-05/0.1308, allocations: 117.8 kB / 354.8 MB, free: 7.59 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.767e-05/0.1308, allocations: 45.61 kB / 354.9 MB, free: 7.539 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.102e-05/0.1309, allocations: 15.52 kB / 354.9 MB, free: 7.52 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.1309, allocations: 3.953 kB / 354.9 MB, free: 7.516 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.1309, allocations: 4 kB / 354.9 MB, free: 7.512 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.1309, allocations: 0 / 354.9 MB, free: 7.512 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001719/0.1311, allocations: 157.7 kB / 355 MB, free: 7.309 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.1311, allocations: 0 / 355 MB, free: 7.309 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.491e-06/0.1311, allocations: 4 kB / 355 MB, free: 7.305 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.1311, allocations: 3.984 kB / 355 MB, free: 7.301 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.563e-06/0.1311, allocations: 0 / 355 MB, free: 7.301 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.1311, allocations: 4.031 kB / 355.1 MB, free: 7.297 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.1311, allocations: 11.89 kB / 355.1 MB, free: 7.285 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001452/0.1313, allocations: 152.3 kB / 355.2 MB, free: 7.117 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.793e-05/0.1313, allocations: 89 kB / 355.3 MB, free: 7.012 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.541e-05/0.1314, allocations: 0 / 355.3 MB, free: 7.012 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.535e-05/0.1314, allocations: 11.97 kB / 355.3 MB, free: 7 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.027e-05/0.1315, allocations: 7.984 kB / 355.3 MB, free: 6.992 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.428e-06/0.1315, allocations: 3.953 kB / 355.3 MB, free: 6.988 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.078e-05/0.1315, allocations: 99.25 kB / 355.4 MB, free: 6.891 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1316, allocations: 0 / 355.4 MB, free: 6.891 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000212/0.1318, allocations: 4 kB / 355.4 MB, free: 6.887 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0003951/0.1322, allocations: 0.6821 MB / 356.1 MB, free: 6.176 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000102/0.1323, allocations: 19.94 kB / 356.1 MB, free: 6.156 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1323, allocations: 3.938 kB / 356.1 MB, free: 6.152 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 2.644e-05/0.1323, allocations: 7.984 kB / 356.1 MB, free: 6.145 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003456/0.1327, allocations: 17 kB / 356.2 MB, free: 6.129 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000663/0.1334, allocations: 428.2 kB / 356.6 MB, free: 5.656 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002353/0.1336, allocations: 0.6888 MB / 357.3 MB, free: 4.941 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.003e-05/0.1336, allocations: 4 kB / 357.3 MB, free: 4.938 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.376e-05/0.1337, allocations: 7.438 kB / 357.3 MB, free: 4.93 MB / 286.1 MB Notification: Performance of SimCode: time 3e-07/0.1337, allocations: 0 / 357.3 MB, free: 4.93 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01142/0.1451, allocations: 1.143 MB / 358.4 MB, free: 3.961 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002235/0.1454, allocations: 211 kB / 358.6 MB, free: 3.719 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.913/2.059, allocations: 3.938 kB / 358.6 MB, free: 3.715 MB / 286.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SampleClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked_res.mat does not exist to compare? outputFormat=mat