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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 98.84 kB / 16.93 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 178.5 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.452/1.452, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004726/0.0004726, allocations: 15.28 kB / 280.8 MB, free: 3.656 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1071, allocations: 47.57 MB / 328.4 MB, free: 4.012 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002825/0.11, allocations: 2.266 MB / 330.7 MB, free: 1.73 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001616/0.1116, allocations: 0.9245 MB / 331.6 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001781/0.1118, allocations: 7.938 kB / 331.6 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001423/0.1119, allocations: 43.69 kB / 331.7 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002888/0.1122, allocations: 127.7 kB / 331.8 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004115/0.1127, allocations: 159.7 kB / 331.9 MB, free: 476 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004017/0.1131, allocations: 348.5 kB / 332.3 MB, free: 128 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001902/0.1133, allocations: 98.02 kB / 332.4 MB, free: 24 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002629/0.1136, allocations: 211.3 kB / 332.6 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002886/0.1139, allocations: 235.2 kB / 332.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.107e-05/0.1139, allocations: 24 kB / 332.8 MB, free: 15.56 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001559/0.1141, allocations: 67.89 kB / 332.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001034/0.1142, allocations: 91.69 kB / 333 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.872e-05/0.1143, allocations: 89.52 kB / 333.1 MB, free: 15.31 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003682/0.1146, allocations: 367.3 kB / 333.4 MB, free: 14.95 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1147, allocations: 4 kB / 333.4 MB, free: 14.95 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1147, allocations: 0 / 333.4 MB, free: 14.95 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.1147, allocations: 0 / 333.4 MB, free: 14.95 MB / 286.1 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.0013/0.116, allocations: 0.694 MB / 334.1 MB, free: 14.21 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.116, allocations: 8.031 kB / 334.1 MB, free: 14.2 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001258/0.1162, allocations: 75.47 kB / 334.2 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.126e-05/0.1163, allocations: 47.44 kB / 334.3 MB, free: 14.07 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003762/0.1166, allocations: 297.4 kB / 334.6 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.253e-05/0.1167, allocations: 33 kB / 334.6 MB, free: 13.7 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.081e-05/0.1168, allocations: 36 kB / 334.6 MB, free: 13.66 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000879/0.1177, allocations: 442.3 kB / 335.1 MB, free: 13.23 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.221e-05/0.1177, allocations: 15.91 kB / 335.1 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.274e-05/0.1177, allocations: 8 kB / 335.1 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.392e-05/0.1178, allocations: 12 kB / 335.1 MB, free: 13.19 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000963/0.1187, allocations: 475.7 kB / 335.6 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002352/0.1211, allocations: 1.316 MB / 336.9 MB, free: 11.34 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007991/0.1219, allocations: 376.5 kB / 337.2 MB, free: 10.96 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.637e-05/0.122, allocations: 8.359 kB / 337.2 MB, free: 10.95 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.631e-05/0.122, allocations: 38.94 kB / 337.3 MB, free: 10.91 MB / 286.1 MB Notification: Performance of pre-optimization done (n=45): time 3.407e-06/0.122, allocations: 0 / 337.3 MB, free: 10.91 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.005248/0.1272, allocations: 2.373 MB / 339.7 MB, free: 8.398 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/0.1274, allocations: 59.83 kB / 339.7 MB, free: 8.328 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002564/0.1276, allocations: 250.5 kB / 340 MB, free: 8.078 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.467e-05/0.1277, allocations: 41.7 kB / 340 MB, free: 8.031 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.1278, allocations: 172.5 kB / 340.2 MB, free: 7.859 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001369/0.128, allocations: 173.7 kB / 340.3 MB, free: 7.688 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.115e-05/0.128, allocations: 12 kB / 340.3 MB, free: 7.676 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.1282, allocations: 342.8 kB / 340.7 MB, free: 7.332 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004714/0.1286, allocations: 237 kB / 340.9 MB, free: 7.098 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004991/0.1292, allocations: 303.2 kB / 341.2 MB, free: 6.785 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003975/0.1296, allocations: 202.1 kB / 341.4 MB, free: 6.59 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1296, allocations: 4 kB / 341.4 MB, free: 6.586 MB / 286.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001511/0.1311, allocations: 0.7704 MB / 342.2 MB, free: 5.797 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.1311, allocations: 4 kB / 342.2 MB, free: 5.793 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.1311, allocations: 4.047 kB / 342.2 MB, free: 5.789 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001115/0.1323, allocations: 0.5451 MB / 342.7 MB, free: 5.234 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002942/0.1326, allocations: 79.89 kB / 342.8 MB, free: 5.156 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002887/0.1355, allocations: 3.471 MB / 346.3 MB, free: 1.398 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000516/0.136, allocations: 100.1 kB / 346.4 MB, free: 1.301 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.512e-05/0.136, allocations: 23.98 kB / 346.4 MB, free: 1.277 MB / 286.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 (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): 43 * 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 prepare postOptimizeDAE: time 0.0002111/0.1363, allocations: 165.6 kB / 346.6 MB, free: 1.105 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.158e-05/0.1363, allocations: 35.58 kB / 346.6 MB, free: 1.07 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001477/0.1378, allocations: 0.7404 MB / 347.3 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.1378, allocations: 4 kB / 347.3 MB, free: 320 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.1379, allocations: 3.984 kB / 347.3 MB, free: 316 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/0.1379, allocations: 7.938 kB / 347.4 MB, free: 308 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002134/0.14, allocations: 1.279 MB / 348.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.14, allocations: 0 / 348.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000274/0.1403, allocations: 59.89 kB / 348.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009476/0.1413, allocations: 0.5295 MB / 349.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.44e-05/0.1413, allocations: 19.97 kB / 349.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002838/0.1442, allocations: 3.436 MB / 352.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.1442, allocations: 3.953 kB / 352.7 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001933/0.1461, allocations: 1.044 MB / 353.7 MB, free: 9.531 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002077/0.1463, allocations: 164.6 kB / 353.9 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.497e-05/0.1464, allocations: 16 kB / 353.9 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004815/0.1469, allocations: 99.91 kB / 354 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002022/0.1471, allocations: 104.2 kB / 354.1 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.939e-05/0.1472, allocations: 23.97 kB / 354.1 MB, free: 9.113 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001652/0.1473, allocations: 178 kB / 354.3 MB, free: 8.941 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1473, allocations: 0 / 354.3 MB, free: 8.941 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000514/0.1479, allocations: 128 kB / 354.4 MB, free: 8.816 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 (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.002345/0.1502, allocations: 1.631 MB / 356.1 MB, free: 7.152 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001566/0.1518, allocations: 0.8099 MB / 356.9 MB, free: 6.316 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1518, allocations: 0 / 356.9 MB, free: 6.316 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008781/0.1527, allocations: 0.5526 MB / 357.4 MB, free: 5.734 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004022/0.1531, allocations: 48.53 kB / 357.5 MB, free: 5.688 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0052/0.1583, allocations: 3.602 MB / 361.1 MB, free: 2.004 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003916/0.1587, allocations: 0.8152 MB / 361.9 MB, free: 1.164 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001379/0.1589, allocations: 31.28 kB / 361.9 MB, free: 1.129 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001635/0.1591, allocations: 107.4 kB / 362 MB, free: 1.023 MB / 302.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1591, allocations: 0 / 362 MB, free: 1.023 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02666/0.1857, allocations: 12 MB / 374 MB, free: 5.016 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002239/0.186, allocations: 223.8 kB / 374.2 MB, free: 4.77 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.067/2.253, allocations: 3.938 kB / 374.2 MB, free: 4.766 MB / 318.1 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) Environment - environmentSimulation: 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