Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.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.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",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.0009315/0.0009315, allocations: 95.94 kB / 16.3 MB, free: 5.992 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.001076/0.001076, allocations: 181.6 kB / 17.2 MB, free: 5.906 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.524/1.524, allocations: 223.2 MB / 241.1 MB, free: 5.473 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003066/0.0003067, allocations: 5.906 kB / 300.8 MB, free: 6.004 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1307, allocations: 50.43 MB / 351.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.001873/0.1326, allocations: 1.142 MB / 352.4 MB, free: 10.51 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002876/0.1329, allocations: 95.66 kB / 352.5 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.734e-05/0.133, allocations: 0 / 352.5 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.238e-05/0.133, allocations: 3.984 kB / 352.5 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 3.436e-05/0.1331, allocations: 3.984 kB / 352.5 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002809/0.1334, allocations: 19.25 kB / 352.5 MB, free: 10.39 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.901e-05/0.1335, allocations: 27.91 kB / 352.5 MB, free: 10.36 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.248e-05/0.1336, allocations: 11.88 kB / 352.5 MB, free: 10.35 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.182e-05/0.1336, allocations: 8 kB / 352.5 MB, free: 10.34 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.425e-05/0.1337, allocations: 11.91 kB / 352.5 MB, free: 10.33 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.956e-05/0.1337, allocations: 4 kB / 352.6 MB, free: 10.33 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.191e-05/0.1337, allocations: 0 / 352.6 MB, free: 10.33 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.516e-05/0.1337, allocations: 3.938 kB / 352.6 MB, free: 10.32 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.795e-05/0.1338, allocations: 33.7 kB / 352.6 MB, free: 10.29 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 5.763e-05/0.1338, allocations: 11.97 kB / 352.6 MB, free: 10.27 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1338, allocations: 4 kB / 352.6 MB, free: 10.27 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1338, allocations: 0 / 352.6 MB, free: 10.27 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.216e-06/0.1339, allocations: 0 / 352.6 MB, free: 10.27 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.0004075/0.1343, allocations: 335.3 kB / 352.9 MB, free: 9.895 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.1343, allocations: 8.031 kB / 352.9 MB, free: 9.887 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.576e-05/0.1344, allocations: 34.56 kB / 353 MB, free: 9.844 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.257e-05/0.1344, allocations: 3.953 kB / 353 MB, free: 9.84 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001705/0.1346, allocations: 182.8 kB / 353.2 MB, free: 9.621 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.102e-05/0.1346, allocations: 8 kB / 353.2 MB, free: 9.613 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.614e-06/0.1346, allocations: 3.938 kB / 353.2 MB, free: 9.609 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003016/0.1349, allocations: 115.3 kB / 353.3 MB, free: 9.484 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.303e-06/0.1349, allocations: 0 / 353.3 MB, free: 9.484 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.634e-06/0.1349, allocations: 4 kB / 353.3 MB, free: 9.48 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.1349, allocations: 11.94 kB / 353.3 MB, free: 9.469 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.844e-05/0.135, allocations: 19.98 kB / 353.3 MB, free: 9.449 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001349/0.1352, allocations: 153.7 kB / 353.5 MB, free: 9.25 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001466/0.1353, allocations: 66.48 kB / 353.5 MB, free: 9.176 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.604e-05/0.1353, allocations: 0 / 353.5 MB, free: 9.176 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.226e-05/0.1354, allocations: 30.56 kB / 353.6 MB, free: 9.137 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 9.51e-07/0.1354, allocations: 4.031 kB / 353.6 MB, free: 9.133 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002084/0.1356, allocations: 73.72 kB / 353.6 MB, free: 9.055 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.702e-05/0.1357, allocations: 55.41 kB / 353.7 MB, free: 8.988 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.839e-05/0.1357, allocations: 109.8 kB / 353.8 MB, free: 8.871 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.286e-05/0.1358, allocations: 25.7 kB / 353.8 MB, free: 8.84 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.61e-05/0.1358, allocations: 92.08 kB / 353.9 MB, free: 8.746 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.44e-06/0.1358, allocations: 0 / 353.9 MB, free: 8.746 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.384e-06/0.1358, allocations: 0 / 353.9 MB, free: 8.746 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.1359, allocations: 318.8 kB / 354.2 MB, free: 8.426 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.051e-05/0.136, allocations: 7.938 kB / 354.2 MB, free: 8.418 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.466e-05/0.136, allocations: 27.44 kB / 354.3 MB, free: 8.379 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.09e-05/0.136, allocations: 11.98 kB / 354.3 MB, free: 8.367 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.136, allocations: 0 / 354.3 MB, free: 8.367 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.794e-05/0.1361, allocations: 49.64 kB / 354.3 MB, free: 8.312 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.1361, allocations: 8.125 kB / 354.3 MB, free: 8.305 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.1361, allocations: 0 / 354.3 MB, free: 8.305 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.037e-05/0.1361, allocations: 7.938 kB / 354.3 MB, free: 8.297 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.088e-05/0.1362, allocations: 7.984 kB / 354.3 MB, free: 8.289 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.1362, allocations: 4.25 kB / 354.3 MB, free: 8.285 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.807e-05/0.1362, allocations: 0 / 354.3 MB, free: 8.285 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.256e-06/0.1362, allocations: 11.95 kB / 354.4 MB, free: 8.273 MB / 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: 3 (assignClock1.y,assignClock1.u,step.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 6.974e-05/0.1363, allocations: 109.8 kB / 354.5 MB, free: 8.156 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.1364, allocations: 73.58 kB / 354.5 MB, free: 8.078 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.446e-05/0.1365, allocations: 3.906 kB / 354.5 MB, free: 8.066 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.1365, allocations: 3.938 kB / 354.5 MB, free: 8.062 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.1365, allocations: 0 / 354.5 MB, free: 8.062 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.1365, allocations: 0 / 354.5 MB, free: 8.062 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.098e-05/0.1366, allocations: 157.6 kB / 354.7 MB, free: 7.859 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.1366, allocations: 0 / 354.7 MB, free: 7.859 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.304e-05/0.1367, allocations: 11.98 kB / 354.7 MB, free: 7.848 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.1367, allocations: 0 / 354.7 MB, free: 7.848 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/0.1367, allocations: 4 kB / 354.7 MB, free: 7.844 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.1367, allocations: 7.938 kB / 354.7 MB, free: 7.836 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1367, allocations: 0 / 354.7 MB, free: 7.836 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001423/0.1368, allocations: 89.39 kB / 354.8 MB, free: 7.73 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.69e-05/0.1369, allocations: 81.02 kB / 354.9 MB, free: 7.633 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.272e-05/0.1369, allocations: 0 / 354.9 MB, free: 7.633 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.835e-05/0.1369, allocations: 12 kB / 354.9 MB, free: 7.621 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.831e-06/0.137, allocations: 4.031 kB / 354.9 MB, free: 7.617 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.487e-06/0.137, allocations: 0 / 354.9 MB, free: 7.617 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.034e-05/0.137, allocations: 83.27 kB / 355 MB, free: 7.535 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.137, allocations: 7.938 kB / 355 MB, free: 7.527 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000181/0.1372, allocations: 4 kB / 355 MB, free: 7.523 MB / 286.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: 3 (step.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * 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.00041/0.1376, allocations: 0.628 MB / 355.6 MB, free: 6.867 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001023/0.1377, allocations: 27.92 kB / 355.7 MB, free: 6.84 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1377, allocations: 3.938 kB / 355.7 MB, free: 6.836 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.21e-07/0.1378, allocations: 0 / 355.7 MB, free: 6.836 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000177/0.1379, allocations: 24.23 kB / 355.7 MB, free: 6.812 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007439/0.1387, allocations: 0.8172 MB / 356.5 MB, free: 5.934 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002484/0.1389, allocations: 0.6887 MB / 357.2 MB, free: 5.219 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.079e-05/0.139, allocations: 0 / 357.2 MB, free: 5.219 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.185e-05/0.139, allocations: 11.44 kB / 357.2 MB, free: 5.207 MB / 286.1 MB Notification: Performance of SimCode: time 2.1e-07/0.139, allocations: 0 / 357.2 MB, free: 5.207 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01081/0.1498, allocations: 1.019 MB / 358.2 MB, free: 4.355 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001844/0.15, allocations: 201.2 kB / 358.4 MB, free: 4.113 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.828/1.979, allocations: 3.375 kB / 358.4 MB, free: 4.113 MB / 286.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat does not exist to compare? outputFormat=mat