Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_SlewRateLimiter",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.001161/0.001161, allocations: 96.22 kB / 16.95 MB, free: 6.453 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.001415/0.001414, allocations: 182.3 kB / 17.84 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.635/1.635, allocations: 205.4 MB / 224 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004817/0.000482, allocations: 12 kB / 280.9 MB, free: 3.637 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1105, allocations: 47.58 MB / 328.4 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002162/0.1127, allocations: 1.34 MB / 329.8 MB, free: 2.629 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.1138, allocations: 0.4961 MB / 330.3 MB, free: 2.125 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001373/0.114, allocations: 0 / 330.3 MB, free: 2.125 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001019/0.1141, allocations: 11.88 kB / 330.3 MB, free: 2.113 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 8.856e-05/0.1142, allocations: 19.84 kB / 330.3 MB, free: 2.094 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001712/0.1144, allocations: 35.91 kB / 330.3 MB, free: 2.059 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001767/0.1146, allocations: 107.6 kB / 330.4 MB, free: 1.953 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.1147, allocations: 32.88 kB / 330.5 MB, free: 1.922 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.193e-05/0.1148, allocations: 31.8 kB / 330.5 MB, free: 1.891 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.048e-05/0.1149, allocations: 43.72 kB / 330.6 MB, free: 1.848 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.646e-05/0.1149, allocations: 0 / 330.6 MB, free: 1.848 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.297e-05/0.1149, allocations: 4 kB / 330.6 MB, free: 1.844 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.375e-05/0.1149, allocations: 15.92 kB / 330.6 MB, free: 1.828 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 3.414e-05/0.115, allocations: 41.64 kB / 330.6 MB, free: 1.781 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001046/0.1151, allocations: 60.11 kB / 330.7 MB, free: 1.723 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.1151, allocations: 4 kB / 330.7 MB, free: 1.719 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1151, allocations: 4 kB / 330.7 MB, free: 1.715 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.1151, allocations: 0 / 330.7 MB, free: 1.715 MB / 270.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.0005572/0.1157, allocations: 418.8 kB / 331.1 MB, free: 1.258 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.1157, allocations: 12.03 kB / 331.1 MB, free: 1.246 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.796e-05/0.1158, allocations: 38.55 kB / 331.1 MB, free: 1.199 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.304e-05/0.1159, allocations: 15.91 kB / 331.2 MB, free: 1.184 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002546/0.1161, allocations: 207.4 kB / 331.4 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.91e-05/0.1162, allocations: 11.98 kB / 331.4 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.892e-05/0.1162, allocations: 15.84 kB / 331.4 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000305/0.1165, allocations: 140.2 kB / 331.5 MB, free: 0.7617 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.1165, allocations: 0 / 331.5 MB, free: 0.7617 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.692e-05/0.1166, allocations: 8 kB / 331.5 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.1166, allocations: 0 / 331.5 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002058/0.1168, allocations: 83.88 kB / 331.6 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008432/0.1176, allocations: 0.5595 MB / 332.2 MB, free: 56 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004294/0.1181, allocations: 150.4 kB / 332.3 MB, free: 15.9 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00017/0.1183, allocations: 72.95 kB / 332.4 MB, free: 15.82 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.345e-05/0.1183, allocations: 0 / 332.4 MB, free: 15.82 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.023e-05/0.1183, allocations: 34.56 kB / 332.4 MB, free: 15.78 MB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 1.102e-06/0.1183, allocations: 0 / 332.4 MB, free: 15.78 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0012/0.1195, allocations: 0.5642 MB / 333 MB, free: 15.16 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.752e-05/0.1196, allocations: 55.41 kB / 333 MB, free: 15.1 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001498/0.1197, allocations: 150.2 kB / 333.2 MB, free: 14.94 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.144e-05/0.1198, allocations: 29.7 kB / 333.2 MB, free: 14.91 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.143e-05/0.1199, allocations: 112 kB / 333.3 MB, free: 14.79 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.447e-05/0.1199, allocations: 35.38 kB / 333.4 MB, free: 14.76 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.803e-06/0.1199, allocations: 4 kB / 333.4 MB, free: 14.75 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.1201, allocations: 326.8 kB / 333.7 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.1202, allocations: 59.97 kB / 333.7 MB, free: 14.37 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001597/0.1204, allocations: 91.39 kB / 333.8 MB, free: 14.27 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001655/0.1206, allocations: 75.97 kB / 333.9 MB, free: 14.19 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.093e-06/0.1206, allocations: 0 / 333.9 MB, free: 14.19 MB / 286.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003906/0.121, allocations: 205.3 kB / 334.1 MB, free: 13.98 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.121, allocations: 4 kB / 334.1 MB, free: 13.98 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.121, allocations: 0 / 334.1 MB, free: 13.98 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.1211, allocations: 4 kB / 334.1 MB, free: 13.98 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001663/0.1212, allocations: 39.97 kB / 334.2 MB, free: 13.94 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.1212, allocations: 64 / 334.2 MB, free: 13.94 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.957e-05/0.1213, allocations: 31.98 kB / 334.2 MB, free: 13.91 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.03e-05/0.1214, allocations: 7.938 kB / 334.2 MB, free: 13.9 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: 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.0001395/0.1215, allocations: 117.8 kB / 334.3 MB, free: 13.77 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.806e-05/0.1215, allocations: 11.86 kB / 334.3 MB, free: 13.76 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.066e-05/0.1216, allocations: 16.7 kB / 334.3 MB, free: 13.74 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.1216, allocations: 0 / 334.3 MB, free: 13.74 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1216, allocations: 4 kB / 334.3 MB, free: 13.74 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1216, allocations: 0 / 334.3 MB, free: 13.74 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000797/0.1224, allocations: 0.5272 MB / 334.9 MB, free: 13.15 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.1225, allocations: 3.938 kB / 334.9 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001619/0.1226, allocations: 39.91 kB / 334.9 MB, free: 13.11 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.302e-06/0.1226, allocations: 4 kB / 334.9 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.1227, allocations: 0.75 kB / 334.9 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.1227, allocations: 4 kB / 334.9 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.1227, allocations: 0 / 334.9 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005935/0.1233, allocations: 352.9 kB / 335.3 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.538e-05/0.1233, allocations: 89.05 kB / 335.3 MB, free: 12.62 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.498e-05/0.1234, allocations: 4 kB / 335.4 MB, free: 12.62 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/0.1235, allocations: 23.92 kB / 335.4 MB, free: 12.6 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.301e-05/0.1235, allocations: 8.078 kB / 335.4 MB, free: 12.59 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.037e-05/0.1236, allocations: 11.98 kB / 335.4 MB, free: 12.58 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.632e-05/0.1237, allocations: 115.9 kB / 335.5 MB, free: 12.46 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.434e-06/0.1237, allocations: 0 / 335.5 MB, free: 12.46 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002535/0.1239, allocations: 23.94 kB / 335.5 MB, free: 12.44 MB / 286.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.0009216/0.1249, allocations: 0.8897 MB / 336.4 MB, free: 11.52 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003903/0.1253, allocations: 144 kB / 336.6 MB, free: 11.38 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1253, allocations: 0 / 336.6 MB, free: 11.38 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001532/0.1254, allocations: 72.09 kB / 336.6 MB, free: 11.3 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004404/0.1259, allocations: 42.94 kB / 336.7 MB, free: 11.27 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001794/0.1277, allocations: 0.97 MB / 337.6 MB, free: 10.24 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000314/0.128, allocations: 0.7164 MB / 338.4 MB, free: 9.496 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.078e-05/0.1281, allocations: 17.42 kB / 338.4 MB, free: 9.48 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.613e-05/0.1282, allocations: 39.42 kB / 338.4 MB, free: 9.441 MB / 286.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1282, allocations: 0 / 338.4 MB, free: 9.441 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01589/0.1441, allocations: 2.884 MB / 341.3 MB, free: 6.566 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002058/0.1444, allocations: 172.4 kB / 341.5 MB, free: 6.324 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.978/2.122, allocations: 0 / 341.5 MB, free: 6.324 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_SlewRateLimiter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_SlewRateLimiter.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter_res.mat does not exist to compare? outputFormat=mat