Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.LossyGearDemo2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",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.001564/0.001564, allocations: 185.4 kB / 16.41 MB, free: 5.727 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.023/2.023, allocations: 205.4 MB / 222.5 MB, free: 9.145 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.00113/0.00113, allocations: 104.4 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005238/0.0005241, allocations: 8 kB / 327.1 MB, free: 136 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3406/0.3411, allocations: 47.57 MB / 374.6 MB, free: 45.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1361/0.4773, allocations: 82.31 MB / 456.9 MB, free: 14.35 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002993/0.4777, allocations: 79.95 kB / 457 MB, free: 14.27 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05878/0.5365, allocations: 11.88 MB / 468.9 MB, free: 2.359 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.5365, allocations: 0 / 468.9 MB, free: 2.359 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.11e-05/0.5366, allocations: 8 kB / 468.9 MB, free: 2.352 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002468/0.5391, allocations: 0.7409 MB / 469.6 MB, free: 1.562 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.083e-05/0.5391, allocations: 11.97 kB / 469.7 MB, free: 1.551 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001979/0.5393, allocations: 82.53 kB / 469.7 MB, free: 1.461 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005395/0.5399, allocations: 71.41 kB / 469.8 MB, free: 1.391 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008039/0.5407, allocations: 325.4 kB / 470.1 MB, free: 1.027 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001936/0.5409, allocations: 104.3 kB / 470.2 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001387/0.5411, allocations: 39.91 kB / 470.3 MB, free: 0.875 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001866/0.543, allocations: 0.5409 MB / 470.8 MB, free: 328 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.199e-05/0.543, allocations: 4 kB / 470.8 MB, free: 324 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001037/0.5432, allocations: 16 kB / 470.8 MB, free: 308 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.649e-05/0.5432, allocations: 8 kB / 470.8 MB, free: 300 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002459/0.5457, allocations: 0.605 MB / 471.4 MB, free: 15.69 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003814/0.5495, allocations: 1.158 MB / 472.6 MB, free: 14.47 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001921/0.5515, allocations: 0.4976 MB / 473.1 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001197/0.5517, allocations: 12.5 kB / 473.1 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.948e-05/0.5517, allocations: 35.12 kB / 473.1 MB, free: 13.91 MB / 362.7 MB Notification: Performance of pre-optimization done (n=63): time 3.707e-06/0.5517, allocations: 0 / 473.1 MB, free: 13.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=71): time 0.01274/0.5645, allocations: 2.871 MB / 476 MB, free: 10.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.232e-05/0.5646, allocations: 89.77 kB / 476.1 MB, free: 10.8 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005736/0.5652, allocations: 249.9 kB / 476.3 MB, free: 10.55 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001316/0.5653, allocations: 41.7 kB / 476.4 MB, free: 10.51 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001595/0.5655, allocations: 212 kB / 476.6 MB, free: 10.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003074/0.5658, allocations: 236.7 kB / 476.8 MB, free: 10.07 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.013e-05/0.5659, allocations: 12 kB / 476.8 MB, free: 10.05 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.5661, allocations: 334.8 kB / 477.2 MB, free: 9.719 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001084/0.5672, allocations: 273.2 kB / 477.4 MB, free: 9.453 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001171/0.5684, allocations: 330.5 kB / 477.7 MB, free: 9.117 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001012/0.5694, allocations: 243.2 kB / 478 MB, free: 8.879 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.5694, allocations: 0 / 478 MB, free: 8.879 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.003367/0.5728, allocations: 0.8461 MB / 478.8 MB, free: 8.023 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.512e-05/0.5729, allocations: 4 kB / 478.8 MB, free: 8.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.254e-05/0.5729, allocations: 0 / 478.8 MB, free: 8.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001864/0.5748, allocations: 450.7 kB / 479.3 MB, free: 7.578 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007954/0.5756, allocations: 87.83 kB / 479.4 MB, free: 7.492 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002177/0.5778, allocations: 1.021 MB / 480.4 MB, free: 6.445 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001019/0.5789, allocations: 80 kB / 480.5 MB, free: 6.367 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001202/0.579, allocations: 27.98 kB / 480.5 MB, free: 6.34 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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: 0 * Non-linear torn systems: 1 {2 32} Notification: Performance of prepare postOptimizeDAE: time 0.0004512/0.5795, allocations: 185.7 kB / 480.7 MB, free: 6.148 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001639/0.5797, allocations: 43.48 kB / 480.7 MB, free: 6.105 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0035/0.5832, allocations: 0.8874 MB / 481.6 MB, free: 5.207 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.455e-05/0.5832, allocations: 4 kB / 481.6 MB, free: 5.203 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.306e-05/0.5833, allocations: 8 kB / 481.6 MB, free: 5.195 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.418e-05/0.5833, allocations: 7.922 kB / 481.6 MB, free: 5.188 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005995/0.5893, allocations: 1.704 MB / 483.3 MB, free: 3.414 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.234e-05/0.5894, allocations: 4 kB / 483.3 MB, free: 3.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007789/0.5901, allocations: 79.88 kB / 483.4 MB, free: 3.332 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00192/0.5921, allocations: 416.5 kB / 483.8 MB, free: 2.922 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000208/0.5924, allocations: 23.98 kB / 483.8 MB, free: 2.898 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002423/0.5948, allocations: 0.9815 MB / 484.8 MB, free: 1.891 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.228e-06/0.5949, allocations: 7.984 kB / 484.8 MB, free: 1.883 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004863/0.5997, allocations: 1.279 MB / 486.1 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004874/0.6003, allocations: 180.5 kB / 486.3 MB, free: 376 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001543/0.6004, allocations: 20 kB / 486.3 MB, free: 356 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000926/0.6014, allocations: 72 kB / 486.4 MB, free: 284 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003821/0.6018, allocations: 108.3 kB / 486.5 MB, free: 176 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001145/0.6019, allocations: 31.94 kB / 486.5 MB, free: 144 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005064/0.6024, allocations: 213.9 kB / 486.7 MB, free: 15.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6025, allocations: 0 / 486.7 MB, free: 15.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008563/0.6033, allocations: 159.9 kB / 486.9 MB, free: 15.77 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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: 0 * Non-linear torn systems: 1 {2 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.00577/0.6091, allocations: 2.007 MB / 488.9 MB, free: 13.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002976/0.6121, allocations: 0.7018 MB / 489.6 MB, free: 13.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.6122, allocations: 3.938 kB / 489.6 MB, free: 13.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001668/0.6139, allocations: 384 kB / 490 MB, free: 12.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000625/0.6146, allocations: 47.11 kB / 490 MB, free: 12.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01198/0.6265, allocations: 3.579 MB / 493.6 MB, free: 8.945 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000609/0.6272, allocations: 0.8329 MB / 494.4 MB, free: 8.082 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005072/0.6277, allocations: 139.4 kB / 494.6 MB, free: 7.945 MB / 378.7 MB Notification: Performance of SimCode: time 3.035e-06/0.6278, allocations: 0 / 494.6 MB, free: 7.945 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.206/3.834, allocations: 8.523 MB / 0.4913 GB, free: 111.7 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat does not exist to compare? outputFormat=mat