Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",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.001429/0.001429, allocations: 179.1 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.814/1.814, allocations: 205.3 MB / 214.4 MB, free: 1.723 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.0008969/0.0008969, allocations: 78.72 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.056e-05/2.059e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.106, allocations: 47.58 MB / 363.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3849/0.4909, allocations: 79.67 MB / 442.8 MB, free: 15.7 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002199/0.4912, allocations: 69.88 kB / 442.9 MB, free: 15.67 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02608/0.5173, allocations: 9.344 MB / 452.2 MB, free: 7.91 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5173, allocations: 4 kB / 452.3 MB, free: 7.906 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.507e-05/0.5173, allocations: 4 kB / 452.3 MB, free: 7.902 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0009737/0.5183, allocations: 0.5621 MB / 452.8 MB, free: 7.316 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.5184, allocations: 8.031 kB / 452.8 MB, free: 7.309 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003138/0.5187, allocations: 47.61 kB / 452.9 MB, free: 7.262 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003829/0.5191, allocations: 274.9 kB / 453.1 MB, free: 6.977 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001341/0.5192, allocations: 79.89 kB / 453.2 MB, free: 6.887 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.874e-05/0.5193, allocations: 27.48 kB / 453.2 MB, free: 6.863 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005752/0.5199, allocations: 357.2 kB / 453.6 MB, free: 6.609 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004847/0.5204, allocations: 313.3 kB / 453.9 MB, free: 6.355 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/0.5204, allocations: 4.75 kB / 453.9 MB, free: 6.352 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.202e-05/0.5204, allocations: 0 / 453.9 MB, free: 6.352 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.5205, allocations: 4 kB / 453.9 MB, free: 6.348 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00162/0.5221, allocations: 1.117 MB / 455 MB, free: 5.383 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004102/0.5225, allocations: 303.5 kB / 455.3 MB, free: 5.168 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000206/0.5227, allocations: 143.8 kB / 455.5 MB, free: 5.078 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.567e-05/0.5228, allocations: 4 kB / 455.5 MB, free: 5.074 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.335e-05/0.5228, allocations: 38 kB / 455.5 MB, free: 5.031 MB / 330.7 MB Notification: Performance of pre-optimization done (n=43): time 1.613e-06/0.5228, allocations: 3.938 kB / 455.5 MB, free: 5.027 MB / 330.7 MB Notification: Performance of matching and sorting (n=45): time 0.002346/0.5252, allocations: 1.233 MB / 456.7 MB, free: 3.926 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.148e-05/0.5252, allocations: 92.8 kB / 456.8 MB, free: 3.816 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002173/0.5255, allocations: 184.4 kB / 457 MB, free: 3.656 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.877e-05/0.5255, allocations: 33.58 kB / 457 MB, free: 3.621 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.524e-05/0.5256, allocations: 134.9 kB / 457.2 MB, free: 3.5 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001336/0.5258, allocations: 146.4 kB / 457.3 MB, free: 3.375 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.277e-05/0.5258, allocations: 0 / 457.3 MB, free: 3.375 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.526, allocations: 333.9 kB / 457.6 MB, free: 3.051 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002226/0.5262, allocations: 137.4 kB / 457.8 MB, free: 2.969 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002701/0.5265, allocations: 195.5 kB / 458 MB, free: 2.82 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003116/0.5268, allocations: 137.4 kB / 458.1 MB, free: 2.727 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.5268, allocations: 3.938 kB / 458.1 MB, free: 2.723 MB / 330.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008159/0.5276, allocations: 480.5 kB / 458.6 MB, free: 2.367 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.5277, allocations: 7.984 kB / 458.6 MB, free: 2.359 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.5277, allocations: 4.125 kB / 458.6 MB, free: 2.355 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006731/0.5284, allocations: 226.2 kB / 458.8 MB, free: 2.184 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002448/0.5286, allocations: 55.86 kB / 458.9 MB, free: 2.129 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003325/0.5319, allocations: 2.561 MB / 461.4 MB, free: 15.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002585/0.5322, allocations: 27.98 kB / 461.5 MB, free: 15.95 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.831e-05/0.5323, allocations: 15.25 kB / 461.5 MB, free: 15.94 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" 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: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001856/0.5325, allocations: 117.5 kB / 461.6 MB, free: 15.82 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007959/0.5333, allocations: 433.2 kB / 462 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.355e-05/0.5334, allocations: 35.67 kB / 462 MB, free: 15.46 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.991e-05/0.5335, allocations: 33.41 kB / 462.1 MB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.5335, allocations: 4 kB / 462.1 MB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-06/0.5335, allocations: 0 / 462.1 MB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.5335, allocations: 3.984 kB / 462.1 MB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001447/0.5349, allocations: 0.9513 MB / 463 MB, free: 14.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.535, allocations: 7.938 kB / 463 MB, free: 14.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00023/0.5352, allocations: 47.91 kB / 463.1 MB, free: 14.63 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005739/0.5358, allocations: 216.5 kB / 463.3 MB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.174e-05/0.5358, allocations: 11.98 kB / 463.3 MB, free: 14.45 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003023/0.5389, allocations: 2.498 MB / 465.8 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.5389, allocations: 4.031 kB / 465.8 MB, free: 12.35 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00105/0.5399, allocations: 0.7122 MB / 466.5 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001661/0.5401, allocations: 138.9 kB / 466.7 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.118e-05/0.5402, allocations: 3.938 kB / 466.7 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002559/0.5404, allocations: 23.97 kB / 466.7 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/0.5406, allocations: 63.25 kB / 466.8 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.582e-05/0.5406, allocations: 18.8 kB / 466.8 MB, free: 11.59 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001309/0.5408, allocations: 150.6 kB / 466.9 MB, free: 11.46 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5408, allocations: 0 / 466.9 MB, free: 11.46 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006397/0.5414, allocations: 124 kB / 467 MB, free: 11.34 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.001514/0.543, allocations: 1.291 MB / 468.3 MB, free: 10.22 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008762/0.5438, allocations: 0.541 MB / 468.9 MB, free: 9.809 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.5439, allocations: 0 / 468.9 MB, free: 9.809 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004914/0.5444, allocations: 376.5 kB / 469.2 MB, free: 9.516 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002896/0.5447, allocations: 19.34 kB / 469.3 MB, free: 9.5 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001184/0.5458, allocations: 0.5795 MB / 469.8 MB, free: 8.953 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004146/0.5463, allocations: 0.7876 MB / 470.6 MB, free: 8.133 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002092/0.5465, allocations: 63.25 kB / 470.7 MB, free: 8.07 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/0.5467, allocations: 84.45 kB / 470.8 MB, free: 8.035 MB / 346.7 MB Notification: Performance of SimCode: time 3e-07/0.5467, allocations: 3.938 kB / 470.8 MB, free: 8.031 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03032/0.577, allocations: 8.165 MB / 478.9 MB, free: 15.86 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001974/0.5773, allocations: 157.8 kB / 479.1 MB, free: 15.66 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.003/2.581, allocations: 0 / 479.1 MB, free: 15.66 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat