Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.RollingWheel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.RollingWheel,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_RollingWheel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.RollingWheel,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_RollingWheel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001612/0.001616, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.324/2.324, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001161/0.001161, allocations: 98.84 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004052/0.0004054, allocations: 15.98 kB / 327.1 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1044, allocations: 47.59 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.RollingWheel): time 0.003077/0.1075, allocations: 1.676 MB / 376.3 MB, free: 13.65 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001377/0.109, allocations: 0.5545 MB / 376.9 MB, free: 13.09 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001371/0.1092, allocations: 4 kB / 376.9 MB, free: 13.09 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.866e-05/0.1092, allocations: 23.78 kB / 376.9 MB, free: 13.06 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002209/0.1095, allocations: 63.86 kB / 377 MB, free: 13 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002189/0.1097, allocations: 43.89 kB / 377 MB, free: 12.96 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002991/0.11, allocations: 135.7 kB / 377.1 MB, free: 12.82 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002146/0.1102, allocations: 61.77 kB / 377.2 MB, free: 12.76 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001086/0.1104, allocations: 59.78 kB / 377.3 MB, free: 12.7 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001679/0.1105, allocations: 75.62 kB / 377.3 MB, free: 12.63 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.777e-05/0.1106, allocations: 12 kB / 377.3 MB, free: 12.62 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.102e-05/0.1106, allocations: 8 kB / 377.4 MB, free: 12.61 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.441e-05/0.1107, allocations: 31.91 kB / 377.4 MB, free: 12.58 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.894e-05/0.1108, allocations: 57.58 kB / 377.4 MB, free: 12.52 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002489/0.111, allocations: 155.8 kB / 377.6 MB, free: 12.36 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.1111, allocations: 3.938 kB / 377.6 MB, free: 12.36 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1111, allocations: 0 / 377.6 MB, free: 12.36 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.441e-06/0.1111, allocations: 0 / 377.6 MB, free: 12.36 MB / 282.7 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.0008349/0.1119, allocations: 454.5 kB / 378 MB, free: 11.87 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.112, allocations: 8.031 kB / 378 MB, free: 11.86 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.092e-05/0.1121, allocations: 54.55 kB / 378.1 MB, free: 11.8 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.874e-05/0.1121, allocations: 15.81 kB / 378.1 MB, free: 11.78 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003132/0.1125, allocations: 218.7 kB / 378.3 MB, free: 11.53 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.1125, allocations: 12 kB / 378.3 MB, free: 11.52 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.159e-05/0.1126, allocations: 23.91 kB / 378.4 MB, free: 11.49 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004784/0.1131, allocations: 153.4 kB / 378.5 MB, free: 11.34 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.906e-05/0.1131, allocations: 3.938 kB / 378.5 MB, free: 11.33 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.681e-05/0.1131, allocations: 4 kB / 378.5 MB, free: 11.33 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.1132, allocations: 4 kB / 378.5 MB, free: 11.32 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003967/0.1136, allocations: 111.7 kB / 378.6 MB, free: 11.21 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001331/0.1149, allocations: 0.5927 MB / 379.2 MB, free: 10.56 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000375/0.1153, allocations: 122.6 kB / 379.3 MB, free: 10.43 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.1154, allocations: 0 / 379.3 MB, free: 10.43 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.556e-05/0.1154, allocations: 34.5 kB / 379.4 MB, free: 10.39 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 3.827e-06/0.1154, allocations: 0 / 379.4 MB, free: 10.39 MB / 282.7 MB Notification: Performance of matching and sorting (n=18): time 0.002356/0.1178, allocations: 0.8029 MB / 380.2 MB, free: 9.492 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.285e-05/0.1179, allocations: 63.39 kB / 380.2 MB, free: 9.418 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002456/0.1181, allocations: 151.7 kB / 380.4 MB, free: 9.262 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.95e-05/0.1182, allocations: 41.69 kB / 380.4 MB, free: 9.215 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001202/0.1183, allocations: 190.7 kB / 380.6 MB, free: 9.027 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.559e-05/0.1184, allocations: 63.02 kB / 380.7 MB, free: 8.965 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.285e-05/0.1184, allocations: 4 kB / 380.7 MB, free: 8.961 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.1186, allocations: 326.8 kB / 381 MB, free: 8.633 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001804/0.1188, allocations: 40.36 kB / 381 MB, free: 8.594 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002172/0.119, allocations: 84.09 kB / 381.1 MB, free: 8.5 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002113/0.1192, allocations: 57.39 kB / 381.2 MB, free: 8.445 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.1193, allocations: 0 / 381.2 MB, free: 8.445 MB / 282.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006646/0.1199, allocations: 202.2 kB / 381.4 MB, free: 8.238 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.696e-05/0.12, allocations: 13.83 kB / 381.4 MB, free: 8.227 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.12, allocations: 0 / 381.4 MB, free: 8.227 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002714/0.1203, allocations: 40.83 kB / 381.4 MB, free: 8.184 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002754/0.1206, allocations: 27.98 kB / 381.5 MB, free: 8.156 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001916/0.1225, allocations: 1.433 MB / 382.9 MB, free: 6.59 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001727/0.1227, allocations: 15.95 kB / 382.9 MB, free: 6.574 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.215e-05/0.1227, allocations: 8 kB / 382.9 MB, free: 6.566 MB / 282.7 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.0001992/0.123, allocations: 137.8 kB / 383.1 MB, free: 6.422 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.285e-05/0.123, allocations: 15.77 kB / 383.1 MB, free: 6.406 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.487e-05/0.1231, allocations: 17.19 kB / 383.1 MB, free: 6.387 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.1231, allocations: 4 kB / 383.1 MB, free: 6.383 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.1231, allocations: 0 / 383.1 MB, free: 6.383 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.1231, allocations: 3.984 kB / 383.1 MB, free: 6.379 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001319/0.1245, allocations: 0.5917 MB / 383.7 MB, free: 5.723 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.1245, allocations: 0 / 383.7 MB, free: 5.723 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002808/0.1248, allocations: 27.98 kB / 383.7 MB, free: 5.695 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002033/0.125, allocations: 32.83 kB / 383.7 MB, free: 5.66 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.38e-05/0.125, allocations: 8 kB / 383.8 MB, free: 5.652 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001649/0.1267, allocations: 1.374 MB / 385.1 MB, free: 4.145 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.1268, allocations: 0 / 385.1 MB, free: 4.145 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008612/0.1276, allocations: 355.4 kB / 385.5 MB, free: 3.781 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.401e-05/0.1277, allocations: 92.95 kB / 385.6 MB, free: 3.672 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.561e-05/0.1278, allocations: 7.984 kB / 385.6 MB, free: 3.664 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001754/0.128, allocations: 8.062 kB / 385.6 MB, free: 3.656 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.827e-05/0.1281, allocations: 15.98 kB / 385.6 MB, free: 3.641 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.789e-05/0.1281, allocations: 4 kB / 385.6 MB, free: 3.637 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001434/0.1282, allocations: 119.2 kB / 385.7 MB, free: 3.52 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.1282, allocations: 0 / 385.7 MB, free: 3.52 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004413/0.1287, allocations: 40 kB / 385.8 MB, free: 3.48 MB / 282.7 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.001223/0.1299, allocations: 0.8769 MB / 386.6 MB, free: 2.574 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000795/0.1307, allocations: 258.7 kB / 386.9 MB, free: 2.309 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.1308, allocations: 0 / 386.9 MB, free: 2.309 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004243/0.1312, allocations: 186.6 kB / 387.1 MB, free: 2.113 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003902/0.1316, allocations: 20.5 kB / 387.1 MB, free: 2.094 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003216/0.1348, allocations: 1.701 MB / 388.8 MB, free: 328 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2574/0.3923, allocations: 0.73 MB / 389.5 MB, free: 19.96 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001764/0.3925, allocations: 48.64 kB / 389.6 MB, free: 19.96 MB / 282.7 MB Notification: Performance of SimCode: time 1.502e-06/0.3925, allocations: 4.875 kB / 389.6 MB, free: 19.96 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.855/3.247, allocations: 3.62 MB / 393.2 MB, free: 19.82 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.RollingWheel.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.RollingWheel.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.RollingWheel.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.RollingWheel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.RollingWheel_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_RollingWheel_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_RollingWheel.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.RollingWheel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.RollingWheel_res.mat does not exist to compare? outputFormat=mat