Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",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.001405/0.001405, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.449/1.449, allocations: 221.3 MB / 235.5 MB, free: 2.98 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.0009127/0.0009127, allocations: 100.6 kB / 286.5 MB, free: 248 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.098e-05/3.107e-05, allocations: 4 kB / 343.9 MB, free: 4.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.113, allocations: 50.42 MB / 394.3 MB, free: 1.777 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.362/0.475, allocations: 81.11 MB / 475.5 MB, free: 6.402 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/0.4753, allocations: 71.97 kB / 475.5 MB, free: 6.332 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0277/0.503, allocations: 9.525 MB / 485 MB, free: 12.79 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.5031, allocations: 0 / 485 MB, free: 12.79 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.075e-05/0.5031, allocations: 4 kB / 485.1 MB, free: 12.79 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.00118/0.5043, allocations: 0.573 MB / 485.6 MB, free: 12.17 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.5043, allocations: 8.031 kB / 485.6 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001213/0.5045, allocations: 70.53 kB / 485.7 MB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000338/0.5048, allocations: 43.61 kB / 485.7 MB, free: 12.04 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004654/0.5053, allocations: 278.5 kB / 486 MB, free: 11.73 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001341/0.5054, allocations: 83.95 kB / 486.1 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.351e-05/0.5055, allocations: 31.91 kB / 486.1 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006322/0.5062, allocations: 353.4 kB / 486.5 MB, free: 11.24 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.441e-05/0.5062, allocations: 3.984 kB / 486.5 MB, free: 11.24 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.128e-05/0.5063, allocations: 15.95 kB / 486.5 MB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.398e-05/0.5063, allocations: 8 kB / 486.5 MB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006624/0.5069, allocations: 374 kB / 486.9 MB, free: 10.85 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002096/0.509, allocations: 1.159 MB / 488 MB, free: 9.617 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005802/0.5096, allocations: 319.1 kB / 488.3 MB, free: 9.293 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00028/0.5099, allocations: 164.8 kB / 488.5 MB, free: 9.129 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.623e-05/0.51, allocations: 4 kB / 488.5 MB, free: 9.125 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.38e-05/0.51, allocations: 38.56 kB / 488.5 MB, free: 9.078 MB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 2.625e-06/0.51, allocations: 3.938 kB / 488.5 MB, free: 9.074 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.002642/0.5127, allocations: 1.311 MB / 489.9 MB, free: 7.668 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.992e-05/0.5128, allocations: 88.84 kB / 489.9 MB, free: 7.562 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002254/0.513, allocations: 193.5 kB / 490.1 MB, free: 7.367 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.422e-05/0.513, allocations: 33.7 kB / 490.2 MB, free: 7.328 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.265e-05/0.5131, allocations: 136.7 kB / 490.3 MB, free: 7.188 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001383/0.5133, allocations: 150 kB / 490.4 MB, free: 7.039 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.885e-05/0.5133, allocations: 12 kB / 490.5 MB, free: 7.027 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.5135, allocations: 334.8 kB / 490.8 MB, free: 6.691 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002507/0.5137, allocations: 148.9 kB / 490.9 MB, free: 6.547 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002909/0.514, allocations: 201.9 kB / 491.1 MB, free: 6.332 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002517/0.5143, allocations: 145.6 kB / 491.3 MB, free: 6.191 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.5143, allocations: 0 / 491.3 MB, free: 6.191 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000877/0.5152, allocations: 0.5082 MB / 491.8 MB, free: 5.672 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.285e-05/0.5152, allocations: 8 kB / 491.8 MB, free: 5.664 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.5152, allocations: 0 / 491.8 MB, free: 5.664 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007281/0.516, allocations: 241.4 kB / 492 MB, free: 5.426 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002609/0.5162, allocations: 51.97 kB / 492.1 MB, free: 5.375 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00382/0.5201, allocations: 2.628 MB / 494.7 MB, free: 2.613 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003022/0.5204, allocations: 40.06 kB / 494.7 MB, free: 2.574 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.891e-05/0.5205, allocations: 12 kB / 494.8 MB, free: 2.562 MB / 362.7 MB 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.0001605/0.5206, allocations: 128.9 kB / 494.9 MB, free: 2.43 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.346e-05/0.5207, allocations: 31.61 kB / 494.9 MB, free: 2.398 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001107/0.5208, allocations: 42.77 kB / 494.9 MB, free: 2.355 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.5209, allocations: 8 kB / 495 MB, free: 2.348 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.5209, allocations: 0 / 495 MB, free: 2.348 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.5209, allocations: 3.984 kB / 495 MB, free: 2.344 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001753/0.5226, allocations: 1.031 MB / 496 MB, free: 1.254 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.5227, allocations: 0 / 496 MB, free: 1.254 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002421/0.5229, allocations: 43.97 kB / 496 MB, free: 1.211 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006258/0.5235, allocations: 228.8 kB / 496.3 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.562e-05/0.5236, allocations: 15.98 kB / 496.3 MB, free: 0.9688 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003345/0.5269, allocations: 2.581 MB / 498.9 MB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.527, allocations: 0 / 498.9 MB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00114/0.5281, allocations: 0.7356 MB / 499.6 MB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001757/0.5283, allocations: 140.8 kB / 499.7 MB, free: 13.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.246e-05/0.5284, allocations: 12 kB / 499.7 MB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002723/0.5286, allocations: 36.05 kB / 499.8 MB, free: 13.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001622/0.5288, allocations: 67.88 kB / 499.8 MB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.83e-05/0.5289, allocations: 15.98 kB / 499.9 MB, free: 13.21 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000162/0.529, allocations: 156.3 kB / 0.4883 GB, free: 13.06 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.674e-06/0.529, allocations: 0 / 0.4883 GB, free: 13.06 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006224/0.5297, allocations: 147.9 kB / 0.4884 GB, free: 12.92 MB / 378.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.00158/0.5313, allocations: 1.347 MB / 0.4897 GB, free: 11.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001069/0.5323, allocations: 0.5632 MB / 0.4903 GB, free: 10.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.5324, allocations: 0 / 0.4903 GB, free: 10.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005692/0.5329, allocations: 404.8 kB / 0.4907 GB, free: 10.55 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002926/0.5332, allocations: 20.11 kB / 0.4907 GB, free: 10.53 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/0.5345, allocations: 0.6096 MB / 0.4913 GB, free: 9.891 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003918/0.5349, allocations: 0.7881 MB / 0.4921 GB, free: 9.078 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002112/0.5351, allocations: 58.95 kB / 0.4921 GB, free: 9.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001683/0.5353, allocations: 83.39 kB / 0.4922 GB, free: 8.938 MB / 378.7 MB Notification: Performance of SimCode: time 6.01e-07/0.5353, allocations: 0 / 0.4922 GB, free: 8.938 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02298/0.5583, allocations: 8.748 MB / 0.5007 GB, free: 360 kB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001827/0.5586, allocations: 183 kB / 0.5009 GB, free: 132 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.018/2.576, allocations: 0 / 0.5009 GB, free: 132 kB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat