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.001145/0.001145, allocations: 93.27 kB / 16.95 MB, free: 6.098 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.00137/0.00137, allocations: 178.1 kB / 17.83 MB, free: 5.723 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.462/1.462, allocations: 205.4 MB / 224 MB, free: 13.07 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.0005196/0.00052, allocations: 12 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1039, allocations: 47.58 MB / 328.5 MB, free: 3.977 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.00316/0.1071, allocations: 2.378 MB / 330.8 MB, free: 1.582 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001776/0.1089, allocations: 0.901 MB / 331.7 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002853/0.1093, allocations: 4 kB / 331.7 MB, free: 0.668 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002346/0.1095, allocations: 39.69 kB / 331.8 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003057/0.1098, allocations: 95.3 kB / 331.9 MB, free: 0.5352 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005236/0.1104, allocations: 159.7 kB / 332 MB, free: 388 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000592/0.111, allocations: 0.4954 MB / 332.5 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002089/0.1112, allocations: 94.02 kB / 332.6 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002469/0.1114, allocations: 215.2 kB / 332.8 MB, free: 15.57 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002852/0.1117, allocations: 239.2 kB / 333.1 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.029e-05/0.1118, allocations: 24 kB / 333.1 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001543/0.112, allocations: 71.89 kB / 333.2 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001084/0.1121, allocations: 87.7 kB / 333.2 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.015e-05/0.1122, allocations: 85.52 kB / 333.3 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003711/0.1125, allocations: 375.2 kB / 333.7 MB, free: 14.7 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1126, allocations: 0 / 333.7 MB, free: 14.7 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1126, allocations: 0 / 333.7 MB, free: 14.7 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.1126, allocations: 0 / 333.7 MB, free: 14.7 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.001237/0.1138, allocations: 0.6978 MB / 334.4 MB, free: 13.96 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.1139, allocations: 16.03 kB / 334.4 MB, free: 13.94 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001221/0.114, allocations: 79.52 kB / 334.5 MB, free: 13.85 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.622e-05/0.1141, allocations: 43.44 kB / 334.5 MB, free: 13.81 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003521/0.1144, allocations: 301.4 kB / 334.8 MB, free: 13.47 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.57e-05/0.1145, allocations: 25 kB / 334.8 MB, free: 13.45 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.607e-05/0.1146, allocations: 32 kB / 334.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008477/0.1154, allocations: 454.3 kB / 335.3 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.335e-05/0.1154, allocations: 7.906 kB / 335.3 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.121e-05/0.1155, allocations: 16 kB / 335.3 MB, free: 12.94 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.1155, allocations: 8 kB / 335.3 MB, free: 12.93 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009082/0.1164, allocations: 479.6 kB / 335.8 MB, free: 12.46 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002198/0.1186, allocations: 1.304 MB / 337.1 MB, free: 11.09 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007849/0.1194, allocations: 384.4 kB / 337.5 MB, free: 10.7 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004715/0.1199, allocations: 257.5 kB / 337.7 MB, free: 10.45 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.386e-05/0.12, allocations: 4.375 kB / 337.7 MB, free: 10.45 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.803e-05/0.12, allocations: 38.94 kB / 337.8 MB, free: 10.4 MB / 286.1 MB Notification: Performance of pre-optimization done (n=45): time 3.556e-06/0.12, allocations: 0 / 337.8 MB, free: 10.4 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.004974/0.125, allocations: 2.374 MB / 340.2 MB, free: 7.887 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.92e-05/0.1251, allocations: 59.84 kB / 340.2 MB, free: 7.816 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002525/0.1253, allocations: 250.5 kB / 340.5 MB, free: 7.566 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.882e-05/0.1254, allocations: 49.69 kB / 340.5 MB, free: 7.512 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.1255, allocations: 164.6 kB / 340.7 MB, free: 7.348 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001347/0.1256, allocations: 169.7 kB / 340.8 MB, free: 7.18 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.146e-05/0.1257, allocations: 12 kB / 340.9 MB, free: 7.168 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.1258, allocations: 342.8 kB / 341.2 MB, free: 6.824 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004555/0.1263, allocations: 237 kB / 341.4 MB, free: 6.59 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004942/0.1268, allocations: 307.2 kB / 341.7 MB, free: 6.273 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000387/0.1272, allocations: 206.1 kB / 341.9 MB, free: 6.074 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.1272, allocations: 0 / 341.9 MB, free: 6.074 MB / 286.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0015/0.1287, allocations: 0.7666 MB / 342.7 MB, free: 5.289 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.1287, allocations: 4 kB / 342.7 MB, free: 5.285 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.1287, allocations: 3.938 kB / 342.7 MB, free: 5.281 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001081/0.1298, allocations: 0.549 MB / 343.2 MB, free: 4.723 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002683/0.1301, allocations: 75.91 kB / 343.3 MB, free: 4.648 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002981/0.1331, allocations: 3.467 MB / 346.8 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004791/0.1336, allocations: 104 kB / 346.9 MB, free: 0.793 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.214e-05/0.1337, allocations: 19.98 kB / 346.9 MB, free: 0.7734 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.0002174/0.1339, allocations: 169.6 kB / 347.1 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.925e-05/0.134, allocations: 31.62 kB / 347.1 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001467/0.1354, allocations: 0.7403 MB / 347.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.1354, allocations: 4 kB / 347.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.1355, allocations: 0 / 347.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.1355, allocations: 0 / 347.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002102/0.1376, allocations: 1.286 MB / 349.1 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.1376, allocations: 0 / 349.1 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000272/0.1379, allocations: 59.91 kB / 349.2 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009188/0.1388, allocations: 0.5217 MB / 349.7 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.387e-05/0.1389, allocations: 19.97 kB / 349.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002728/0.1416, allocations: 3.444 MB / 353.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.1416, allocations: 0 / 353.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002033/0.1436, allocations: 1.044 MB / 354.2 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001975/0.1439, allocations: 160.7 kB / 354.4 MB, free: 8.859 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.197e-05/0.1439, allocations: 20 kB / 354.4 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004327/0.1444, allocations: 95.91 kB / 354.5 MB, free: 8.746 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002285/0.1446, allocations: 108.2 kB / 354.6 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.051e-05/0.1447, allocations: 19.97 kB / 354.6 MB, free: 8.621 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001802/0.1448, allocations: 178 kB / 354.8 MB, free: 8.449 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1449, allocations: 4 kB / 354.8 MB, free: 8.445 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006183/0.1455, allocations: 128 kB / 354.9 MB, free: 8.32 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.002173/0.1477, allocations: 1.627 MB / 356.5 MB, free: 6.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001537/0.1492, allocations: 0.8101 MB / 357.4 MB, free: 5.824 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1492, allocations: 0 / 357.4 MB, free: 5.824 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008747/0.1501, allocations: 0.5487 MB / 357.9 MB, free: 5.246 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004957/0.1506, allocations: 52.61 kB / 358 MB, free: 5.195 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004993/0.1556, allocations: 2.865 MB / 360.8 MB, free: 2.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004292/0.1561, allocations: 0.7957 MB / 361.6 MB, free: 1.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001488/0.1562, allocations: 39.27 kB / 361.7 MB, free: 1.391 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001574/0.1564, allocations: 103.4 kB / 361.8 MB, free: 1.289 MB / 302.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1564, allocations: 4 kB / 361.8 MB, free: 1.285 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0273/0.1837, allocations: 12.04 MB / 373.8 MB, free: 5.242 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001869/0.1839, allocations: 225.2 kB / 374 MB, free: 5 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.243/2.427, allocations: 0 / 374 MB, free: 5 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