Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",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.001066/0.001066, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 223.2 MB / 240.3 MB, free: 10.17 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000978/0.000978, allocations: 95.09 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002762/0.0002765, allocations: 4 kB / 351.2 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.253, allocations: 50.41 MB / 401.6 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1037/0.3568, allocations: 81.88 MB / 483.5 MB, free: 14.54 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002487/0.3571, allocations: 71.95 kB / 483.5 MB, free: 14.47 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02807/0.3852, allocations: 10.36 MB / 493.9 MB, free: 4.094 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.795e-06/0.3853, allocations: 0 / 493.9 MB, free: 4.094 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.929e-05/0.3853, allocations: 8 kB / 493.9 MB, free: 4.086 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001169/0.3865, allocations: 0.6197 MB / 494.5 MB, free: 3.418 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.3865, allocations: 12.03 kB / 494.5 MB, free: 3.406 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.381e-05/0.3866, allocations: 78.47 kB / 494.6 MB, free: 3.32 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002889/0.3869, allocations: 51.52 kB / 494.7 MB, free: 3.27 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000433/0.3874, allocations: 290.7 kB / 494.9 MB, free: 2.945 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001328/0.3875, allocations: 88.05 kB / 495 MB, free: 2.844 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.635e-05/0.3876, allocations: 31.91 kB / 495.1 MB, free: 2.812 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007984/0.3884, allocations: 416.8 kB / 495.5 MB, free: 2.398 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.014e-05/0.3884, allocations: 3.984 kB / 495.5 MB, free: 2.395 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.229e-05/0.3885, allocations: 16 kB / 495.5 MB, free: 2.379 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.3885, allocations: 8 kB / 495.5 MB, free: 2.371 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009417/0.3895, allocations: 474.3 kB / 496 MB, free: 1.902 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001393/0.3909, allocations: 0.8994 MB / 496.9 MB, free: 0.9453 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007864/0.3917, allocations: 386.9 kB / 497.2 MB, free: 0.5586 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.221e-05/0.3917, allocations: 4.438 kB / 497.2 MB, free: 0.5547 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.8e-05/0.3917, allocations: 43 kB / 497.3 MB, free: 0.5039 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.164e-06/0.3917, allocations: 0 / 497.3 MB, free: 0.5039 MB / 362.7 MB Notification: Performance of matching and sorting (n=55): time 0.00516/0.3969, allocations: 2.145 MB / 499.4 MB, free: 14.26 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.278e-05/0.397, allocations: 85.62 kB / 499.5 MB, free: 14.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002859/0.3973, allocations: 218.2 kB / 499.7 MB, free: 13.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.876e-05/0.3973, allocations: 37.7 kB / 499.8 MB, free: 13.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.825e-05/0.3974, allocations: 141 kB / 499.9 MB, free: 13.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001525/0.3976, allocations: 181.4 kB / 0.4884 GB, free: 13.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.738e-05/0.3976, allocations: 12 kB / 0.4884 GB, free: 13.56 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.3978, allocations: 338.8 kB / 0.4887 GB, free: 13.22 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004248/0.3982, allocations: 193 kB / 0.4889 GB, free: 13.03 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004636/0.3987, allocations: 248.6 kB / 0.4891 GB, free: 12.78 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004143/0.3991, allocations: 182.1 kB / 0.4893 GB, free: 12.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.3991, allocations: 0 / 0.4893 GB, free: 12.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001207/0.4003, allocations: 0.6173 MB / 0.4899 GB, free: 11.97 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.4004, allocations: 8 kB / 0.4899 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.4004, allocations: 0 / 0.4899 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007249/0.4011, allocations: 250.8 kB / 0.4901 GB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003067/0.4014, allocations: 71.88 kB / 0.4902 GB, free: 11.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004111/0.4056, allocations: 2.744 MB / 0.4929 GB, free: 8.773 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003356/0.4059, allocations: 40.03 kB / 0.4929 GB, free: 8.734 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.027e-05/0.406, allocations: 16 kB / 0.4929 GB, free: 8.719 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0002586/0.4063, allocations: 165.7 kB / 0.4931 GB, free: 8.547 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.104e-05/0.4064, allocations: 31.62 kB / 0.4931 GB, free: 8.516 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001199/0.4065, allocations: 51.3 kB / 0.4932 GB, free: 8.465 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.93e-06/0.4065, allocations: 4 kB / 0.4932 GB, free: 8.461 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.4065, allocations: 0 / 0.4932 GB, free: 8.461 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.4065, allocations: 4 kB / 0.4932 GB, free: 8.457 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002338/0.4089, allocations: 1.272 MB / 0.4944 GB, free: 7.125 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.4089, allocations: 0 / 0.4944 GB, free: 7.125 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003348/0.4092, allocations: 71.88 kB / 0.4945 GB, free: 7.055 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006413/0.4099, allocations: 224.8 kB / 0.4947 GB, free: 6.832 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.505e-05/0.4099, allocations: 15.98 kB / 0.4947 GB, free: 6.816 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003607/0.4135, allocations: 2.649 MB / 0.4973 GB, free: 4.035 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.4136, allocations: 3.938 kB / 0.4973 GB, free: 4.031 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001781/0.4154, allocations: 0.955 MB / 0.4982 GB, free: 3.043 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002403/0.4156, allocations: 160.7 kB / 0.4984 GB, free: 2.867 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.806e-05/0.4157, allocations: 12 kB / 0.4984 GB, free: 2.855 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003133/0.416, allocations: 35.97 kB / 0.4984 GB, free: 2.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001673/0.4162, allocations: 76.3 kB / 0.4985 GB, free: 2.746 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.362e-05/0.4162, allocations: 19.98 kB / 0.4985 GB, free: 2.727 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002256/0.4165, allocations: 176.6 kB / 0.4987 GB, free: 2.555 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4165, allocations: 0 / 0.4987 GB, free: 2.555 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007093/0.4172, allocations: 160 kB / 0.4989 GB, free: 2.398 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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.002438/0.4196, allocations: 1.643 MB / 0.5005 GB, free: 0.7148 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001383/0.421, allocations: 0.6878 MB / 0.5011 GB, free: 12 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.421, allocations: 0 / 0.5011 GB, free: 12 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1866/0.6076, allocations: 472.4 kB / 0.5016 GB, free: 101.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006691/0.6084, allocations: 32.83 kB / 0.5016 GB, free: 101.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005319/0.6137, allocations: 2.516 MB / 0.5041 GB, free: 100.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003298/0.614, allocations: 0.8059 MB / 0.5049 GB, free: 99.73 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002729/0.6143, allocations: 67.98 kB / 0.5049 GB, free: 99.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001992/0.6145, allocations: 102.2 kB / 0.505 GB, free: 99.72 MB / 378.7 MB Notification: Performance of SimCode: time 1.272e-06/0.6145, allocations: 3.281 kB / 0.505 GB, free: 99.72 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02478/0.6393, allocations: 9.656 MB / 0.5145 GB, free: 96.96 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001866/0.6396, allocations: 217.1 kB / 0.5147 GB, free: 96.71 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.259/2.899, allocations: 3.938 kB / 0.5147 GB, free: 96.71 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat