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.00155/0.00155, allocations: 177.8 kB / 8.36 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.193/2.193, 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.001126/0.001126, allocations: 85.7 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.008e-05/2.005e-05, allocations: 0 / 314.9 MB, free: 9.074 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.3397, allocations: 47.56 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1267/0.4664, allocations: 76.84 MB / 439.3 MB, free: 9.379 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002985/0.4668, allocations: 71.95 kB / 439.3 MB, free: 9.309 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01659/0.4834, allocations: 3.762 MB / 443.1 MB, free: 5.582 MB / 331.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.4834, allocations: 0 / 443.1 MB, free: 5.582 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.326e-05/0.4835, allocations: 4 kB / 443.1 MB, free: 5.578 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.000839/0.4843, allocations: 477.3 kB / 443.6 MB, free: 5.066 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.4844, allocations: 8.031 kB / 443.6 MB, free: 5.059 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.551e-05/0.4845, allocations: 24.92 kB / 443.6 MB, free: 5.035 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003708/0.4849, allocations: 228.3 kB / 443.8 MB, free: 4.77 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.759e-05/0.4849, allocations: 8 kB / 443.8 MB, free: 4.762 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.9e-05/0.485, allocations: 19.86 kB / 443.8 MB, free: 4.742 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003705/0.4853, allocations: 104.8 kB / 443.9 MB, free: 4.641 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004294/0.4858, allocations: 165 kB / 444.1 MB, free: 4.465 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.385e-05/0.4858, allocations: 4 kB / 444.1 MB, free: 4.461 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.437e-05/0.4859, allocations: 0 / 444.1 MB, free: 4.461 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.4859, allocations: 4 kB / 444.1 MB, free: 4.457 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001417/0.4873, allocations: 0.6623 MB / 444.8 MB, free: 3.758 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003134/0.4877, allocations: 130.5 kB / 444.9 MB, free: 3.621 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001665/0.4878, allocations: 62.48 kB / 445 MB, free: 3.559 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.917e-05/0.4879, allocations: 4 kB / 445 MB, free: 3.555 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.314e-05/0.4879, allocations: 34.56 kB / 445 MB, free: 3.512 MB / 331.1 MB Notification: Performance of pre-optimization done (n=20): time 2.585e-06/0.488, allocations: 0 / 445 MB, free: 3.512 MB / 331.1 MB Notification: Performance of matching and sorting (n=24): time 0.001941/0.4899, allocations: 0.7481 MB / 445.8 MB, free: 2.672 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.655e-05/0.49, allocations: 51.41 kB / 445.8 MB, free: 2.609 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002204/0.4902, allocations: 148.4 kB / 445.9 MB, free: 2.457 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 3.395e-05/0.4903, allocations: 25.7 kB / 446 MB, free: 2.426 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001616/0.4904, allocations: 206.7 kB / 446.2 MB, free: 2.223 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000107/0.4906, allocations: 88.25 kB / 446.3 MB, free: 2.137 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.175e-05/0.4906, allocations: 4 kB / 446.3 MB, free: 2.133 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.4908, allocations: 318.8 kB / 446.6 MB, free: 1.812 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000137/0.4909, allocations: 44 kB / 446.6 MB, free: 1.77 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001978/0.4911, allocations: 88.44 kB / 446.7 MB, free: 1.668 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001913/0.4913, allocations: 64.56 kB / 446.8 MB, free: 1.605 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.4913, allocations: 3.938 kB / 446.8 MB, free: 1.602 MB / 331.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006004/0.492, allocations: 203.7 kB / 447 MB, free: 1.395 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.533e-05/0.492, allocations: 7.984 kB / 447 MB, free: 1.387 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.492, allocations: 0 / 447 MB, free: 1.387 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002407/0.4923, allocations: 32.84 kB / 447 MB, free: 1.352 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003957/0.4927, allocations: 60.03 kB / 447.1 MB, free: 1.293 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001682/0.4944, allocations: 1.308 MB / 448.4 MB, free: 15.87 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002397/0.4947, allocations: 8.094 kB / 448.4 MB, free: 15.86 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.855e-05/0.4947, allocations: 12.86 kB / 448.4 MB, free: 15.85 MB / 347.1 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.0001327/0.4948, allocations: 116.8 kB / 448.5 MB, free: 15.73 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005377/0.4954, allocations: 182 kB / 448.7 MB, free: 15.55 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.34e-05/0.4955, allocations: 19.72 kB / 448.7 MB, free: 15.53 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.083e-05/0.4956, allocations: 21.97 kB / 448.7 MB, free: 15.51 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.108e-06/0.4956, allocations: 11.95 kB / 448.7 MB, free: 15.5 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.4956, allocations: 0 / 448.7 MB, free: 15.5 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.4956, allocations: 4.547 kB / 448.7 MB, free: 15.49 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001289/0.4969, allocations: 0.5842 MB / 449.3 MB, free: 14.85 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.497, allocations: 0 / 449.3 MB, free: 14.85 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004483/0.4974, allocations: 49.23 kB / 449.4 MB, free: 14.8 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000196/0.4976, allocations: 32.83 kB / 449.4 MB, free: 14.77 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.043e-05/0.4977, allocations: 0 / 449.4 MB, free: 14.77 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001685/0.4994, allocations: 1.32 MB / 450.7 MB, free: 13.34 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/0.4994, allocations: 0 / 450.7 MB, free: 13.34 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008406/0.5003, allocations: 390.6 kB / 451.1 MB, free: 12.92 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.97e-05/0.5004, allocations: 88.92 kB / 451.2 MB, free: 12.81 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.346e-05/0.5004, allocations: 4 kB / 451.2 MB, free: 12.81 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002032/0.5006, allocations: 9.094 kB / 451.2 MB, free: 12.8 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.867e-05/0.5007, allocations: 24.16 kB / 451.2 MB, free: 12.78 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.882e-05/0.5008, allocations: 4 kB / 451.2 MB, free: 12.77 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0001311/0.5009, allocations: 115.3 kB / 451.3 MB, free: 12.66 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5009, allocations: 0 / 451.3 MB, free: 12.66 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0005139/0.5014, allocations: 48 kB / 451.4 MB, free: 12.61 MB / 347.1 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.001226/0.5027, allocations: 1.063 MB / 452.5 MB, free: 11.51 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0007121/0.5034, allocations: 253.5 kB / 452.7 MB, free: 11.25 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.5035, allocations: 10.72 kB / 452.7 MB, free: 11.24 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004122/0.5039, allocations: 195.9 kB / 452.9 MB, free: 11.04 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004971/0.5044, allocations: 41.39 kB / 452.9 MB, free: 11 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001881/0.5063, allocations: 0.5931 MB / 453.5 MB, free: 10.37 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004511/0.5068, allocations: 0.7519 MB / 454.3 MB, free: 9.586 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001634/0.507, allocations: 69.16 kB / 454.4 MB, free: 9.52 MB / 347.1 MB Notification: Performance of SimCode: time 1.232e-06/0.507, allocations: 0 / 454.4 MB, free: 9.52 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.625/3.132, allocations: 4.281 MB / 458.6 MB, free: 5.277 MB / 347.1 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