Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.RollingWheel.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.Mechanics.Rotational.Examples.RollingWheel,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_RollingWheel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.RollingWheel,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_RollingWheel",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.0009368/0.0009368, allocations: 90.12 kB / 16.31 MB, free: 6.461 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.0009329/0.0009331, allocations: 182.1 kB / 17.21 MB, free: 6.336 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.381/1.381, allocations: 223.3 MB / 241.2 MB, free: 5.395 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002498/0.0002499, allocations: 7.281 kB / 300.9 MB, free: 6.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09999/0.1003, allocations: 50.42 MB / 351.3 MB, free: 11.58 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.RollingWheel): time 0.002195/0.1025, allocations: 1.745 MB / 353.1 MB, free: 9.824 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008849/0.1034, allocations: 0.5066 MB / 353.6 MB, free: 9.312 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.1035, allocations: 4 kB / 353.6 MB, free: 9.309 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001306/0.1037, allocations: 23.78 kB / 353.6 MB, free: 9.285 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.595e-05/0.1038, allocations: 51.61 kB / 353.7 MB, free: 9.234 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001603/0.1039, allocations: 35.91 kB / 353.7 MB, free: 9.199 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002066/0.1042, allocations: 191.2 kB / 353.9 MB, free: 9.012 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001584/0.1043, allocations: 57.97 kB / 353.9 MB, free: 8.953 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.617e-05/0.1044, allocations: 63.72 kB / 354 MB, free: 8.891 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001225/0.1046, allocations: 75.69 kB / 354.1 MB, free: 8.816 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.414e-05/0.1046, allocations: 8 kB / 354.1 MB, free: 8.809 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.499e-05/0.1046, allocations: 8 kB / 354.1 MB, free: 8.801 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.147e-05/0.1047, allocations: 31.86 kB / 354.1 MB, free: 8.77 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.626e-05/0.1047, allocations: 53.64 kB / 354.2 MB, free: 8.711 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000172/0.1049, allocations: 155.5 kB / 354.3 MB, free: 8.559 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1049, allocations: 0 / 354.3 MB, free: 8.559 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1049, allocations: 0 / 354.3 MB, free: 8.559 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.1049, allocations: 0 / 354.3 MB, free: 8.559 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0006014/0.1055, allocations: 449.2 kB / 354.8 MB, free: 8.074 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.1056, allocations: 12.03 kB / 354.8 MB, free: 8.062 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.369e-05/0.1056, allocations: 54.5 kB / 354.8 MB, free: 8 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.099e-05/0.1057, allocations: 19.72 kB / 354.9 MB, free: 7.98 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002204/0.1059, allocations: 221.3 kB / 355.1 MB, free: 7.727 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.1059, allocations: 12 kB / 355.1 MB, free: 7.715 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.484e-05/0.106, allocations: 20 kB / 355.1 MB, free: 7.695 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000314/0.1063, allocations: 153.4 kB / 355.3 MB, free: 7.539 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.1063, allocations: 4 kB / 355.3 MB, free: 7.535 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/0.1063, allocations: 8 kB / 355.3 MB, free: 7.527 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.1064, allocations: 7.953 kB / 355.3 MB, free: 7.52 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002262/0.1066, allocations: 99.94 kB / 355.4 MB, free: 7.422 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008248/0.1074, allocations: 0.5926 MB / 356 MB, free: 6.77 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002549/0.1077, allocations: 138.4 kB / 356.1 MB, free: 6.625 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.957e-05/0.1078, allocations: 44.84 kB / 356.1 MB, free: 6.578 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.547e-05/0.1078, allocations: 0 / 356.1 MB, free: 6.578 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.454e-05/0.1078, allocations: 30.56 kB / 356.2 MB, free: 6.539 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 9.72e-07/0.1078, allocations: 3.938 kB / 356.2 MB, free: 6.535 MB / 286.1 MB Notification: Performance of matching and sorting (n=18): time 0.001454/0.1093, allocations: 0.8018 MB / 357 MB, free: 5.641 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.14e-05/0.1094, allocations: 67.33 kB / 357 MB, free: 5.562 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001441/0.1095, allocations: 158.1 kB / 357.2 MB, free: 5.398 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.908e-05/0.1095, allocations: 33.7 kB / 357.2 MB, free: 5.359 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.764e-05/0.1096, allocations: 124.3 kB / 357.3 MB, free: 5.234 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.576e-05/0.1097, allocations: 63.09 kB / 357.4 MB, free: 5.172 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.005e-06/0.1097, allocations: 4 kB / 357.4 MB, free: 5.168 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.1098, allocations: 326.8 kB / 357.7 MB, free: 4.84 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.1099, allocations: 44.36 kB / 357.8 MB, free: 4.797 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001114/0.11, allocations: 77.66 kB / 357.9 MB, free: 4.711 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001078/0.1102, allocations: 55.98 kB / 357.9 MB, free: 4.656 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.1102, allocations: 0 / 357.9 MB, free: 4.656 MB / 286.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003619/0.1105, allocations: 216.3 kB / 358.1 MB, free: 4.438 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.1106, allocations: 11.98 kB / 358.1 MB, free: 4.426 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.1106, allocations: 0 / 358.1 MB, free: 4.426 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001711/0.1107, allocations: 32.84 kB / 358.2 MB, free: 4.391 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001539/0.1109, allocations: 35.92 kB / 358.2 MB, free: 4.355 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001278/0.1122, allocations: 1.417 MB / 359.6 MB, free: 2.797 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.186e-05/0.1123, allocations: 7.984 kB / 359.6 MB, free: 2.789 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.379e-05/0.1123, allocations: 12.06 kB / 359.6 MB, free: 2.777 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001367/0.1125, allocations: 133.6 kB / 359.8 MB, free: 2.637 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.961e-05/0.1125, allocations: 15.81 kB / 359.8 MB, free: 2.621 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.422e-05/0.1126, allocations: 21.19 kB / 359.8 MB, free: 2.602 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.1126, allocations: 192 / 359.8 MB, free: 2.602 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.1126, allocations: 4 kB / 359.8 MB, free: 2.598 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.391e-06/0.1126, allocations: 3.984 kB / 359.8 MB, free: 2.594 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008354/0.1134, allocations: 0.5936 MB / 360.4 MB, free: 1.938 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.1134, allocations: 0 / 360.4 MB, free: 1.938 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001457/0.1136, allocations: 31.92 kB / 360.4 MB, free: 1.906 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000109/0.1137, allocations: 44.78 kB / 360.5 MB, free: 1.859 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.161e-05/0.1137, allocations: 0 / 360.5 MB, free: 1.859 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001112/0.1149, allocations: 1.374 MB / 361.9 MB, free: 356 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.1149, allocations: 3.938 kB / 361.9 MB, free: 352 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000513/0.1154, allocations: 336.2 kB / 362.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.843e-05/0.1155, allocations: 93.08 kB / 362.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.004e-05/0.1155, allocations: 7.938 kB / 362.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.604e-05/0.1156, allocations: 7.938 kB / 362.3 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.205e-05/0.1157, allocations: 19.92 kB / 362.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.584e-06/0.1157, allocations: 0 / 362.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.041e-05/0.1158, allocations: 124.1 kB / 362.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1158, allocations: 0 / 362.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002883/0.1161, allocations: 44 kB / 362.5 MB, free: 15.69 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inertia.phi,inertia.w) * 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 (15): * Single equations (assignments): 14 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000776/0.1168, allocations: 0.8751 MB / 363.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004454/0.1173, allocations: 258.5 kB / 363.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1173, allocations: 0 / 363.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002675/0.1176, allocations: 190.6 kB / 363.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003641/0.118, allocations: 28.06 kB / 363.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00189/0.1199, allocations: 1.223 MB / 365 MB, free: 13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002939/0.1202, allocations: 0.7362 MB / 365.8 MB, free: 12.24 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.807e-05/0.1202, allocations: 17.55 kB / 365.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.788e-05/0.1203, allocations: 47.42 kB / 365.8 MB, free: 12.18 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1203, allocations: 0 / 365.8 MB, free: 12.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0153/0.1356, allocations: 3.411 MB / 369.2 MB, free: 8.934 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001844/0.1359, allocations: 217.8 kB / 369.5 MB, free: 8.688 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.812/1.948, allocations: 0 / 369.5 MB, free: 8.688 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.RollingWheel.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.RollingWheel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.RollingWheel.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.RollingWheel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.RollingWheel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_RollingWheel_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_RollingWheel.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.RollingWheel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.RollingWheel_res.mat does not exist to compare? outputFormat=mat