Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001155/0.001155, allocations: 98.92 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001208/0.001208, allocations: 205.7 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.549/1.549, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002711/0.0002712, allocations: 4 kB / 306.7 MB, free: 1.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1257, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.001893/0.1276, allocations: 1.145 MB / 359.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002739/0.1279, allocations: 95.7 kB / 359.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.975e-05/0.128, allocations: 4 kB / 359.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.823e-05/0.128, allocations: 11.92 kB / 359.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 3.548e-05/0.1281, allocations: 0 / 359.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000259/0.1283, allocations: 19.92 kB / 359.5 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.013e-05/0.1284, allocations: 19.91 kB / 359.5 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.482e-05/0.1285, allocations: 8 kB / 359.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.978e-05/0.1285, allocations: 4 kB / 359.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.586e-05/0.1286, allocations: 11.92 kB / 359.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.729e-05/0.1286, allocations: 0 / 359.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.008e-05/0.1286, allocations: 0 / 359.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.731e-05/0.1287, allocations: 11.94 kB / 359.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.08e-05/0.1287, allocations: 29.7 kB / 359.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 6.32e-05/0.1288, allocations: 19.95 kB / 359.6 MB, free: 12.4 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.1288, allocations: 0 / 359.6 MB, free: 12.4 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1288, allocations: 0 / 359.6 MB, free: 12.4 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.1288, allocations: 0 / 359.6 MB, free: 12.4 MB / 302.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.000398/0.1292, allocations: 335.5 kB / 359.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.1292, allocations: 15.97 kB / 359.9 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.024e-05/0.1293, allocations: 34.56 kB / 360 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.076e-05/0.1293, allocations: 11.91 kB / 360 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001942/0.1295, allocations: 167.1 kB / 360.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.1296, allocations: 4 kB / 360.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.81e-05/0.1296, allocations: 11.89 kB / 360.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003525/0.1299, allocations: 111.3 kB / 360.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.13, allocations: 0 / 360.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.13, allocations: 3.984 kB / 360.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.13, allocations: 0 / 360.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.069e-05/0.1301, allocations: 27.97 kB / 360.3 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001607/0.1302, allocations: 153.7 kB / 360.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001545/0.1304, allocations: 62.58 kB / 360.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.172e-05/0.1304, allocations: 0 / 360.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.825e-05/0.1305, allocations: 38.45 kB / 360.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 9.42e-07/0.1305, allocations: 3.938 kB / 360.5 MB, free: 11.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002464/0.1307, allocations: 81.72 kB / 360.6 MB, free: 11.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.727e-05/0.1308, allocations: 55.41 kB / 360.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001126/0.1309, allocations: 105.8 kB / 360.8 MB, free: 11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.187e-05/0.131, allocations: 25.7 kB / 360.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.801e-05/0.131, allocations: 80.14 kB / 360.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.19e-05/0.131, allocations: 4 kB / 360.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.256e-06/0.1311, allocations: 0 / 360.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.1312, allocations: 322.8 kB / 361.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.148e-05/0.1313, allocations: 0 / 361.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.492e-05/0.1313, allocations: 31.38 kB / 361.2 MB, free: 10.51 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.315e-05/0.1313, allocations: 4 kB / 361.2 MB, free: 10.51 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1313, allocations: 0 / 361.2 MB, free: 10.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.028e-05/0.1314, allocations: 61.62 kB / 361.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.976e-05/0.1315, allocations: 8 kB / 361.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.1315, allocations: 3.953 kB / 361.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.1315, allocations: 0 / 361.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.122e-05/0.1316, allocations: 15.92 kB / 361.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.505e-06/0.1316, allocations: 0 / 361.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.399e-05/0.1316, allocations: 7.938 kB / 361.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.157e-06/0.1316, allocations: 0 / 361.3 MB, free: 10.41 MB / 302.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 0.0001214/0.1318, allocations: 118 kB / 361.4 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001224/0.1319, allocations: 57.59 kB / 361.5 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.16e-05/0.1319, allocations: 11.89 kB / 361.5 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.776e-06/0.132, allocations: 7.953 kB / 361.5 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.132, allocations: 256 / 361.5 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.132, allocations: 0 / 361.5 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001526/0.1321, allocations: 161.6 kB / 361.7 MB, free: 9.984 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1321, allocations: 0 / 361.7 MB, free: 9.984 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.911e-05/0.1322, allocations: 19.92 kB / 361.7 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.644e-06/0.1322, allocations: 0 / 361.7 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.1322, allocations: 0 / 361.7 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.1322, allocations: 0 / 361.7 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/0.1322, allocations: 3.953 kB / 361.7 MB, free: 9.961 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001556/0.1324, allocations: 85.11 kB / 361.8 MB, free: 9.859 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.299e-05/0.1325, allocations: 85.39 kB / 361.9 MB, free: 9.758 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.426e-05/0.1325, allocations: 7.938 kB / 361.9 MB, free: 9.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.416e-05/0.1325, allocations: 0 / 361.9 MB, free: 9.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.252e-06/0.1325, allocations: 4 kB / 361.9 MB, free: 9.746 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.863e-06/0.1325, allocations: 7.938 kB / 361.9 MB, free: 9.738 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.937e-05/0.1326, allocations: 87.27 kB / 362 MB, free: 9.652 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1326, allocations: 0 / 362 MB, free: 9.652 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001993/0.1328, allocations: 4 kB / 362 MB, free: 9.648 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: 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.0004955/0.1333, allocations: 0.6202 MB / 362.6 MB, free: 8.996 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000112/0.1334, allocations: 27.92 kB / 362.6 MB, free: 8.969 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1334, allocations: 0 / 362.6 MB, free: 8.969 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.71e-07/0.1334, allocations: 4.25 kB / 362.6 MB, free: 8.965 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001853/0.1336, allocations: 31.2 kB / 362.7 MB, free: 8.938 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008144/0.1345, allocations: 0.8133 MB / 363.5 MB, free: 8.062 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003848/0.1349, allocations: 0.6848 MB / 364.2 MB, free: 7.352 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.265e-05/0.1349, allocations: 4 kB / 364.2 MB, free: 7.348 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.135e-05/0.1349, allocations: 11.44 kB / 364.2 MB, free: 7.336 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1349, allocations: 4 kB / 364.2 MB, free: 7.332 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01099/0.1459, allocations: 1.019 MB / 365.2 MB, free: 6.48 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001688/0.1461, allocations: 210.8 kB / 365.4 MB, free: 6.234 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.924/2.07, allocations: 0 / 365.4 MB, free: 6.234 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat does not exist to compare? outputFormat=mat