Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 180.7 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 98.91 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000294/0.0002937, allocations: 8 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2602, allocations: 50.41 MB / 401.6 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1071/0.3673, allocations: 83.36 MB / 484.9 MB, free: 13.06 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002467/0.3676, allocations: 71.97 kB / 485 MB, free: 12.99 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03399/0.4016, allocations: 12.07 MB / 497.1 MB, free: 0.875 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4017, allocations: 0 / 497.1 MB, free: 0.875 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.056e-05/0.4017, allocations: 8.188 kB / 497.1 MB, free: 0.8672 MB / 362.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.001736/0.4035, allocations: 0.7484 MB / 497.8 MB, free: 72 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/0.4035, allocations: 8.031 kB / 497.8 MB, free: 64 kB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001847/0.4037, allocations: 74.61 kB / 497.9 MB, free: 15.98 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003695/0.4041, allocations: 67.41 kB / 498 MB, free: 15.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005952/0.4047, allocations: 325.3 kB / 498.3 MB, free: 15.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001344/0.4049, allocations: 96.39 kB / 498.4 MB, free: 15.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.982e-05/0.405, allocations: 47.91 kB / 498.4 MB, free: 15.4 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001029/0.406, allocations: 0.5448 MB / 499 MB, free: 14.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.288e-05/0.4061, allocations: 3.953 kB / 499 MB, free: 14.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.453e-05/0.4061, allocations: 16 kB / 499 MB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.4061, allocations: 12 kB / 499 MB, free: 14.81 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001224/0.4074, allocations: 0.605 MB / 499.6 MB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002058/0.4094, allocations: 1.162 MB / 0.4891 GB, free: 12.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001003/0.4105, allocations: 0.4915 MB / 0.4895 GB, free: 12.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.608e-05/0.4105, allocations: 12.55 kB / 0.4895 GB, free: 12.47 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.328e-05/0.4106, allocations: 39.34 kB / 0.4896 GB, free: 12.42 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 3.176e-06/0.4106, allocations: 0 / 0.4896 GB, free: 12.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=71): time 0.00674/0.4173, allocations: 2.863 MB / 0.4924 GB, free: 9.438 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.287e-05/0.4174, allocations: 85.77 kB / 0.4925 GB, free: 9.336 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003819/0.4178, allocations: 253.9 kB / 0.4927 GB, free: 9.082 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.102e-05/0.4179, allocations: 45.7 kB / 0.4927 GB, free: 9.031 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.418, allocations: 161.6 kB / 0.4929 GB, free: 8.871 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002001/0.4182, allocations: 232.7 kB / 0.4931 GB, free: 8.641 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.831e-05/0.4182, allocations: 8 kB / 0.4931 GB, free: 8.633 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.4184, allocations: 354.8 kB / 0.4935 GB, free: 8.277 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005909/0.419, allocations: 265.2 kB / 0.4937 GB, free: 8.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006254/0.4196, allocations: 330.5 kB / 0.494 GB, free: 7.684 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005635/0.4202, allocations: 251.1 kB / 0.4943 GB, free: 7.441 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.4202, allocations: 0 / 0.4943 GB, free: 7.441 MB / 378.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001787/0.422, allocations: 0.8538 MB / 0.4951 GB, free: 6.578 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.422, allocations: 11.94 kB / 0.4951 GB, free: 6.566 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.534e-05/0.4221, allocations: 0 / 0.4951 GB, free: 6.566 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001081/0.4231, allocations: 443.5 kB / 0.4955 GB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003851/0.4235, allocations: 91.88 kB / 0.4956 GB, free: 6.043 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001218/0.4248, allocations: 1.013 MB / 0.4966 GB, free: 5.004 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005226/0.4253, allocations: 76 kB / 0.4967 GB, free: 4.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.095e-05/0.4254, allocations: 35.92 kB / 0.4967 GB, free: 4.895 MB / 378.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.0002749/0.4257, allocations: 176.6 kB / 0.4969 GB, free: 4.715 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00013/0.4258, allocations: 51.44 kB / 0.4969 GB, free: 4.664 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001881/0.4277, allocations: 0.8835 MB / 0.4978 GB, free: 3.766 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/0.4277, allocations: 11.95 kB / 0.4978 GB, free: 3.754 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.4277, allocations: 0 / 0.4978 GB, free: 3.754 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.4278, allocations: 3.984 kB / 0.4978 GB, free: 3.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003257/0.431, allocations: 1.708 MB / 0.4995 GB, free: 1.973 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.431, allocations: 3.938 kB / 0.4995 GB, free: 1.969 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003874/0.4314, allocations: 91.83 kB / 0.4996 GB, free: 1.879 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009559/0.4324, allocations: 409.6 kB / 0.5 GB, free: 1.477 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-05/0.4325, allocations: 19.97 kB / 0.5 GB, free: 1.457 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001121/0.4336, allocations: 0.9778 MB / 0.5009 GB, free: 464 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.4336, allocations: 0 / 0.5009 GB, free: 464 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2272/0.6609, allocations: 1.295 MB / 0.5022 GB, free: 100.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003899/0.6613, allocations: 180.6 kB / 0.5024 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.446e-05/0.6614, allocations: 19.42 kB / 0.5024 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005005/0.6619, allocations: 70.23 kB / 0.5025 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002551/0.6622, allocations: 103.9 kB / 0.5026 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.059e-05/0.6622, allocations: 29.72 kB / 0.5026 GB, free: 100.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002834/0.6625, allocations: 209 kB / 0.5028 GB, free: 100.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6625, allocations: 0 / 0.5028 GB, free: 100.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006257/0.6632, allocations: 153.4 kB / 0.5029 GB, free: 100.5 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.003029/0.6662, allocations: 2.023 MB / 0.5049 GB, free: 99.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001761/0.668, allocations: 0.7032 MB / 0.5056 GB, free: 99.64 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.668, allocations: 0.5 kB / 0.5056 GB, free: 99.64 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000919/0.6689, allocations: 385.7 kB / 0.506 GB, free: 99.63 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003873/0.6693, allocations: 41.7 kB / 0.506 GB, free: 99.63 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005264/0.6746, allocations: 3.548 MB / 0.5095 GB, free: 98.03 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002624/0.6749, allocations: 0.8362 MB / 0.5103 GB, free: 97.31 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002378/0.6751, allocations: 68.38 kB / 0.5104 GB, free: 97.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002045/0.6753, allocations: 129.6 kB / 0.5105 GB, free: 97.21 MB / 378.7 MB Notification: Performance of SimCode: time 1.183e-06/0.6754, allocations: 0 / 0.5105 GB, free: 97.21 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02179/0.6972, allocations: 12.13 MB / 0.5223 GB, free: 90.17 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001604/0.6974, allocations: 221.7 kB / 0.5225 GB, free: 89.92 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.311/3.008, allocations: 0 / 0.5225 GB, free: 89.92 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat does not exist to compare? outputFormat=mat