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.001055/0.001055, allocations: 181.2 kB / 17.01 MB, free: 5.121 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.409/1.409, allocations: 205.4 MB / 223.1 MB, free: 9.117 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.0008459/0.0008459, allocations: 92.16 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002424/0.0002424, allocations: 7.984 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2689, allocations: 47.56 MB / 375.9 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1077/0.3767, allocations: 82.3 MB / 458.2 MB, free: 14.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000281/0.377, allocations: 75.95 kB / 458.3 MB, free: 14.27 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03381/0.4108, allocations: 11.88 MB / 470.2 MB, free: 2.348 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.046e-06/0.4109, allocations: 3.984 kB / 470.2 MB, free: 2.344 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.098e-05/0.4109, allocations: 12 kB / 470.2 MB, free: 2.332 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.001458/0.4124, allocations: 0.729 MB / 470.9 MB, free: 1.555 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.4124, allocations: 16.03 kB / 470.9 MB, free: 1.539 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001037/0.4125, allocations: 74.53 kB / 471 MB, free: 1.457 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003151/0.4129, allocations: 67.41 kB / 471.1 MB, free: 1.391 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005095/0.4134, allocations: 337.5 kB / 471.4 MB, free: 1.016 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001286/0.4135, allocations: 96.34 kB / 471.5 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.597e-05/0.4136, allocations: 47.91 kB / 471.5 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/0.4146, allocations: 0.541 MB / 472.1 MB, free: 316 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/0.4147, allocations: 0 / 472.1 MB, free: 316 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.608e-05/0.4147, allocations: 16 kB / 472.1 MB, free: 300 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.4147, allocations: 8 kB / 472.1 MB, free: 292 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001261/0.416, allocations: 0.6129 MB / 472.7 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001998/0.418, allocations: 1.154 MB / 473.9 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009695/0.419, allocations: 0.5016 MB / 474.4 MB, free: 13.94 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.063e-05/0.4191, allocations: 4.562 kB / 474.4 MB, free: 13.94 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.157e-05/0.4191, allocations: 46.95 kB / 474.4 MB, free: 13.89 MB / 362.7 MB Notification: Performance of pre-optimization done (n=63): time 2.224e-06/0.4191, allocations: 0 / 474.4 MB, free: 13.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=71): time 0.006674/0.4258, allocations: 2.867 MB / 477.3 MB, free: 10.89 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.486e-05/0.4259, allocations: 85.77 kB / 477.4 MB, free: 10.79 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003321/0.4262, allocations: 253.9 kB / 477.6 MB, free: 10.54 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.134e-05/0.4263, allocations: 41.7 kB / 477.7 MB, free: 10.49 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.4264, allocations: 161.5 kB / 477.8 MB, free: 10.33 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001888/0.4266, allocations: 232.8 kB / 478 MB, free: 10.1 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.881e-05/0.4267, allocations: 12 kB / 478.1 MB, free: 10.09 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.4268, allocations: 350.8 kB / 478.4 MB, free: 9.738 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005907/0.4274, allocations: 273.2 kB / 478.7 MB, free: 9.473 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000609/0.428, allocations: 330.5 kB / 479 MB, free: 9.137 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000528/0.4286, allocations: 239.2 kB / 479.2 MB, free: 8.902 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.4286, allocations: 0 / 479.2 MB, free: 8.902 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001752/0.4304, allocations: 0.8576 MB / 480.1 MB, free: 8.035 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/0.4304, allocations: 12.02 kB / 480.1 MB, free: 8.023 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.625e-05/0.4304, allocations: 4 kB / 480.1 MB, free: 8.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001062/0.4315, allocations: 434.7 kB / 480.5 MB, free: 7.594 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003752/0.4319, allocations: 83.88 kB / 480.6 MB, free: 7.512 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001214/0.4331, allocations: 1.021 MB / 481.6 MB, free: 6.465 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005097/0.4336, allocations: 84.02 kB / 481.7 MB, free: 6.383 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.359e-05/0.4337, allocations: 24 kB / 481.7 MB, free: 6.359 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.0002764/0.434, allocations: 177.7 kB / 481.9 MB, free: 6.176 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/0.4341, allocations: 47.39 kB / 481.9 MB, free: 6.129 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001881/0.436, allocations: 0.8913 MB / 482.8 MB, free: 5.227 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.436, allocations: 8 kB / 482.8 MB, free: 5.219 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.436, allocations: 0 / 482.8 MB, free: 5.219 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.436, allocations: 7.922 kB / 482.9 MB, free: 5.211 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003163/0.4392, allocations: 1.708 MB / 484.6 MB, free: 3.434 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.4392, allocations: 0 / 484.6 MB, free: 3.434 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004377/0.4397, allocations: 91.94 kB / 484.6 MB, free: 3.344 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009582/0.4406, allocations: 408.5 kB / 485 MB, free: 2.941 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.631e-05/0.4407, allocations: 23.97 kB / 485.1 MB, free: 2.918 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001164/0.4419, allocations: 0.9777 MB / 486 MB, free: 1.914 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.818e-06/0.4419, allocations: 8.016 kB / 486.1 MB, free: 1.906 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002502/0.4444, allocations: 1.287 MB / 487.3 MB, free: 0.5781 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000291/0.4447, allocations: 180.6 kB / 487.5 MB, free: 392 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.917e-05/0.4448, allocations: 19.98 kB / 487.5 MB, free: 372 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004342/0.4452, allocations: 72 kB / 487.6 MB, free: 300 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001995/0.4454, allocations: 104.3 kB / 487.7 MB, free: 196 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.86e-05/0.4455, allocations: 39.86 kB / 487.8 MB, free: 156 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003251/0.4459, allocations: 209.9 kB / 488 MB, free: 15.95 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4459, allocations: 0 / 488 MB, free: 15.95 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006117/0.4465, allocations: 155.9 kB / 488.1 MB, free: 15.79 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.002914/0.4494, allocations: 2.014 MB / 490.1 MB, free: 13.74 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001535/0.451, allocations: 0.698 MB / 490.8 MB, free: 13.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.451, allocations: 3.938 kB / 490.8 MB, free: 13.03 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008165/0.4518, allocations: 388.2 kB / 491.2 MB, free: 12.65 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003963/0.4522, allocations: 45.56 kB / 491.2 MB, free: 12.61 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005971/0.4582, allocations: 3.542 MB / 494.8 MB, free: 9.004 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003615/0.4586, allocations: 0.8368 MB / 495.6 MB, free: 8.137 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002417/0.4588, allocations: 59.34 kB / 495.7 MB, free: 8.078 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002334/0.4591, allocations: 135.4 kB / 495.8 MB, free: 7.945 MB / 378.7 MB Notification: Performance of SimCode: time 6.41e-07/0.4591, allocations: 0 / 495.8 MB, free: 7.945 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1863/0.6454, allocations: 12.13 MB / 0.496 GB, free: 111.2 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001473/0.6456, allocations: 213.4 kB / 0.4962 GB, free: 111 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.063/2.708, allocations: 5.312 kB / 0.4962 GB, free: 111 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