Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.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.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001124/0.001124, allocations: 99.98 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.001421/0.001421, allocations: 208.6 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.392/1.392, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002338/0.0002339, allocations: 4 kB / 306.7 MB, free: 1.27 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1045, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002067/0.1066, allocations: 1.359 MB / 359.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009233/0.1075, allocations: 499.1 kB / 360 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001075/0.1076, allocations: 3.938 kB / 360 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.598e-05/0.1077, allocations: 7.922 kB / 360.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001373/0.1078, allocations: 23.91 kB / 360.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001969/0.108, allocations: 35.94 kB / 360.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002031/0.1083, allocations: 75.86 kB / 360.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.1084, allocations: 25.09 kB / 360.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.81e-05/0.1085, allocations: 39.78 kB / 360.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.546e-05/0.1086, allocations: 43.77 kB / 360.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.288e-05/0.1086, allocations: 7.938 kB / 360.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.71e-05/0.1086, allocations: 4 kB / 360.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.88e-05/0.1086, allocations: 11.92 kB / 360.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.528e-05/0.1087, allocations: 41.64 kB / 360.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.221e-05/0.1088, allocations: 64.09 kB / 360.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.435e-06/0.1088, allocations: 4 kB / 360.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1088, allocations: 0 / 360.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.1088, allocations: 0 / 360.4 MB, free: 11.54 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0006067/0.1094, allocations: 418.9 kB / 360.8 MB, free: 11.08 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.1095, allocations: 8.031 kB / 360.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.037e-05/0.1095, allocations: 38.56 kB / 360.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.986e-05/0.1096, allocations: 15.84 kB / 360.9 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002421/0.1098, allocations: 207.4 kB / 361.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.778e-05/0.1098, allocations: 7.953 kB / 361.1 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.777e-05/0.1099, allocations: 11.91 kB / 361.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003223/0.1102, allocations: 148.1 kB / 361.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.1102, allocations: 0 / 361.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.1103, allocations: 0 / 361.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.1103, allocations: 4 kB / 361.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002228/0.1105, allocations: 75.95 kB / 361.3 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007625/0.1113, allocations: 0.5632 MB / 361.9 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003708/0.1116, allocations: 146.5 kB / 362 MB, free: 9.734 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.238e-05/0.1117, allocations: 0 / 362 MB, free: 9.734 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.587e-05/0.1117, allocations: 42.52 kB / 362.1 MB, free: 9.684 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.633e-06/0.1117, allocations: 4 kB / 362.1 MB, free: 9.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.001208/0.1129, allocations: 0.5565 MB / 362.6 MB, free: 9.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.74e-05/0.113, allocations: 59.39 kB / 362.7 MB, free: 9 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000157/0.1132, allocations: 145.5 kB / 362.8 MB, free: 8.852 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.184e-05/0.1132, allocations: 29.7 kB / 362.9 MB, free: 8.816 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.1133, allocations: 116 kB / 363 MB, free: 8.699 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.486e-05/0.1133, allocations: 39.36 kB / 363 MB, free: 8.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.147e-05/0.1134, allocations: 4 kB / 363 MB, free: 8.656 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.1135, allocations: 322.8 kB / 363.3 MB, free: 8.332 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000169/0.1137, allocations: 71.89 kB / 363.4 MB, free: 8.262 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001734/0.1139, allocations: 83.39 kB / 363.5 MB, free: 8.168 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001728/0.1141, allocations: 63.97 kB / 363.6 MB, free: 8.105 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.1141, allocations: 0 / 363.6 MB, free: 8.105 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004117/0.1145, allocations: 205.4 kB / 363.8 MB, free: 7.898 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.1145, allocations: 12.05 kB / 363.8 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.1145, allocations: 0 / 363.8 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.1146, allocations: 4 kB / 363.8 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001867/0.1148, allocations: 43.91 kB / 363.8 MB, free: 7.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.1148, allocations: 3.984 kB / 363.8 MB, free: 7.836 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.887e-05/0.1149, allocations: 19.97 kB / 363.8 MB, free: 7.816 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.227e-05/0.1149, allocations: 12 kB / 363.9 MB, free: 7.805 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: 1 (positionSmoothed.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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.0001273/0.115, allocations: 121.8 kB / 364 MB, free: 7.676 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.574e-05/0.1151, allocations: 7.906 kB / 364 MB, free: 7.668 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.424e-05/0.1151, allocations: 20.67 kB / 364 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-06/0.1151, allocations: 3.984 kB / 364 MB, free: 7.641 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.637e-06/0.1152, allocations: 4 kB / 364 MB, free: 7.637 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.1152, allocations: 0 / 364 MB, free: 7.637 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008637/0.116, allocations: 0.5281 MB / 364.5 MB, free: 7.047 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.116, allocations: 0 / 364.5 MB, free: 7.047 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001741/0.1162, allocations: 44.03 kB / 364.6 MB, free: 7.004 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.298e-05/0.1162, allocations: 7.938 kB / 364.6 MB, free: 6.996 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.144e-05/0.1163, allocations: 0 / 364.6 MB, free: 6.996 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.1163, allocations: 0 / 364.6 MB, free: 6.996 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.1163, allocations: 4 kB / 364.6 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005988/0.1169, allocations: 372.4 kB / 365 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.886e-05/0.1169, allocations: 88.95 kB / 365 MB, free: 6.488 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.686e-05/0.117, allocations: 8.031 kB / 365 MB, free: 6.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001135/0.1171, allocations: 19.98 kB / 365.1 MB, free: 6.461 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.551e-05/0.1172, allocations: 11.98 kB / 365.1 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.616e-06/0.1172, allocations: 4 kB / 365.1 MB, free: 6.445 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.347e-05/0.1173, allocations: 112.4 kB / 365.2 MB, free: 6.336 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1173, allocations: 0 / 365.2 MB, free: 6.336 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002554/0.1175, allocations: 20 kB / 365.2 MB, free: 6.316 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (v.u,positionSmoothed.y,a.u) * 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 (12): * Single equations (assignments): 12 * 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.000885/0.1184, allocations: 1.042 MB / 366.3 MB, free: 5.234 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003614/0.1188, allocations: 148 kB / 366.4 MB, free: 5.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1188, allocations: 0 / 366.4 MB, free: 5.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001654/0.119, allocations: 72.09 kB / 366.5 MB, free: 5.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003397/0.1193, allocations: 46.27 kB / 366.5 MB, free: 4.977 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001722/0.1211, allocations: 1.416 MB / 367.9 MB, free: 3.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002552/0.1213, allocations: 0.7165 MB / 368.6 MB, free: 2.738 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.264e-05/0.1214, allocations: 9.422 kB / 368.7 MB, free: 2.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.096e-05/0.1215, allocations: 39.42 kB / 368.7 MB, free: 2.691 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1215, allocations: 0 / 368.7 MB, free: 2.691 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.184/0.3055, allocations: 2.849 MB / 371.5 MB, free: 19.52 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001394/0.3057, allocations: 170.1 kB / 371.7 MB, free: 19.28 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.696/2.001, allocations: 1.375 kB / 371.7 MB, free: 19.28 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter.fmu > Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter_res.mat does not exist to compare? outputFormat=mat