Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.SimpleGearShift,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",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.0009781/0.0009782, allocations: 180.5 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.458/1.458, allocations: 205.4 MB / 223.1 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008979/0.0008976, allocations: 100.1 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002796/0.0002796, allocations: 8 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.2671, allocations: 47.56 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09815/0.3653, allocations: 80.48 MB / 456.4 MB, free: 148 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002491/0.3656, allocations: 71.97 kB / 456.5 MB, free: 76 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01845/0.3841, allocations: 6.737 MB / 463.2 MB, free: 9.324 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3841, allocations: 0 / 463.2 MB, free: 9.324 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.797e-05/0.3841, allocations: 12 kB / 463.2 MB, free: 9.312 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.001196/0.3853, allocations: 0.6862 MB / 463.9 MB, free: 8.574 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.3854, allocations: 8.031 kB / 463.9 MB, free: 8.566 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001272/0.3855, allocations: 83.42 kB / 464 MB, free: 8.477 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.096e-05/0.3856, allocations: 47.47 kB / 464 MB, free: 8.43 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003351/0.386, allocations: 293.4 kB / 464.3 MB, free: 8.102 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.352e-05/0.386, allocations: 24.95 kB / 464.3 MB, free: 8.078 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.082e-05/0.3861, allocations: 39.91 kB / 464.4 MB, free: 8.039 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007957/0.3869, allocations: 434.2 kB / 464.8 MB, free: 7.609 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.993e-05/0.3869, allocations: 8 kB / 464.8 MB, free: 7.602 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.172e-05/0.387, allocations: 12 kB / 464.8 MB, free: 7.59 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.387, allocations: 8 kB / 464.8 MB, free: 7.582 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008413/0.3878, allocations: 431.7 kB / 465.3 MB, free: 7.16 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002292/0.3901, allocations: 1.309 MB / 466.6 MB, free: 5.781 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007152/0.3909, allocations: 376.6 kB / 466.9 MB, free: 5.402 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.152e-05/0.3909, allocations: 4.438 kB / 466.9 MB, free: 5.398 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.566e-05/0.3909, allocations: 43 kB / 467 MB, free: 5.348 MB / 346.7 MB Notification: Performance of pre-optimization done (n=47): time 1.853e-06/0.391, allocations: 0 / 467 MB, free: 5.348 MB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.004808/0.3958, allocations: 2.3 MB / 469.3 MB, free: 2.914 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.3958, allocations: 59.84 kB / 469.3 MB, free: 2.844 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00018/0.396, allocations: 201.8 kB / 469.5 MB, free: 2.645 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.391e-05/0.3961, allocations: 41.7 kB / 469.6 MB, free: 2.598 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.1e-05/0.3962, allocations: 168.7 kB / 469.7 MB, free: 2.426 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000141/0.3963, allocations: 173.6 kB / 469.9 MB, free: 2.254 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.488e-05/0.3964, allocations: 12 kB / 469.9 MB, free: 2.242 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.3965, allocations: 338.8 kB / 470.3 MB, free: 1.902 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000436/0.3969, allocations: 225 kB / 470.5 MB, free: 1.684 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004661/0.3974, allocations: 288.6 kB / 470.8 MB, free: 1.383 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00037/0.3978, allocations: 174.1 kB / 470.9 MB, free: 1.215 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.3978, allocations: 4 kB / 470.9 MB, free: 1.211 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001619/0.3994, allocations: 0.7468 MB / 471.7 MB, free: 460 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.3995, allocations: 8 kB / 471.7 MB, free: 452 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.163e-05/0.3995, allocations: 11.98 kB / 471.7 MB, free: 440 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009323/0.4004, allocations: 458.3 kB / 472.1 MB, free: 15.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002604/0.4007, allocations: 71.84 kB / 472.2 MB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002501/0.4032, allocations: 3.396 MB / 475.6 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004851/0.4037, allocations: 100.1 kB / 475.7 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.792e-05/0.4038, allocations: 23.98 kB / 475.7 MB, free: 12.09 MB / 362.7 MB 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 () * Number of clocked 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.0002542/0.404, allocations: 173.6 kB / 475.9 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.139e-05/0.4041, allocations: 39.53 kB / 475.9 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001702/0.4058, allocations: 0.7615 MB / 476.7 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.4059, allocations: 8 kB / 476.7 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.4059, allocations: 0 / 476.7 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.503e-06/0.4059, allocations: 3.984 kB / 476.7 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001964/0.4078, allocations: 1.209 MB / 477.9 MB, free: 9.809 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.4079, allocations: 0 / 477.9 MB, free: 9.809 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00027/0.4081, allocations: 71.84 kB / 478 MB, free: 9.738 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008312/0.409, allocations: 435.5 kB / 478.4 MB, free: 9.305 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.596e-05/0.409, allocations: 19.97 kB / 478.4 MB, free: 9.285 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002403/0.4114, allocations: 3.37 MB / 481.8 MB, free: 5.625 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.4115, allocations: 3.938 kB / 481.8 MB, free: 5.621 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001702/0.4132, allocations: 0.9697 MB / 482.8 MB, free: 4.625 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000187/0.4134, allocations: 160.6 kB / 482.9 MB, free: 4.449 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.538e-05/0.4134, allocations: 15.94 kB / 483 MB, free: 4.434 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004515/0.4139, allocations: 99.91 kB / 483 MB, free: 4.336 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001979/0.4141, allocations: 112.2 kB / 483.2 MB, free: 4.227 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.686e-05/0.4142, allocations: 19.98 kB / 483.2 MB, free: 4.207 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001456/0.4143, allocations: 177.9 kB / 483.4 MB, free: 4.031 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4143, allocations: 0 / 483.4 MB, free: 4.031 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004985/0.4148, allocations: 131.9 kB / 483.5 MB, free: 3.902 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) * Number of clocked states: 0 () * 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.002097/0.4169, allocations: 1.552 MB / 485 MB, free: 2.312 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001445/0.4184, allocations: 0.8288 MB / 485.9 MB, free: 1.445 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.4184, allocations: 4 kB / 485.9 MB, free: 1.441 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008001/0.4192, allocations: 0.5215 MB / 486.4 MB, free: 0.8945 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003826/0.4196, allocations: 44.53 kB / 486.4 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004768/0.4244, allocations: 3.496 MB / 489.9 MB, free: 13.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003352/0.4247, allocations: 0.8113 MB / 490.7 MB, free: 12.43 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001292/0.4249, allocations: 35.27 kB / 490.8 MB, free: 12.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001574/0.425, allocations: 111.3 kB / 490.9 MB, free: 12.29 MB / 378.7 MB Notification: Performance of SimCode: time 5.41e-07/0.425, allocations: 0 / 490.9 MB, free: 12.29 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02555/0.4506, allocations: 11.5 MB / 0.4906 GB, free: 0.8086 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001697/0.4508, allocations: 233.3 kB / 0.4908 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.13/2.581, allocations: 0 / 0.4908 GB, free: 0.5508 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat does not exist to compare? outputFormat=mat