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.001052/0.001052, allocations: 177.1 kB / 8.35 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.403/1.403, allocations: 221.5 MB / 230.3 MB, free: 7.555 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.0008679/0.0008679, allocations: 88.78 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.787e-05/1.78e-05, allocations: 4 kB / 337.1 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1005, allocations: 50.41 MB / 387.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3619/0.4625, allocations: 80.44 MB / 468 MB, free: 14.28 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000244/0.4628, allocations: 67.97 kB / 468.1 MB, free: 14.21 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02717/0.49, allocations: 9.481 MB / 477.5 MB, free: 4.727 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.49, allocations: 4 kB / 477.5 MB, free: 4.723 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.81e-05/0.4901, allocations: 8 kB / 477.6 MB, free: 4.715 MB / 346.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.0009446/0.491, allocations: 0.5652 MB / 478.1 MB, free: 4.105 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.4911, allocations: 12.03 kB / 478.1 MB, free: 4.094 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002991/0.4914, allocations: 51.58 kB / 478.2 MB, free: 4.043 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003735/0.4918, allocations: 274.6 kB / 478.4 MB, free: 3.734 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001187/0.4919, allocations: 79.89 kB / 478.5 MB, free: 3.645 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.359e-05/0.492, allocations: 27.83 kB / 478.6 MB, free: 3.617 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005762/0.4925, allocations: 364.9 kB / 478.9 MB, free: 3.262 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005113/0.4931, allocations: 308.2 kB / 479.2 MB, free: 2.941 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.21e-05/0.4931, allocations: 7.984 kB / 479.2 MB, free: 2.934 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.431e-05/0.4931, allocations: 3.953 kB / 479.2 MB, free: 2.93 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.4932, allocations: 8 kB / 479.2 MB, free: 2.922 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001688/0.4948, allocations: 1.093 MB / 480.3 MB, free: 1.766 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004454/0.4953, allocations: 305.5 kB / 480.6 MB, free: 1.457 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002252/0.4955, allocations: 152.8 kB / 480.8 MB, free: 1.305 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.573e-05/0.4956, allocations: 11.95 kB / 480.8 MB, free: 1.293 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.473e-05/0.4956, allocations: 30.56 kB / 480.8 MB, free: 1.254 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 2.124e-06/0.4956, allocations: 4 kB / 480.8 MB, free: 1.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.002468/0.4981, allocations: 1.237 MB / 482.1 MB, free: 15.92 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.115e-05/0.4982, allocations: 84.86 kB / 482.1 MB, free: 15.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001954/0.4984, allocations: 189.4 kB / 482.3 MB, free: 15.62 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.67e-05/0.4984, allocations: 29.7 kB / 482.3 MB, free: 15.59 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.954e-05/0.4985, allocations: 137 kB / 482.5 MB, free: 15.45 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001303/0.4987, allocations: 145.8 kB / 482.6 MB, free: 15.31 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.255e-05/0.4987, allocations: 0 / 482.6 MB, free: 15.31 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.4988, allocations: 334.8 kB / 483 MB, free: 14.97 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002157/0.4991, allocations: 136.9 kB / 483.1 MB, free: 14.84 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002555/0.4993, allocations: 189.1 kB / 483.3 MB, free: 14.64 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003343/0.4997, allocations: 144.7 kB / 483.4 MB, free: 14.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.4997, allocations: 3.938 kB / 483.4 MB, free: 14.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008786/0.5006, allocations: 480.5 kB / 483.9 MB, free: 14.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.5006, allocations: 8 kB / 483.9 MB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.5006, allocations: 4.125 kB / 483.9 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007292/0.5014, allocations: 236.6 kB / 484.1 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002841/0.5016, allocations: 55.89 kB / 484.2 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003998/0.5057, allocations: 2.558 MB / 486.7 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003252/0.506, allocations: 24.08 kB / 486.8 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.361e-05/0.5061, allocations: 23.98 kB / 486.8 MB, free: 10.99 MB / 362.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.0002845/0.5064, allocations: 108.9 kB / 486.9 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001068/0.5075, allocations: 426.2 kB / 487.3 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.46e-05/0.5076, allocations: 31.66 kB / 487.3 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001211/0.5077, allocations: 39.39 kB / 487.4 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.5077, allocations: 4 kB / 487.4 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-06/0.5077, allocations: 0 / 487.4 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.346e-05/0.5077, allocations: 11.94 kB / 487.4 MB, free: 10.37 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001735/0.5095, allocations: 0.949 MB / 488.3 MB, free: 9.367 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.5095, allocations: 4 kB / 488.3 MB, free: 9.363 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002692/0.5098, allocations: 51.84 kB / 488.4 MB, free: 9.312 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000641/0.5104, allocations: 229.2 kB / 488.6 MB, free: 9.086 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.269e-05/0.5105, allocations: 3.953 kB / 488.6 MB, free: 9.082 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00334/0.5138, allocations: 2.486 MB / 491.1 MB, free: 6.484 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.5138, allocations: 0 / 491.1 MB, free: 6.484 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00114/0.515, allocations: 0.716 MB / 491.8 MB, free: 5.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001653/0.5152, allocations: 140.8 kB / 492 MB, free: 5.594 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.492e-05/0.5152, allocations: 11.98 kB / 492 MB, free: 5.582 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002699/0.5155, allocations: 15.98 kB / 492 MB, free: 5.566 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/0.5157, allocations: 75.84 kB / 492.1 MB, free: 5.492 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.856e-05/0.5157, allocations: 24.05 kB / 492.1 MB, free: 5.469 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001469/0.5159, allocations: 144.4 kB / 492.2 MB, free: 5.328 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.124e-06/0.5159, allocations: 0 / 492.2 MB, free: 5.328 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006622/0.5165, allocations: 127.9 kB / 492.4 MB, free: 5.203 MB / 362.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.001667/0.5182, allocations: 1.28 MB / 493.6 MB, free: 3.891 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001053/0.5193, allocations: 0.5308 MB / 494.2 MB, free: 3.348 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.5193, allocations: 0 / 494.2 MB, free: 3.348 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005211/0.5198, allocations: 380.3 kB / 494.5 MB, free: 2.969 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003001/0.5201, allocations: 23.94 kB / 494.6 MB, free: 2.945 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001262/0.5214, allocations: 0.5714 MB / 495.1 MB, free: 2.336 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000389/0.5218, allocations: 0.7917 MB / 495.9 MB, free: 1.512 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002059/0.522, allocations: 55.27 kB / 496 MB, free: 1.461 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001743/0.5222, allocations: 83.39 kB / 496.1 MB, free: 1.379 MB / 362.7 MB Notification: Performance of SimCode: time 3.21e-07/0.5222, allocations: 3.938 kB / 496.1 MB, free: 1.375 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0329/0.5551, allocations: 8.172 MB / 0.4924 GB, free: 9.246 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002064/0.5554, allocations: 149.9 kB / 0.4926 GB, free: 9.047 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.065/2.621, allocations: 0 / 0.4926 GB, free: 9.047 MB / 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