Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.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.RealSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",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.0009222/0.0009222, allocations: 87.11 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.0009838/0.0009838, allocations: 178.8 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.543/1.543, allocations: 223.3 MB / 241.2 MB, free: 272 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002732/0.0002735, allocations: 5.094 kB / 300.9 MB, free: 6.336 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1306, allocations: 50.42 MB / 351.3 MB, free: 3.902 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep): time 0.002001/0.1327, allocations: 1.155 MB / 352.5 MB, free: 2.734 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000193/0.1329, allocations: 39.89 kB / 352.5 MB, free: 2.695 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.096e-05/0.133, allocations: 0 / 352.5 MB, free: 2.695 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.765e-05/0.133, allocations: 7.938 kB / 352.5 MB, free: 2.688 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001063/0.1331, allocations: 4 kB / 352.5 MB, free: 2.684 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002648/0.1334, allocations: 19.97 kB / 352.6 MB, free: 2.664 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.824e-05/0.1335, allocations: 27.86 kB / 352.6 MB, free: 2.637 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.264e-05/0.1336, allocations: 4 kB / 352.6 MB, free: 2.633 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.076e-05/0.1336, allocations: 15.92 kB / 352.6 MB, free: 2.617 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.177e-05/0.1337, allocations: 7.938 kB / 352.6 MB, free: 2.609 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.679e-05/0.1337, allocations: 0 / 352.6 MB, free: 2.609 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.237e-06/0.1337, allocations: 0 / 352.6 MB, free: 2.609 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.594e-05/0.1338, allocations: 15.98 kB / 352.6 MB, free: 2.594 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.586e-05/0.1338, allocations: 29.64 kB / 352.7 MB, free: 2.559 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.015e-05/0.1339, allocations: 19.95 kB / 352.7 MB, free: 2.539 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1339, allocations: 4 kB / 352.7 MB, free: 2.535 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.1339, allocations: 0 / 352.7 MB, free: 2.535 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.1339, allocations: 0 / 352.7 MB, free: 2.535 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004235/0.1343, allocations: 335.5 kB / 353 MB, free: 2.16 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.1344, allocations: 8.031 kB / 353 MB, free: 2.152 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.149e-05/0.1344, allocations: 38.56 kB / 353.1 MB, free: 2.105 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.96e-05/0.1345, allocations: 7.859 kB / 353.1 MB, free: 2.098 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002039/0.1347, allocations: 171.1 kB / 353.2 MB, free: 1.891 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.524e-05/0.1347, allocations: 8 kB / 353.2 MB, free: 1.883 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.135e-05/0.1347, allocations: 0 / 353.2 MB, free: 1.883 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003617/0.1351, allocations: 123.2 kB / 353.4 MB, free: 1.75 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.1351, allocations: 4 kB / 353.4 MB, free: 1.746 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.979e-06/0.1351, allocations: 0 / 353.4 MB, free: 1.746 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.1351, allocations: 3.953 kB / 353.4 MB, free: 1.742 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000109/0.1353, allocations: 31.97 kB / 353.4 MB, free: 1.711 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001695/0.1354, allocations: 153.7 kB / 353.6 MB, free: 1.512 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001443/0.1356, allocations: 58.48 kB / 353.6 MB, free: 1.445 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.511e-05/0.1357, allocations: 24.92 kB / 353.6 MB, free: 1.418 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.102e-05/0.1357, allocations: 4 kB / 353.6 MB, free: 1.414 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/0.1357, allocations: 38.48 kB / 353.7 MB, free: 1.367 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.1357, allocations: 4 kB / 353.7 MB, free: 1.363 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002906/0.136, allocations: 81.56 kB / 353.8 MB, free: 1.277 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.248e-05/0.1361, allocations: 59.41 kB / 353.8 MB, free: 1.207 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.039e-05/0.1362, allocations: 109.8 kB / 353.9 MB, free: 1.09 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.406e-05/0.1362, allocations: 29.7 kB / 354 MB, free: 1.055 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.837e-05/0.1363, allocations: 84.12 kB / 354 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.439e-05/0.1363, allocations: 4 kB / 354 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.447e-06/0.1363, allocations: 0 / 354 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.1364, allocations: 318.8 kB / 354.4 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.314e-05/0.1365, allocations: 4 kB / 354.4 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.505e-05/0.1365, allocations: 35.36 kB / 354.4 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.359e-05/0.1365, allocations: 8 kB / 354.4 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1365, allocations: 0 / 354.4 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.413e-05/0.1366, allocations: 65.62 kB / 354.5 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.1367, allocations: 6.5 kB / 354.5 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.1367, allocations: 0 / 354.5 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.1367, allocations: 4.188 kB / 354.5 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.639e-05/0.1368, allocations: 4 kB / 354.5 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.647e-06/0.1368, allocations: 7.938 kB / 354.5 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.33e-05/0.1368, allocations: 7.859 kB / 354.5 MB, free: 500 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.615e-06/0.1368, allocations: 7.984 kB / 354.5 MB, free: 492 kB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 (step.counter,$CLKPRE.step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 9.264e-05/0.1369, allocations: 118 kB / 354.6 MB, free: 364 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000143/0.1371, allocations: 61.67 kB / 354.7 MB, free: 296 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.156e-05/0.1371, allocations: 11.91 kB / 354.7 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.1371, allocations: 0 / 354.7 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.1371, allocations: 0 / 354.7 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.1371, allocations: 0 / 354.7 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001048/0.1372, allocations: 165.5 kB / 354.9 MB, free: 60 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1372, allocations: 0 / 354.9 MB, free: 60 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.845e-05/0.1373, allocations: 11.94 kB / 354.9 MB, free: 48 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.1373, allocations: 0 / 354.9 MB, free: 48 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.634e-06/0.1373, allocations: 4 kB / 354.9 MB, free: 44 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.624e-06/0.1373, allocations: 0 / 354.9 MB, free: 44 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.1373, allocations: 7.984 kB / 354.9 MB, free: 36 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001827/0.1375, allocations: 89.06 kB / 355 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.311e-05/0.1376, allocations: 84.95 kB / 355 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.881e-05/0.1376, allocations: 4 kB / 355 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.062e-05/0.1377, allocations: 3.984 kB / 355.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.851e-06/0.1377, allocations: 4 kB / 355.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.609e-06/0.1377, allocations: 4 kB / 355.1 MB, free: 15.81 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.77e-05/0.1377, allocations: 87.66 kB / 355.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1377, allocations: 0 / 355.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001863/0.1379, allocations: 4 kB / 355.1 MB, free: 15.72 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0005813/0.1385, allocations: 0.6553 MB / 355.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001191/0.1386, allocations: 31.98 kB / 355.8 MB, free: 15.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1387, allocations: 4 kB / 355.8 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.2e-07/0.1387, allocations: 0 / 355.8 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003098/0.139, allocations: 28.02 kB / 355.9 MB, free: 14.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006114/0.1396, allocations: 409.3 kB / 356.3 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/0.1399, allocations: 0.6848 MB / 357 MB, free: 13.81 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.958e-05/0.1399, allocations: 0 / 357 MB, free: 13.81 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.225e-05/0.14, allocations: 15.44 kB / 357 MB, free: 13.8 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.14, allocations: 0 / 357 MB, free: 13.8 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01242/0.1524, allocations: 1.143 MB / 358.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002329/0.1527, allocations: 209.1 kB / 358.3 MB, free: 12.56 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.878/2.031, allocations: 4 kB / 358.3 MB, free: 12.55 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_res.mat does not exist to compare? outputFormat=mat