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.002036/0.002036, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.864/1.864, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008855/0.0008855, allocations: 86.23 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.056e-05/2.059e-05, allocations: 4 kB / 315.6 MB, free: 22.64 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1004, allocations: 47.59 MB / 363.2 MB, free: 6.988 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3391/0.4396, allocations: 79.97 MB / 443.1 MB, free: 15.41 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002716/0.4399, allocations: 77.25 kB / 443.2 MB, free: 15.37 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01953/0.4594, allocations: 6.669 MB / 449.9 MB, free: 9.684 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.4595, allocations: 0 / 449.9 MB, free: 9.684 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.262e-05/0.4595, allocations: 10.69 kB / 449.9 MB, free: 9.676 MB / 330.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.001309/0.4609, allocations: 0.6575 MB / 450.6 MB, free: 8.992 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.4609, allocations: 8.031 kB / 450.6 MB, free: 8.984 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001072/0.461, allocations: 52.12 kB / 450.6 MB, free: 8.934 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004586/0.4615, allocations: 291.3 kB / 450.9 MB, free: 8.633 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.529e-05/0.4615, allocations: 18.86 kB / 450.9 MB, free: 8.617 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.427e-05/0.4616, allocations: 23.95 kB / 450.9 MB, free: 8.594 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005873/0.4622, allocations: 352.4 kB / 451.3 MB, free: 8.367 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005893/0.4628, allocations: 341.8 kB / 451.6 MB, free: 8.117 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.151e-05/0.4628, allocations: 0 / 451.6 MB, free: 8.117 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.001e-05/0.4629, allocations: 0 / 451.6 MB, free: 8.117 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.4629, allocations: 11.94 kB / 451.6 MB, free: 8.105 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002475/0.4654, allocations: 1.217 MB / 452.8 MB, free: 7.07 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005794/0.466, allocations: 330.3 kB / 453.2 MB, free: 6.855 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002842/0.4663, allocations: 210.1 kB / 453.4 MB, free: 6.727 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.235e-05/0.4664, allocations: 8.5 kB / 453.4 MB, free: 6.719 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.4664, allocations: 34.62 kB / 453.4 MB, free: 6.68 MB / 330.7 MB Notification: Performance of pre-optimization done (n=47): time 2.224e-06/0.4664, allocations: 4 kB / 453.4 MB, free: 6.676 MB / 330.7 MB Notification: Performance of matching and sorting (n=51): time 0.003403/0.4698, allocations: 1.517 MB / 454.9 MB, free: 5.348 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.714e-05/0.4699, allocations: 55.84 kB / 455 MB, free: 5.281 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002355/0.4701, allocations: 194.1 kB / 455.2 MB, free: 5.105 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.418e-05/0.4702, allocations: 31.89 kB / 455.2 MB, free: 5.07 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.4703, allocations: 159.2 kB / 455.4 MB, free: 4.938 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001716/0.4705, allocations: 167.2 kB / 455.5 MB, free: 4.797 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.8e-05/0.4705, allocations: 0 / 455.5 MB, free: 4.797 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001777/0.4707, allocations: 338.3 kB / 455.9 MB, free: 4.469 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003517/0.4711, allocations: 182.9 kB / 456 MB, free: 4.363 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003997/0.4715, allocations: 242.8 kB / 456.3 MB, free: 4.191 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004415/0.472, allocations: 160.2 kB / 456.4 MB, free: 4.082 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.472, allocations: 0 / 456.4 MB, free: 4.082 MB / 330.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001852/0.4738, allocations: 0.6517 MB / 457.1 MB, free: 3.578 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.684e-05/0.4739, allocations: 8 kB / 457.1 MB, free: 3.57 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.11e-05/0.4739, allocations: 4 kB / 457.1 MB, free: 3.566 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009226/0.4748, allocations: 432 kB / 457.5 MB, free: 3.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002851/0.4751, allocations: 78.89 kB / 457.6 MB, free: 3.156 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002961/0.4781, allocations: 3.347 MB / 460.9 MB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005645/0.4787, allocations: 92.03 kB / 461 MB, free: 15.71 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.938e-05/0.4788, allocations: 26.8 kB / 461.1 MB, free: 15.69 MB / 346.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.0002526/0.479, allocations: 117.9 kB / 461.2 MB, free: 15.57 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001153/0.4802, allocations: 0.5493 MB / 461.7 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.259e-05/0.4803, allocations: 35.62 kB / 461.8 MB, free: 15.11 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001469/0.4817, allocations: 0.6719 MB / 462.4 MB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.4818, allocations: 8 kB / 462.4 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.4818, allocations: 0 / 462.4 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.4818, allocations: 0 / 462.4 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001813/0.4836, allocations: 1.078 MB / 463.5 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.613e-06/0.4836, allocations: 7.984 kB / 463.5 MB, free: 13.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003077/0.4839, allocations: 55.22 kB / 463.6 MB, free: 13.65 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008204/0.4848, allocations: 421.6 kB / 464 MB, free: 13.32 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.054e-05/0.4848, allocations: 7.984 kB / 464 MB, free: 13.31 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002853/0.4877, allocations: 3.314 MB / 467.3 MB, free: 9.953 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.4877, allocations: 0 / 467.3 MB, free: 9.953 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001422/0.4891, allocations: 0.8571 MB / 468.2 MB, free: 9.324 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002647/0.4894, allocations: 161.1 kB / 468.3 MB, free: 9.168 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.574e-05/0.4895, allocations: 11.52 kB / 468.3 MB, free: 9.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004906/0.49, allocations: 87.91 kB / 468.4 MB, free: 9.074 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002256/0.4902, allocations: 113.3 kB / 468.5 MB, free: 8.977 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.987e-05/0.4903, allocations: 23.3 kB / 468.6 MB, free: 8.957 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001684/0.4905, allocations: 158.4 kB / 468.7 MB, free: 8.82 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4905, allocations: 0 / 468.7 MB, free: 8.82 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005596/0.491, allocations: 108 kB / 468.8 MB, free: 8.715 MB / 346.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.001874/0.4929, allocations: 1.427 MB / 470.2 MB, free: 7.5 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001254/0.4942, allocations: 0.7382 MB / 471 MB, free: 6.895 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.4942, allocations: 0 / 471 MB, free: 6.895 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006692/0.4949, allocations: 481.9 kB / 471.4 MB, free: 6.488 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004353/0.4953, allocations: 40.56 kB / 471.5 MB, free: 6.457 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001966/0.4973, allocations: 0.8456 MB / 472.3 MB, free: 5.66 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004097/0.4977, allocations: 0.8075 MB / 473.1 MB, free: 4.82 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001392/0.4979, allocations: 31.28 kB / 473.2 MB, free: 4.785 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001362/0.498, allocations: 102.7 kB / 473.3 MB, free: 4.754 MB / 346.7 MB Notification: Performance of SimCode: time 4.71e-07/0.498, allocations: 4 kB / 473.3 MB, free: 4.75 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0336/0.5316, allocations: 10.76 MB / 484 MB, free: 9.98 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002028/0.5319, allocations: 146.7 kB / 484.2 MB, free: 9.785 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.372/2.904, allocations: 0 / 484.2 MB, free: 9.785 MB / 362.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