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.001298/0.001298, allocations: 177.7 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.893/1.893, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009009/0.0009009, allocations: 74.72 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.04e-05/2.043e-05, allocations: 0 / 315.6 MB, free: 22.64 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1037, allocations: 47.59 MB / 363.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.374/0.4778, allocations: 81.79 MB / 445 MB, free: 13.63 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002839/0.4782, allocations: 68.08 kB / 445 MB, free: 13.59 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03485/0.5131, allocations: 11.8 MB / 456.8 MB, free: 3.715 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.94e-06/0.5131, allocations: 0 / 456.8 MB, free: 3.715 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.195e-05/0.5132, allocations: 11.94 kB / 456.8 MB, free: 3.703 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.001446/0.5146, allocations: 0.696 MB / 457.5 MB, free: 2.988 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.088e-05/0.5147, allocations: 8.031 kB / 457.5 MB, free: 2.98 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003793/0.5151, allocations: 62.48 kB / 457.6 MB, free: 2.922 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005602/0.5157, allocations: 333.3 kB / 457.9 MB, free: 2.59 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001389/0.5158, allocations: 92.05 kB / 458 MB, free: 2.484 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.122e-05/0.5159, allocations: 31.66 kB / 458 MB, free: 2.457 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008736/0.5168, allocations: 0.522 MB / 458.6 MB, free: 2.086 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007606/0.5175, allocations: 464 kB / 459 MB, free: 1.738 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.5176, allocations: 0 / 459 MB, free: 1.738 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.621e-05/0.5176, allocations: 0 / 459 MB, free: 1.738 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.5176, allocations: 8 kB / 459 MB, free: 1.73 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001908/0.5196, allocations: 1.079 MB / 460.1 MB, free: 0.8438 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006681/0.5202, allocations: 440.2 kB / 460.5 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003843/0.5206, allocations: 261.5 kB / 460.8 MB, free: 404 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.253e-05/0.5207, allocations: 16.3 kB / 460.8 MB, free: 392 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.543e-05/0.5208, allocations: 38.88 kB / 460.8 MB, free: 348 kB / 330.7 MB Notification: Performance of pre-optimization done (n=63): time 3.086e-06/0.5208, allocations: 8 kB / 460.9 MB, free: 340 kB / 330.7 MB Notification: Performance of matching and sorting (n=71): time 0.003761/0.5245, allocations: 1.874 MB / 462.7 MB, free: 14.75 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.959e-05/0.5246, allocations: 81.89 kB / 462.8 MB, free: 14.66 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002739/0.5249, allocations: 218.2 kB / 463 MB, free: 14.46 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.581e-05/0.525, allocations: 33.08 kB / 463.1 MB, free: 14.43 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.5251, allocations: 154.9 kB / 463.2 MB, free: 14.3 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001913/0.5253, allocations: 227 kB / 463.4 MB, free: 14.1 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.897e-05/0.5253, allocations: 0 / 463.4 MB, free: 14.1 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.5255, allocations: 349.8 kB / 463.8 MB, free: 13.77 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003502/0.5258, allocations: 231.3 kB / 464 MB, free: 13.63 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003852/0.5262, allocations: 283.3 kB / 464.3 MB, free: 13.44 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004481/0.5267, allocations: 211.7 kB / 464.5 MB, free: 13.3 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.5267, allocations: 0 / 464.5 MB, free: 13.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001373/0.5281, allocations: 0.7542 MB / 465.2 MB, free: 12.74 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.5281, allocations: 4 kB / 465.2 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.621e-05/0.5281, allocations: 4 kB / 465.2 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009267/0.5291, allocations: 415.4 kB / 465.6 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003716/0.5294, allocations: 86.94 kB / 465.7 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001209/0.5307, allocations: 1.065 MB / 466.8 MB, free: 11.47 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004755/0.5312, allocations: 68.03 kB / 466.9 MB, free: 11.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.079e-05/0.5312, allocations: 31.55 kB / 466.9 MB, free: 11.38 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real 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.0002384/0.5315, allocations: 116.5 kB / 467 MB, free: 11.26 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001401/0.5329, allocations: 0.7036 MB / 467.7 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.712e-05/0.533, allocations: 35.62 kB / 467.7 MB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001451/0.5345, allocations: 0.7676 MB / 468.5 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/0.5345, allocations: 8 kB / 468.5 MB, free: 10.13 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.5345, allocations: 3.984 kB / 468.5 MB, free: 10.13 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.727e-06/0.5345, allocations: 64 / 468.5 MB, free: 10.13 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002727/0.5372, allocations: 1.544 MB / 470.1 MB, free: 8.891 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.5373, allocations: 4 kB / 470.1 MB, free: 8.887 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003873/0.5377, allocations: 83 kB / 470.2 MB, free: 8.809 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008452/0.5385, allocations: 397.3 kB / 470.5 MB, free: 8.5 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.052e-05/0.5386, allocations: 21.41 kB / 470.6 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001146/0.5397, allocations: 1.013 MB / 471.6 MB, free: 7.641 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.5398, allocations: 0 / 471.6 MB, free: 7.641 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001861/0.5416, allocations: 1.137 MB / 472.7 MB, free: 6.797 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002596/0.5419, allocations: 185.9 kB / 472.9 MB, free: 6.625 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.699e-05/0.542, allocations: 4 kB / 472.9 MB, free: 6.621 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004395/0.5424, allocations: 67.33 kB / 473 MB, free: 6.559 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001978/0.5426, allocations: 98.92 kB / 473.1 MB, free: 6.473 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.235e-05/0.5427, allocations: 38.91 kB / 473.1 MB, free: 6.441 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000168/0.5429, allocations: 183.2 kB / 473.3 MB, free: 6.297 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5429, allocations: 0 / 473.3 MB, free: 6.297 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005562/0.5435, allocations: 127.9 kB / 473.4 MB, free: 6.172 MB / 346.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.002502/0.546, allocations: 1.853 MB / 475.3 MB, free: 4.605 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001131/0.5471, allocations: 0.5995 MB / 475.9 MB, free: 4.184 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.5471, allocations: 3.938 kB / 475.9 MB, free: 4.18 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006133/0.5478, allocations: 335.9 kB / 476.2 MB, free: 3.949 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004418/0.5482, allocations: 34.19 kB / 476.2 MB, free: 3.922 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002811/0.551, allocations: 1.029 MB / 477.3 MB, free: 2.848 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004758/0.5515, allocations: 0.8254 MB / 478.1 MB, free: 1.996 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002658/0.5518, allocations: 63.27 kB / 478.1 MB, free: 1.938 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002519/0.5521, allocations: 131.4 kB / 478.3 MB, free: 1.809 MB / 346.7 MB Notification: Performance of SimCode: time 1.333e-06/0.5521, allocations: 3.938 kB / 478.3 MB, free: 1.805 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03767/0.5898, allocations: 11.25 MB / 489.5 MB, free: 6.551 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002948/0.5901, allocations: 149.1 kB / 489.7 MB, free: 6.352 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.181/2.771, allocations: 4.031 kB / 489.7 MB, free: 6.348 MB / 362.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