Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00169/0.00169, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002026/0.002026, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.547/1.547, allocations: 227.7 MB / 247.1 MB, free: 10.28 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00199/0.00199, allocations: 59.69 kB / 307.3 MB, free: 384 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1185, allocations: 50.55 MB / 357.9 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.005296/0.1238, allocations: 2.944 MB / 360.8 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00237/0.1262, allocations: 1.045 MB / 361.9 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000326/0.1266, allocations: 7.938 kB / 361.9 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004283/0.1271, allocations: 87.28 kB / 362 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006281/0.1277, allocations: 154.9 kB / 362.1 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000492/0.1282, allocations: 183.6 kB / 362.3 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000771/0.129, allocations: 0.5969 MB / 362.9 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002925/0.1293, allocations: 110.7 kB / 363 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003573/0.1297, allocations: 259.2 kB / 363.2 MB, free: 8.402 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00041/0.1301, allocations: 295 kB / 363.5 MB, free: 8.113 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.519e-05/0.1302, allocations: 44 kB / 363.6 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002606/0.1305, allocations: 99.98 kB / 363.7 MB, free: 7.973 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002123/0.1307, allocations: 131.6 kB / 363.8 MB, free: 7.844 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000262/0.131, allocations: 238.8 kB / 364 MB, free: 7.609 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006869/0.1316, allocations: 0.5649 MB / 364.6 MB, free: 7.043 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.1317, allocations: 0 / 364.6 MB, free: 7.043 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1317, allocations: 0 / 364.6 MB, free: 7.043 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.198e-05/0.1317, allocations: 0 / 364.6 MB, free: 7.043 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001623/0.1333, allocations: 0.7798 MB / 365.4 MB, free: 6.215 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.1334, allocations: 8.031 kB / 365.4 MB, free: 6.207 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001525/0.1335, allocations: 87.7 kB / 365.5 MB, free: 6.109 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001197/0.1337, allocations: 44.38 kB / 365.5 MB, free: 6.066 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004687/0.1341, allocations: 322.4 kB / 365.8 MB, free: 5.711 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.689e-05/0.1342, allocations: 29.38 kB / 365.9 MB, free: 5.684 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.415e-05/0.1343, allocations: 40.31 kB / 365.9 MB, free: 5.645 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009416/0.1352, allocations: 450.4 kB / 366.3 MB, free: 5.195 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.415e-05/0.1353, allocations: 3.906 kB / 366.3 MB, free: 5.191 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.65e-05/0.1353, allocations: 16 kB / 366.4 MB, free: 5.176 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.528e-05/0.1353, allocations: 8 kB / 366.4 MB, free: 5.168 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001041/0.1364, allocations: 455.6 kB / 366.8 MB, free: 4.723 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002695/0.1391, allocations: 1.3 MB / 368.1 MB, free: 3.352 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001044/0.1402, allocations: 402 kB / 368.5 MB, free: 2.949 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005226/0.1407, allocations: 246.1 kB / 368.7 MB, free: 2.707 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.413e-05/0.1408, allocations: 4.438 kB / 368.7 MB, free: 2.703 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.548e-05/0.1408, allocations: 43 kB / 368.8 MB, free: 2.652 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.956e-06/0.1408, allocations: 0 / 368.8 MB, free: 2.652 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.006383/0.1472, allocations: 2.267 MB / 371.1 MB, free: 260 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.897e-05/0.1473, allocations: 67.78 kB / 371.1 MB, free: 176 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2086/0.3559, allocations: 257.8 kB / 371.4 MB, free: 20.42 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002254/0.3562, allocations: 44.36 kB / 371.4 MB, free: 20.39 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001919/0.3564, allocations: 173.5 kB / 371.6 MB, free: 20.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002552/0.3567, allocations: 178.8 kB / 371.8 MB, free: 20.24 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003589/0.3571, allocations: 100.8 kB / 371.9 MB, free: 20.22 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.3572, allocations: 345.9 kB / 372.2 MB, free: 19.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000862/0.358, allocations: 221.6 kB / 372.4 MB, free: 19.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008637/0.3589, allocations: 287 kB / 372.7 MB, free: 19.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001284/0.3602, allocations: 396.7 kB / 373.1 MB, free: 19.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.3603, allocations: 1 kB / 373.1 MB, free: 19.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002709/0.363, allocations: 0.7289 MB / 373.8 MB, free: 19.51 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.746e-05/0.363, allocations: 6.188 kB / 373.8 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.363, allocations: 5.953 kB / 373.8 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001971/0.365, allocations: 429.3 kB / 374.2 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005157/0.3656, allocations: 64.14 kB / 374.3 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003959/0.3695, allocations: 3.66 MB / 378 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009732/0.3705, allocations: 79.75 kB / 378 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.872e-05/0.3706, allocations: 19.11 kB / 378.1 MB, free: 15.85 MB / 302.1 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 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0003529/0.371, allocations: 163.1 kB / 378.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001715/0.3712, allocations: 42.81 kB / 378.3 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002944/0.3741, allocations: 0.7168 MB / 379 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-05/0.3742, allocations: 4.938 kB / 379 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.3742, allocations: 6.109 kB / 379 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.62e-05/0.3742, allocations: 6.703 kB / 379 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004317/0.3785, allocations: 1.301 MB / 380.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.3786, allocations: 0 / 380.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005353/0.3791, allocations: 54.41 kB / 380.4 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001747/0.3809, allocations: 408.8 kB / 380.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.434e-05/0.381, allocations: 23.77 kB / 380.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003867/0.3849, allocations: 3.61 MB / 384.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.3849, allocations: 0 / 384.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003593/0.3885, allocations: 1.025 MB / 385.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004001/0.3889, allocations: 163.3 kB / 385.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001425/0.3891, allocations: 19.25 kB / 385.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008879/0.39, allocations: 73.36 kB / 385.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004355/0.3905, allocations: 94.55 kB / 385.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.651e-05/0.3906, allocations: 21.42 kB / 385.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003817/0.391, allocations: 194.8 kB / 386 MB, free: 10.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.391, allocations: 0 / 386 MB, free: 10.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001034/0.392, allocations: 124.7 kB / 386.1 MB, free: 10.2 MB / 302.1 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 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005965/0.398, allocations: 1.843 MB / 387.9 MB, free: 9.078 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003063/0.4011, allocations: 0.8118 MB / 388.7 MB, free: 8.648 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.4011, allocations: 3.938 kB / 388.7 MB, free: 8.645 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001501/0.4026, allocations: 0.5319 MB / 389.3 MB, free: 8.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.4037, allocations: 80.5 kB / 389.4 MB, free: 8.285 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01291/0.4166, allocations: 4.317 MB / 393.7 MB, free: 5.625 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004715/0.4172, allocations: 0.8103 MB / 394.5 MB, free: 4.922 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000351/0.4175, allocations: 37.75 kB / 394.5 MB, free: 4.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003097/0.4179, allocations: 121.5 kB / 394.6 MB, free: 4.828 MB / 302.1 MB Notification: Performance of SimCode: time 1.263e-06/0.4179, allocations: 0 / 394.6 MB, free: 4.828 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05213/0.47, allocations: 13.5 MB / 408.1 MB, free: 11.92 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.71, allocations: 8.047 kB / 408.1 MB, free: 11.91 MB / 318.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1)