Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_3_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.001033/0.001033, allocations: 172.3 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.394/1.394, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0007947/0.0007949, allocations: 82.64 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.754e-05/2.757e-05, allocations: 4 kB / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07375/0.07379, allocations: 47.57 MB / 370.1 MB, free: 1.629 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2919/0.3658, allocations: 82.2 MB / 452.3 MB, free: 11.14 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002559/0.3661, allocations: 70.81 kB / 452.4 MB, free: 11.11 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03339/0.3995, allocations: 11.87 MB / 464.3 MB, free: 0.6641 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3995, allocations: 0 / 464.3 MB, free: 0.6641 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.984e-05/0.3996, allocations: 8 kB / 464.3 MB, free: 0.6562 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001407/0.401, allocations: 0.6942 MB / 465 MB, free: 15.91 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.903e-05/0.401, allocations: 8.031 kB / 465 MB, free: 15.91 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001177/0.4012, allocations: 86.47 kB / 465.1 MB, free: 15.81 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003227/0.4015, allocations: 63.41 kB / 465.1 MB, free: 15.75 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005012/0.402, allocations: 329.3 kB / 465.4 MB, free: 15.39 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001304/0.4022, allocations: 100.1 kB / 465.5 MB, free: 15.28 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.304e-05/0.4023, allocations: 47.91 kB / 465.6 MB, free: 15.23 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008867/0.4032, allocations: 0.5027 MB / 466.1 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/0.4032, allocations: 7.938 kB / 466.1 MB, free: 14.7 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.122e-05/0.4032, allocations: 16 kB / 466.1 MB, free: 14.69 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.4033, allocations: 12 kB / 466.1 MB, free: 14.68 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009364/0.4042, allocations: 0.5379 MB / 466.7 MB, free: 14.14 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0021/0.4063, allocations: 1.161 MB / 467.8 MB, free: 12.92 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007951/0.4071, allocations: 466.6 kB / 468.3 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004407/0.4076, allocations: 287.8 kB / 468.6 MB, free: 12.17 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.012e-05/0.4076, allocations: 12.55 kB / 468.6 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.236e-05/0.4077, allocations: 39.12 kB / 468.6 MB, free: 12.11 MB / 346.7 MB Notification: Performance of pre-optimization done (n=63): time 2.394e-06/0.4077, allocations: 4.219 kB / 468.6 MB, free: 12.11 MB / 346.7 MB Notification: Performance of matching and sorting (n=71): time 0.00368/0.4114, allocations: 1.985 MB / 470.6 MB, free: 10.03 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.694e-05/0.4115, allocations: 85.89 kB / 470.7 MB, free: 9.926 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002921/0.4118, allocations: 255.1 kB / 470.9 MB, free: 9.676 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.392e-05/0.4118, allocations: 41.7 kB / 471 MB, free: 9.629 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.286e-05/0.4119, allocations: 153.7 kB / 471.1 MB, free: 9.477 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000192/0.4121, allocations: 236.7 kB / 471.3 MB, free: 9.242 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.856e-05/0.4122, allocations: 12 kB / 471.4 MB, free: 9.23 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.4123, allocations: 346.8 kB / 471.7 MB, free: 8.883 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003868/0.4127, allocations: 241.5 kB / 471.9 MB, free: 8.648 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004387/0.4132, allocations: 300 kB / 472.2 MB, free: 8.344 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003607/0.4135, allocations: 214.1 kB / 472.4 MB, free: 8.133 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.4135, allocations: 4.031 kB / 472.4 MB, free: 8.129 MB / 346.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00137/0.4149, allocations: 0.7942 MB / 473.2 MB, free: 7.324 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.4149, allocations: 8 kB / 473.2 MB, free: 7.316 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-05/0.415, allocations: 3.938 kB / 473.2 MB, free: 7.312 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009693/0.4159, allocations: 430.7 kB / 473.7 MB, free: 6.891 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003826/0.4163, allocations: 91.81 kB / 473.8 MB, free: 6.801 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001233/0.4176, allocations: 1.006 MB / 474.8 MB, free: 5.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004804/0.4181, allocations: 80 kB / 474.8 MB, free: 5.691 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.037e-05/0.4182, allocations: 27.98 kB / 474.9 MB, free: 5.664 MB / 346.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 () * 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.0001871/0.4184, allocations: 140.9 kB / 475 MB, free: 5.52 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.675e-05/0.4185, allocations: 47.39 kB / 475 MB, free: 5.473 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001617/0.4201, allocations: 0.8211 MB / 475.9 MB, free: 4.633 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.688e-06/0.4201, allocations: 12 kB / 475.9 MB, free: 4.621 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.4201, allocations: 0 / 475.9 MB, free: 4.621 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/0.4201, allocations: 3.984 kB / 475.9 MB, free: 4.617 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002851/0.423, allocations: 1.645 MB / 477.5 MB, free: 2.906 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.423, allocations: 0 / 477.5 MB, free: 2.906 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003774/0.4234, allocations: 87.94 kB / 477.6 MB, free: 2.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009092/0.4243, allocations: 408.6 kB / 478 MB, free: 2.418 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.666e-05/0.4244, allocations: 23.97 kB / 478 MB, free: 2.395 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001097/0.4255, allocations: 0.9777 MB / 479 MB, free: 1.391 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.4255, allocations: 3.984 kB / 479 MB, free: 1.387 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002024/0.4276, allocations: 1.194 MB / 480.2 MB, free: 156 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003548/0.4279, allocations: 184.6 kB / 480.4 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.106e-05/0.428, allocations: 16 kB / 480.4 MB, free: 15.94 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004776/0.4285, allocations: 76 kB / 480.5 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002263/0.4287, allocations: 104.2 kB / 480.6 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.743e-05/0.4288, allocations: 35.91 kB / 480.6 MB, free: 15.73 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002422/0.4291, allocations: 207.1 kB / 480.8 MB, free: 15.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4291, allocations: 0 / 480.8 MB, free: 15.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000657/0.4297, allocations: 156 kB / 481 MB, free: 15.37 MB / 362.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) * 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.00263/0.4324, allocations: 1.911 MB / 482.9 MB, free: 13.42 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001308/0.4337, allocations: 0.6431 MB / 483.5 MB, free: 12.77 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4337, allocations: 4 kB / 483.5 MB, free: 12.76 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006489/0.4344, allocations: 347 kB / 483.9 MB, free: 12.43 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004328/0.4348, allocations: 41.72 kB / 483.9 MB, free: 12.38 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002558/0.4374, allocations: 1.076 MB / 485 MB, free: 11.27 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003973/0.4378, allocations: 0.829 MB / 485.8 MB, free: 10.41 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002487/0.4381, allocations: 71.27 kB / 485.9 MB, free: 10.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002547/0.4383, allocations: 135.4 kB / 486 MB, free: 10.2 MB / 362.7 MB Notification: Performance of SimCode: time 6.81e-07/0.4383, allocations: 4 kB / 486 MB, free: 10.2 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02882/0.4672, allocations: 12.16 MB / 498.2 MB, free: 14.02 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002693/0.4675, allocations: 186.5 kB / 498.4 MB, free: 13.8 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.131/2.598, allocations: 0 / 498.4 MB, free: 13.8 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat does not exist to compare? outputFormat=mat