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.002226/0.002225, allocations: 178.1 kB / 8.359 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.153/2.153, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001081/0.001081, allocations: 91.84 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.505e-05/2.518e-05, allocations: 7.938 kB / 314.9 MB, free: 9.066 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3526/0.3527, allocations: 47.55 MB / 362.4 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1246/0.4773, allocations: 76.84 MB / 439.3 MB, free: 9.473 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002583/0.4776, allocations: 63.97 kB / 439.3 MB, free: 9.41 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01285/0.4905, allocations: 3.083 MB / 442.4 MB, free: 6.367 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4905, allocations: 6.188 kB / 442.4 MB, free: 6.363 MB / 331.1 MB Notification: Performance of Transformations before backend: time 1.812e-05/0.4906, allocations: 4 kB / 442.4 MB, free: 6.359 MB / 331.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.0007594/0.4913, allocations: 441.2 kB / 442.9 MB, free: 5.887 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.619e-05/0.4914, allocations: 8.031 kB / 442.9 MB, free: 5.879 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.588e-05/0.4915, allocations: 24.73 kB / 442.9 MB, free: 5.855 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003199/0.4918, allocations: 213.7 kB / 443.1 MB, free: 5.609 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/0.4918, allocations: 4 kB / 443.1 MB, free: 5.605 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.177e-05/0.4919, allocations: 15.95 kB / 443.1 MB, free: 5.59 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002987/0.4922, allocations: 75.98 kB / 443.2 MB, free: 5.516 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003297/0.4926, allocations: 117.7 kB / 443.3 MB, free: 5.395 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.076e-05/0.4926, allocations: 0.875 kB / 443.3 MB, free: 5.395 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.207e-05/0.4926, allocations: 4 kB / 443.3 MB, free: 5.391 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.4926, allocations: 4 kB / 443.3 MB, free: 5.387 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001236/0.4939, allocations: 0.5574 MB / 443.9 MB, free: 4.785 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002741/0.4942, allocations: 98.59 kB / 444 MB, free: 4.68 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.487e-05/0.4943, allocations: 32.86 kB / 444 MB, free: 4.645 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.835e-05/0.4943, allocations: 0 / 444 MB, free: 4.645 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.798e-05/0.4944, allocations: 38.55 kB / 444 MB, free: 4.598 MB / 331.1 MB Notification: Performance of pre-optimization done (n=13): time 3.637e-06/0.4944, allocations: 7.984 kB / 444 MB, free: 4.59 MB / 331.1 MB Notification: Performance of matching and sorting (n=18): time 0.001812/0.4962, allocations: 0.6839 MB / 444.7 MB, free: 3.812 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.818e-05/0.4963, allocations: 56.44 kB / 444.8 MB, free: 3.746 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001447/0.4965, allocations: 121 kB / 444.9 MB, free: 3.621 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 2.72e-05/0.4965, allocations: 29.7 kB / 444.9 MB, free: 3.586 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.4966, allocations: 190.6 kB / 445.1 MB, free: 3.398 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.653e-05/0.4967, allocations: 67.03 kB / 445.2 MB, free: 3.332 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.012e-05/0.4967, allocations: 0 / 445.2 MB, free: 3.332 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.4969, allocations: 318.8 kB / 445.5 MB, free: 3.012 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.497, allocations: 32.38 kB / 445.5 MB, free: 2.977 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001506/0.4972, allocations: 67.98 kB / 445.6 MB, free: 2.898 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001359/0.4973, allocations: 44.14 kB / 445.6 MB, free: 2.855 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.4973, allocations: 0 / 445.6 MB, free: 2.855 MB / 331.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000505/0.4979, allocations: 175.6 kB / 445.8 MB, free: 2.676 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.4979, allocations: 4 kB / 445.8 MB, free: 2.672 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/0.4979, allocations: 4 kB / 445.8 MB, free: 2.668 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002372/0.4982, allocations: 33.41 kB / 445.8 MB, free: 2.633 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002837/0.4985, allocations: 43.91 kB / 445.9 MB, free: 2.59 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001714/0.5002, allocations: 1.362 MB / 447.2 MB, free: 1.117 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001499/0.5004, allocations: 4.031 kB / 447.3 MB, free: 1.113 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.032e-05/0.5004, allocations: 4 kB / 447.3 MB, free: 1.109 MB / 331.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 () * 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.0001244/0.5005, allocations: 116.9 kB / 447.4 MB, free: 0.9883 MB / 331.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004506/0.501, allocations: 156.8 kB / 447.5 MB, free: 0.8281 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.609e-05/0.5011, allocations: 11.86 kB / 447.5 MB, free: 0.8164 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.829e-05/0.5011, allocations: 24.8 kB / 447.6 MB, free: 0.7891 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.5012, allocations: 0 / 447.6 MB, free: 0.7891 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.5012, allocations: 4 kB / 447.6 MB, free: 0.7852 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.5012, allocations: 0 / 447.6 MB, free: 0.7852 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001065/0.5023, allocations: 0.5186 MB / 448.1 MB, free: 220 kB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.5023, allocations: 5.375 kB / 448.1 MB, free: 216 kB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002868/0.5026, allocations: 27.98 kB / 448.1 MB, free: 188 kB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001892/0.5028, allocations: 32.88 kB / 448.1 MB, free: 152 kB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.603e-05/0.5028, allocations: 0 / 448.1 MB, free: 152 kB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001524/0.5044, allocations: 1.322 MB / 449.5 MB, free: 14.71 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/0.5044, allocations: 6.109 kB / 449.5 MB, free: 14.71 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006313/0.505, allocations: 304.2 kB / 449.8 MB, free: 14.39 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.764e-05/0.5051, allocations: 89.09 kB / 449.9 MB, free: 14.29 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.795e-05/0.5052, allocations: 4 kB / 449.9 MB, free: 14.29 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001646/0.5054, allocations: 0 / 449.9 MB, free: 14.29 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.102e-05/0.5054, allocations: 19.97 kB / 449.9 MB, free: 14.27 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.685e-05/0.5055, allocations: 4 kB / 449.9 MB, free: 14.26 MB / 347.1 MB Notification: Performance of sorting global known variables: time 9.379e-05/0.5056, allocations: 95.28 kB / 450 MB, free: 14.17 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5056, allocations: 0 / 450 MB, free: 14.17 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0004583/0.506, allocations: 40 kB / 450 MB, free: 14.13 MB / 347.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 () * 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.001038/0.5071, allocations: 0.8338 MB / 450.8 MB, free: 13.27 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0006058/0.5077, allocations: 233.6 kB / 451.1 MB, free: 13.03 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.5077, allocations: 192 / 451.1 MB, free: 13.03 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003514/0.5081, allocations: 181.7 kB / 451.3 MB, free: 12.84 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003667/0.5085, allocations: 19.62 kB / 451.3 MB, free: 12.83 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001282/0.5098, allocations: 417.7 kB / 451.7 MB, free: 12.38 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003892/0.5102, allocations: 0.728 MB / 452.4 MB, free: 11.62 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001358/0.5103, allocations: 59.41 kB / 452.5 MB, free: 11.56 MB / 347.1 MB Notification: Performance of SimCode: time 9.62e-07/0.5104, allocations: 2.438 kB / 452.5 MB, free: 11.56 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.688/3.198, allocations: 3.535 MB / 456 MB, free: 8.059 MB / 347.1 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