Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.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.RealSignals.TimeBasedRamp,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedRamp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedRamp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001024/0.001024, allocations: 97.45 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001182/0.001182, allocations: 198.3 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.497/1.497, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002324/0.0002325, allocations: 4 kB / 306.7 MB, free: 1.262 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1204, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp): time 0.001812/0.1223, allocations: 1.192 MB / 359.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007765/0.1231, allocations: 419.3 kB / 359.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.439e-05/0.1231, allocations: 0 / 359.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.817e-05/0.1232, allocations: 7.938 kB / 359.8 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.619e-05/0.1233, allocations: 7.922 kB / 359.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002816/0.1235, allocations: 23.11 kB / 359.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.879e-05/0.1236, allocations: 23.95 kB / 359.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.073e-05/0.1237, allocations: 12 kB / 359.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.176e-05/0.1238, allocations: 15.92 kB / 359.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.621e-05/0.1238, allocations: 7.938 kB / 359.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.664e-05/0.1239, allocations: 0 / 359.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.053e-05/0.1239, allocations: 0 / 359.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.784e-05/0.1239, allocations: 11.98 kB / 359.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.112e-05/0.124, allocations: 29.64 kB / 359.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 6.725e-05/0.124, allocations: 27.94 kB / 360 MB, free: 11.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.295e-06/0.124, allocations: 3.938 kB / 360 MB, free: 11.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.124, allocations: 0 / 360 MB, free: 11.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.1241, allocations: 4 kB / 360 MB, free: 11.98 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.0004768/0.1245, allocations: 347.5 kB / 360.3 MB, free: 11.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.1246, allocations: 8.031 kB / 360.3 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.882e-05/0.1246, allocations: 34.56 kB / 360.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.824e-05/0.1247, allocations: 3.906 kB / 360.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001821/0.1249, allocations: 171.1 kB / 360.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.1249, allocations: 8 kB / 360.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.053e-05/0.1249, allocations: 3.953 kB / 360.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004905/0.1254, allocations: 155.2 kB / 360.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.1254, allocations: 0 / 360.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/0.1254, allocations: 0 / 360.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.1254, allocations: 0 / 360.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001984/0.1256, allocations: 51.95 kB / 360.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002116/0.1259, allocations: 165.5 kB / 360.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003498/0.1262, allocations: 106.5 kB / 361 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.144e-05/0.1263, allocations: 0 / 361 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.1263, allocations: 34.52 kB / 361 MB, free: 10.74 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.353e-06/0.1263, allocations: 0 / 361 MB, free: 10.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004117/0.1267, allocations: 113.8 kB / 361.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.037e-05/0.1268, allocations: 59.41 kB / 361.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.495e-05/0.1269, allocations: 105.8 kB / 361.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.905e-05/0.1269, allocations: 25.7 kB / 361.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.225e-05/0.127, allocations: 84.08 kB / 361.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.102e-06/0.127, allocations: 4 kB / 361.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.894e-06/0.127, allocations: 8 kB / 361.4 MB, free: 10.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.1272, allocations: 310.8 kB / 361.7 MB, free: 9.996 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.957e-06/0.1272, allocations: 0 / 361.7 MB, free: 9.996 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.918e-05/0.1272, allocations: 31.42 kB / 361.8 MB, free: 9.953 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.162e-05/0.1272, allocations: 11.94 kB / 361.8 MB, free: 9.941 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.1272, allocations: 4 kB / 361.8 MB, free: 9.938 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.877e-05/0.1273, allocations: 57.62 kB / 361.8 MB, free: 9.875 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.1274, allocations: 4 kB / 361.8 MB, free: 9.871 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.1274, allocations: 3.953 kB / 361.9 MB, free: 9.867 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.1274, allocations: 7.938 kB / 361.9 MB, free: 9.859 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.782e-05/0.1274, allocations: 11.94 kB / 361.9 MB, free: 9.848 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.1275, allocations: 0 / 361.9 MB, free: 9.848 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.216e-05/0.1275, allocations: 12.03 kB / 361.9 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.417e-06/0.1275, allocations: 0 / 361.9 MB, free: 9.836 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: 0 () * 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 8.361e-05/0.1276, allocations: 117.8 kB / 362 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002055/0.1278, allocations: 81.66 kB / 362.1 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.387e-05/0.1279, allocations: 11.91 kB / 362.1 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.1279, allocations: 7.891 kB / 362.1 MB, free: 9.598 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.1279, allocations: 4 kB / 362.1 MB, free: 9.594 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.1279, allocations: 0 / 362.1 MB, free: 9.594 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000112/0.128, allocations: 157.7 kB / 362.3 MB, free: 9.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.128, allocations: 0 / 362.3 MB, free: 9.391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.577e-05/0.1281, allocations: 15.98 kB / 362.3 MB, free: 9.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.1281, allocations: 0 / 362.3 MB, free: 9.375 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.691e-06/0.1281, allocations: 0 / 362.3 MB, free: 9.375 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.1281, allocations: 0 / 362.3 MB, free: 9.375 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.1281, allocations: 7.953 kB / 362.3 MB, free: 9.367 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002306/0.1284, allocations: 113 kB / 362.4 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.561e-05/0.1284, allocations: 77.11 kB / 362.5 MB, free: 9.145 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.325e-05/0.1284, allocations: 4 kB / 362.5 MB, free: 9.141 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.985e-05/0.1285, allocations: 11.98 kB / 362.5 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.335e-06/0.1285, allocations: 0 / 362.5 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.084e-06/0.1285, allocations: 3.953 kB / 362.5 MB, free: 9.125 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.428e-05/0.1286, allocations: 95.56 kB / 362.6 MB, free: 9.031 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1286, allocations: 3.938 kB / 362.6 MB, free: 9.027 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001767/0.1288, allocations: 4 kB / 362.6 MB, free: 9.023 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: 0 () * 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.0005322/0.1293, allocations: 0.644 MB / 363.2 MB, free: 8.348 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001428/0.1295, allocations: 43.91 kB / 363.3 MB, free: 8.305 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1295, allocations: 0 / 363.3 MB, free: 8.305 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.81e-07/0.1295, allocations: 0 / 363.3 MB, free: 8.305 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002678/0.1297, allocations: 40 kB / 363.3 MB, free: 8.266 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008148/0.1306, allocations: 0.8447 MB / 364.2 MB, free: 7.359 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002881/0.1309, allocations: 0.6809 MB / 364.8 MB, free: 6.652 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.536e-05/0.1309, allocations: 7.938 kB / 364.8 MB, free: 6.645 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.418e-05/0.1309, allocations: 15.42 kB / 364.9 MB, free: 6.629 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1309, allocations: 0 / 364.9 MB, free: 6.629 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0112/0.1421, allocations: 1.117 MB / 366 MB, free: 5.656 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002624/0.1425, allocations: 206.8 kB / 366.2 MB, free: 5.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.945/2.087, allocations: 0 / 366.2 MB, free: 5.41 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedRamp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedRamp.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp_res.mat does not exist to compare? outputFormat=mat