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.0009275/0.0009276, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 221.5 MB / 230.3 MB, free: 7.598 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008677/0.0008678, allocations: 94.41 kB / 281.2 MB, free: 5.352 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.758e-05/1.777e-05, allocations: 4 kB / 337.1 MB, free: 9.965 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.102, allocations: 50.42 MB / 387.6 MB, free: 7.508 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4157/0.5177, allocations: 82.62 MB / 470.2 MB, free: 12.13 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003055/0.5181, allocations: 72.7 kB / 470.2 MB, free: 12.06 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05003/0.5682, allocations: 11.99 MB / 482.2 MB, free: 40 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.5682, allocations: 0 / 482.2 MB, free: 40 kB / 346.7 MB Notification: Performance of Transformations before backend: time 3.974e-05/0.5683, allocations: 12 kB / 482.2 MB, free: 28 kB / 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.002008/0.5703, allocations: 0.6979 MB / 482.9 MB, free: 15.28 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.886e-05/0.5704, allocations: 12.03 kB / 483 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005082/0.5709, allocations: 63.36 kB / 483 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006932/0.5716, allocations: 333.5 kB / 483.3 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001654/0.5718, allocations: 80.17 kB / 483.4 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001509/0.5719, allocations: 31.91 kB / 483.5 MB, free: 14.72 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001397/0.5733, allocations: 0.5208 MB / 484 MB, free: 14.2 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001183/0.5745, allocations: 461.2 kB / 484.4 MB, free: 13.74 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.009e-05/0.5746, allocations: 7.953 kB / 484.4 MB, free: 13.73 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.841e-05/0.5747, allocations: 0 / 484.4 MB, free: 13.73 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.833e-05/0.5747, allocations: 15.92 kB / 484.4 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00299/0.5777, allocations: 1.078 MB / 485.5 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/0.5788, allocations: 436.7 kB / 485.9 MB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006403/0.5795, allocations: 274.5 kB / 486.2 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.635e-05/0.5796, allocations: 4.562 kB / 486.2 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.394e-05/0.5796, allocations: 43.11 kB / 486.3 MB, free: 11.83 MB / 362.7 MB Notification: Performance of pre-optimization done (n=63): time 3.947e-06/0.5796, allocations: 0 / 486.3 MB, free: 11.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=71): time 0.005606/0.5853, allocations: 1.867 MB / 488.1 MB, free: 9.871 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.01e-05/0.5854, allocations: 85.89 kB / 488.2 MB, free: 9.77 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003792/0.5858, allocations: 220.5 kB / 488.4 MB, free: 9.547 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.904e-05/0.5859, allocations: 33.7 kB / 488.5 MB, free: 9.508 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001456/0.586, allocations: 149.6 kB / 488.6 MB, free: 9.355 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000265/0.5863, allocations: 232.7 kB / 488.8 MB, free: 9.125 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.939e-05/0.5863, allocations: 0 / 488.8 MB, free: 9.125 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.5865, allocations: 346.8 kB / 489.2 MB, free: 8.777 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005318/0.5871, allocations: 229.5 kB / 489.4 MB, free: 8.555 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005979/0.5877, allocations: 278.4 kB / 489.7 MB, free: 8.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000728/0.5884, allocations: 216.5 kB / 489.9 MB, free: 8.059 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.5884, allocations: 4.031 kB / 489.9 MB, free: 8.055 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002179/0.5906, allocations: 0.7551 MB / 490.6 MB, free: 7.289 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.939e-05/0.5907, allocations: 4 kB / 490.6 MB, free: 7.285 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.214e-05/0.5907, allocations: 3.984 kB / 490.6 MB, free: 7.281 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001414/0.5921, allocations: 418.8 kB / 491.1 MB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005661/0.5927, allocations: 99.81 kB / 491.2 MB, free: 6.773 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001981/0.5947, allocations: 1.056 MB / 492.2 MB, free: 5.691 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007655/0.5955, allocations: 71.97 kB / 492.3 MB, free: 5.621 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/0.5956, allocations: 35.98 kB / 492.3 MB, free: 5.586 MB / 362.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.0003637/0.596, allocations: 116.1 kB / 492.4 MB, free: 5.469 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002284/0.5983, allocations: 0.6958 MB / 493.1 MB, free: 4.766 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001673/0.5985, allocations: 43.48 kB / 493.2 MB, free: 4.723 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00234/0.6008, allocations: 0.7628 MB / 493.9 MB, free: 3.945 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.6009, allocations: 4 kB / 493.9 MB, free: 3.941 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.6009, allocations: 4 kB / 493.9 MB, free: 3.938 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.279e-05/0.6009, allocations: 7.922 kB / 493.9 MB, free: 3.93 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004238/0.6052, allocations: 1.536 MB / 495.5 MB, free: 2.328 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.6052, allocations: 0 / 495.5 MB, free: 2.328 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006077/0.6058, allocations: 87.94 kB / 495.6 MB, free: 2.242 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001293/0.6071, allocations: 397.1 kB / 496 MB, free: 1.852 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.221e-05/0.6072, allocations: 15.92 kB / 496 MB, free: 1.836 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001826/0.6091, allocations: 1.001 MB / 497 MB, free: 0.8086 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/0.6091, allocations: 7.984 kB / 497 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002911/0.612, allocations: 1.158 MB / 498.1 MB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003803/0.6124, allocations: 176.5 kB / 498.3 MB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001268/0.6125, allocations: 7.938 kB / 498.3 MB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006647/0.6132, allocations: 64 kB / 498.4 MB, free: 15.35 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000272/0.6135, allocations: 104.3 kB / 498.5 MB, free: 15.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.237e-05/0.6136, allocations: 31.98 kB / 498.5 MB, free: 15.21 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002505/0.6139, allocations: 176.4 kB / 498.7 MB, free: 15.04 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.6139, allocations: 0 / 498.7 MB, free: 15.04 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008647/0.6147, allocations: 135.9 kB / 498.8 MB, free: 14.91 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) * 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.00381/0.6186, allocations: 1.86 MB / 0.4889 GB, free: 13 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001789/0.6204, allocations: 0.5975 MB / 0.4895 GB, free: 12.39 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.6204, allocations: 0 / 0.4895 GB, free: 12.39 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009431/0.6214, allocations: 338.1 kB / 0.4899 GB, free: 12.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005726/0.6219, allocations: 28.53 kB / 0.4899 GB, free: 12.04 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003911/0.6259, allocations: 1.013 MB / 0.4909 GB, free: 10.98 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005013/0.6264, allocations: 0.8254 MB / 0.4917 GB, free: 10.13 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003801/0.6268, allocations: 63.25 kB / 0.4917 GB, free: 10.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003659/0.6272, allocations: 135.4 kB / 0.4919 GB, free: 9.938 MB / 378.7 MB Notification: Performance of SimCode: time 3.476e-06/0.6272, allocations: 0 / 0.4919 GB, free: 9.938 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04492/0.6721, allocations: 11.25 MB / 0.5029 GB, free: 14.73 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002989/0.6725, allocations: 143.6 kB / 0.503 GB, free: 14.54 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.305/2.978, allocations: 0 / 0.503 GB, free: 14.54 MB / 394.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