Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.FirstGrounded,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_FirstGrounded",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.001706/0.001706, allocations: 181.3 kB / 13.66 MB, free: 1.664 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.181/2.181, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001525/0.001525, allocations: 90.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.461e-05/3.486e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1043, allocations: 47.57 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4326/0.537, allocations: 77.48 MB / 446.7 MB, free: 15.68 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002751/0.5373, allocations: 72.2 kB / 446.7 MB, free: 15.64 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01702/0.5544, allocations: 3.798 MB / 450.5 MB, free: 12.47 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.5544, allocations: 0 / 450.5 MB, free: 12.47 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.109e-05/0.5545, allocations: 4 kB / 450.5 MB, free: 12.46 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.000858/0.5553, allocations: 469.9 kB / 451 MB, free: 11.97 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/0.5554, allocations: 12.8 kB / 451 MB, free: 11.96 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.295e-05/0.5555, allocations: 54.11 kB / 451.1 MB, free: 11.91 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.429e-05/0.5556, allocations: 27.7 kB / 451.1 MB, free: 11.88 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000356/0.556, allocations: 215.8 kB / 451.3 MB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.44e-05/0.556, allocations: 19.77 kB / 451.3 MB, free: 11.63 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.454e-05/0.5561, allocations: 31.66 kB / 451.3 MB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004977/0.5566, allocations: 195.4 kB / 451.5 MB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.336e-05/0.5566, allocations: 6.172 kB / 451.5 MB, free: 11.45 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.825e-05/0.5567, allocations: 11.88 kB / 451.6 MB, free: 11.45 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.5567, allocations: 4 kB / 451.6 MB, free: 11.44 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003322/0.557, allocations: 112.2 kB / 451.7 MB, free: 11.37 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001535/0.5586, allocations: 0.7119 MB / 452.4 MB, free: 10.72 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003531/0.559, allocations: 139 kB / 452.5 MB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001658/0.5591, allocations: 61.73 kB / 452.6 MB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.506e-05/0.5592, allocations: 0 / 452.6 MB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/0.5592, allocations: 38.91 kB / 452.6 MB, free: 10.52 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 2.194e-06/0.5592, allocations: 0 / 452.6 MB, free: 10.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.002002/0.5613, allocations: 0.8158 MB / 453.4 MB, free: 9.73 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.603e-05/0.5613, allocations: 51.41 kB / 453.5 MB, free: 9.668 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002561/0.5616, allocations: 162.8 kB / 453.6 MB, free: 9.512 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.886e-05/0.5616, allocations: 28.7 kB / 453.7 MB, free: 9.48 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/0.5618, allocations: 202.7 kB / 453.9 MB, free: 9.297 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.869e-05/0.5619, allocations: 86 kB / 454 MB, free: 9.223 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.347e-05/0.5619, allocations: 3.562 kB / 454 MB, free: 9.223 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.5621, allocations: 326.3 kB / 454.3 MB, free: 8.898 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001473/0.5622, allocations: 44.16 kB / 454.3 MB, free: 8.871 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000195/0.5624, allocations: 102.8 kB / 454.4 MB, free: 8.777 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001878/0.5626, allocations: 69.17 kB / 454.5 MB, free: 8.73 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.5626, allocations: 0 / 454.5 MB, free: 8.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006445/0.5633, allocations: 230.4 kB / 454.7 MB, free: 8.547 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.508e-05/0.5633, allocations: 8 kB / 454.7 MB, free: 8.539 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.5634, allocations: 4 kB / 454.7 MB, free: 8.535 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002427/0.5636, allocations: 35.94 kB / 454.8 MB, free: 8.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003969/0.564, allocations: 51.55 kB / 454.8 MB, free: 8.453 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00172/0.5658, allocations: 1.381 MB / 456.2 MB, free: 7.016 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002392/0.5661, allocations: 7.312 kB / 456.2 MB, free: 7.012 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.846e-05/0.5661, allocations: 11.19 kB / 456.2 MB, free: 7.004 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * 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 prepare postOptimizeDAE: time 0.0001309/0.5662, allocations: 123.5 kB / 456.3 MB, free: 6.883 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.869e-05/0.5663, allocations: 15.81 kB / 456.3 MB, free: 6.867 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.342e-05/0.5664, allocations: 27.7 kB / 456.4 MB, free: 6.855 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.5664, allocations: 0 / 456.4 MB, free: 6.855 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.456e-05/0.5664, allocations: 4 kB / 456.4 MB, free: 6.852 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-06/0.5664, allocations: 3.953 kB / 456.4 MB, free: 6.848 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001358/0.5678, allocations: 0.6429 MB / 457 MB, free: 6.238 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.5679, allocations: 0 / 457 MB, free: 6.238 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004329/0.5683, allocations: 43.97 kB / 457.1 MB, free: 6.195 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001977/0.5685, allocations: 32.09 kB / 457.1 MB, free: 6.168 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.86e-05/0.5686, allocations: 7.625 kB / 457.1 MB, free: 6.164 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001643/0.5702, allocations: 1.379 MB / 458.5 MB, free: 4.73 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.5702, allocations: 0 / 458.5 MB, free: 4.73 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008282/0.5711, allocations: 417.5 kB / 458.9 MB, free: 4.359 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.713e-05/0.5712, allocations: 96.91 kB / 459 MB, free: 4.246 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.631e-05/0.5713, allocations: 7.625 kB / 459 MB, free: 4.242 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000207/0.5715, allocations: 8 kB / 459 MB, free: 4.234 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.993e-05/0.5716, allocations: 19.59 kB / 459 MB, free: 4.219 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.93e-05/0.5716, allocations: 11.69 kB / 459 MB, free: 4.211 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001485/0.5718, allocations: 123.2 kB / 459.2 MB, free: 4.102 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5718, allocations: 0 / 459.2 MB, free: 4.102 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004725/0.5722, allocations: 62.56 kB / 459.2 MB, free: 4.051 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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.001279/0.5735, allocations: 1.076 MB / 460.3 MB, free: 3.004 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007499/0.5743, allocations: 280.4 kB / 460.6 MB, free: 2.762 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.5743, allocations: 3.938 kB / 460.6 MB, free: 2.758 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004401/0.5748, allocations: 204 kB / 460.8 MB, free: 2.57 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004944/0.5753, allocations: 35.47 kB / 460.8 MB, free: 2.543 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001835/0.5772, allocations: 0.6269 MB / 461.4 MB, free: 1.914 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004635/0.5776, allocations: 0.7522 MB / 462.2 MB, free: 1.133 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001467/0.5778, allocations: 67.34 kB / 462.2 MB, free: 1.105 MB / 330.7 MB Notification: Performance of SimCode: time 1.713e-06/0.5778, allocations: 0 / 462.2 MB, free: 1.105 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.748/3.326, allocations: 4.328 MB / 466.6 MB, free: 12.82 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat does not exist to compare? outputFormat=mat