Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.SimpleGearShift,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",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.001121/0.001121, allocations: 176.4 kB / 8.346 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.486/1.486, allocations: 221.5 MB / 230.3 MB, free: 7.574 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.0009929/0.0009929, allocations: 82.09 kB / 281.2 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.719e-05/1.722e-05, allocations: 0 / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1135, allocations: 50.42 MB / 387.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3754/0.489, allocations: 80.63 MB / 468.2 MB, free: 14.06 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002153/0.4893, allocations: 71.95 kB / 468.3 MB, free: 13.99 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01925/0.5086, allocations: 6.774 MB / 475 MB, free: 7.215 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.5086, allocations: 0 / 475 MB, free: 7.215 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.789e-05/0.5086, allocations: 12 kB / 475 MB, free: 7.203 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001157/0.5098, allocations: 0.6643 MB / 475.7 MB, free: 6.496 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.5098, allocations: 8.031 kB / 475.7 MB, free: 6.488 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001536/0.51, allocations: 43.44 kB / 475.8 MB, free: 6.445 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003403/0.5103, allocations: 289.5 kB / 476 MB, free: 6.125 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.148e-05/0.5104, allocations: 12 kB / 476.1 MB, free: 6.113 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.8e-05/0.5105, allocations: 23.94 kB / 476.1 MB, free: 6.09 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006014/0.5111, allocations: 353.4 kB / 476.4 MB, free: 5.746 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005773/0.5117, allocations: 346 kB / 476.8 MB, free: 5.398 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.5117, allocations: 4 kB / 476.8 MB, free: 5.395 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.065e-05/0.5117, allocations: 7.953 kB / 476.8 MB, free: 5.387 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.5117, allocations: 8 kB / 476.8 MB, free: 5.379 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002377/0.5141, allocations: 1.221 MB / 478 MB, free: 4.098 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005614/0.5147, allocations: 333.8 kB / 478.3 MB, free: 3.762 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002797/0.515, allocations: 198.2 kB / 478.5 MB, free: 3.566 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.013e-05/0.5151, allocations: 12.38 kB / 478.5 MB, free: 3.555 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.459e-05/0.5151, allocations: 39 kB / 478.6 MB, free: 3.508 MB / 346.7 MB Notification: Performance of pre-optimization done (n=47): time 2.164e-06/0.5151, allocations: 0 / 478.6 MB, free: 3.508 MB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.003333/0.5184, allocations: 1.512 MB / 480.1 MB, free: 1.898 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.182e-05/0.5185, allocations: 55.84 kB / 480.1 MB, free: 1.832 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002125/0.5187, allocations: 192.4 kB / 480.3 MB, free: 1.637 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.549e-05/0.5188, allocations: 37.64 kB / 480.4 MB, free: 1.594 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.5189, allocations: 164.8 kB / 480.5 MB, free: 1.426 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001678/0.5191, allocations: 165.7 kB / 480.7 MB, free: 1.262 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.005e-05/0.5191, allocations: 0 / 480.7 MB, free: 1.262 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.5193, allocations: 346.8 kB / 481 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003532/0.5197, allocations: 181.1 kB / 481.2 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003998/0.5201, allocations: 234.2 kB / 481.4 MB, free: 500 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004566/0.5205, allocations: 150.1 kB / 481.6 MB, free: 348 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.5206, allocations: 4 kB / 481.6 MB, free: 344 kB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001845/0.5224, allocations: 0.6649 MB / 482.2 MB, free: 15.65 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.5225, allocations: 4 kB / 482.2 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.982e-05/0.5225, allocations: 8.125 kB / 482.3 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001096/0.5236, allocations: 435.6 kB / 482.7 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003541/0.524, allocations: 75.89 kB / 482.8 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003018/0.527, allocations: 3.35 MB / 486.1 MB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005442/0.5276, allocations: 96.09 kB / 486.2 MB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.812e-05/0.5276, allocations: 23.98 kB / 486.2 MB, free: 11.41 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0002135/0.5279, allocations: 114.1 kB / 486.3 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001086/0.5289, allocations: 0.5527 MB / 486.9 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.2e-05/0.529, allocations: 35.61 kB / 486.9 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001437/0.5305, allocations: 0.6792 MB / 487.6 MB, free: 9.988 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.742e-06/0.5305, allocations: 8 kB / 487.6 MB, free: 9.98 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.5305, allocations: 0 / 487.6 MB, free: 9.98 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.5305, allocations: 0 / 487.6 MB, free: 9.98 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00169/0.5322, allocations: 1.069 MB / 488.7 MB, free: 8.855 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.5322, allocations: 0 / 488.7 MB, free: 8.855 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003067/0.5325, allocations: 63.89 kB / 488.7 MB, free: 8.793 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008177/0.5334, allocations: 419.8 kB / 489.1 MB, free: 8.375 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.379e-05/0.5334, allocations: 15.97 kB / 489.2 MB, free: 8.359 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002582/0.536, allocations: 3.307 MB / 492.5 MB, free: 4.801 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.536, allocations: 0 / 492.5 MB, free: 4.801 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001397/0.5374, allocations: 0.8562 MB / 493.3 MB, free: 3.922 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002086/0.5377, allocations: 156.7 kB / 493.5 MB, free: 3.75 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.615e-05/0.5378, allocations: 11.94 kB / 493.5 MB, free: 3.738 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005412/0.5383, allocations: 96 kB / 493.6 MB, free: 3.645 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002048/0.5385, allocations: 104.2 kB / 493.7 MB, free: 3.543 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.531e-05/0.5386, allocations: 23.94 kB / 493.7 MB, free: 3.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001559/0.5387, allocations: 154 kB / 493.9 MB, free: 3.363 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5387, allocations: 4 kB / 493.9 MB, free: 3.359 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005276/0.5393, allocations: 112 kB / 494 MB, free: 3.25 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startBackward,clutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.001741/0.541, allocations: 1.435 MB / 495.4 MB, free: 1.781 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001157/0.5422, allocations: 0.7275 MB / 496.1 MB, free: 1.023 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.5422, allocations: 0 / 496.1 MB, free: 1.023 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006396/0.5429, allocations: 487.5 kB / 496.6 MB, free: 0.5273 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004081/0.5433, allocations: 54.98 kB / 496.7 MB, free: 488 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001838/0.5451, allocations: 0.8267 MB / 497.5 MB, free: 15.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002904/0.5454, allocations: 0.8153 MB / 498.3 MB, free: 14.77 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001353/0.5456, allocations: 31.28 kB / 498.3 MB, free: 14.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001434/0.5457, allocations: 99.39 kB / 498.4 MB, free: 14.64 MB / 378.7 MB Notification: Performance of SimCode: time 4.21e-07/0.5457, allocations: 4 kB / 498.4 MB, free: 14.63 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03035/0.5761, allocations: 10.76 MB / 0.4973 GB, free: 3.93 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001854/0.5764, allocations: 154.9 kB / 0.4974 GB, free: 3.727 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.12/2.697, allocations: 0 / 0.4974 GB, free: 3.727 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat does not exist to compare? outputFormat=mat