Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_3_2_3_cpp_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.00165/0.001655, allocations: 187.6 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.099/2.099, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.00118/0.001179, allocations: 94.84 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004352/0.0004351, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1051, allocations: 47.57 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004027/0.1092, allocations: 2.277 MB / 376.9 MB, free: 13.05 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002364/0.1116, allocations: 0.9246 MB / 377.8 MB, free: 12.12 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002409/0.1119, allocations: 7.938 kB / 377.8 MB, free: 12.11 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001867/0.1121, allocations: 39.69 kB / 377.9 MB, free: 12.07 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004346/0.1125, allocations: 119.7 kB / 378 MB, free: 11.95 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006781/0.1132, allocations: 167.6 kB / 378.2 MB, free: 11.79 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006683/0.1139, allocations: 352.5 kB / 378.5 MB, free: 11.45 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002675/0.1142, allocations: 86.03 kB / 378.6 MB, free: 11.36 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000398/0.1146, allocations: 215.3 kB / 378.8 MB, free: 11.14 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004381/0.1151, allocations: 239.2 kB / 379 MB, free: 10.91 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.1152, allocations: 24 kB / 379.1 MB, free: 10.89 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002417/0.1155, allocations: 71.89 kB / 379.1 MB, free: 10.82 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001435/0.1156, allocations: 83.7 kB / 379.2 MB, free: 10.73 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001208/0.1157, allocations: 85.52 kB / 379.3 MB, free: 10.64 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006135/0.1164, allocations: 375.3 kB / 379.7 MB, free: 10.28 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.1164, allocations: 0 / 379.7 MB, free: 10.28 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.494e-06/0.1164, allocations: 0 / 379.7 MB, free: 10.28 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.1164, allocations: 0 / 379.7 MB, free: 10.28 MB / 282.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.002089/0.1185, allocations: 0.694 MB / 380.4 MB, free: 9.535 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.412e-05/0.1186, allocations: 8.031 kB / 380.4 MB, free: 9.527 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001973/0.1188, allocations: 91.45 kB / 380.4 MB, free: 9.426 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001314/0.1189, allocations: 47.44 kB / 380.5 MB, free: 9.379 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000541/0.1195, allocations: 297.4 kB / 380.8 MB, free: 9.047 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.075e-05/0.1196, allocations: 25 kB / 380.8 MB, free: 9.023 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/0.1197, allocations: 39.98 kB / 380.8 MB, free: 8.984 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001471/0.1212, allocations: 438.3 kB / 381.3 MB, free: 8.551 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.522e-05/0.1212, allocations: 7.906 kB / 381.3 MB, free: 8.543 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.054e-05/0.1213, allocations: 19.98 kB / 381.3 MB, free: 8.523 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.549e-05/0.1213, allocations: 12 kB / 381.3 MB, free: 8.512 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001698/0.123, allocations: 467.7 kB / 381.8 MB, free: 8.055 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00394/0.127, allocations: 1.308 MB / 383.1 MB, free: 6.672 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001411/0.1285, allocations: 372.5 kB / 383.4 MB, free: 6.301 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.26e-05/0.1286, allocations: 8.375 kB / 383.5 MB, free: 6.293 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.439e-05/0.1286, allocations: 34.94 kB / 383.5 MB, free: 6.25 MB / 282.7 MB Notification: Performance of pre-optimization done (n=45): time 4.849e-06/0.1287, allocations: 0 / 383.5 MB, free: 6.25 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.009491/0.1382, allocations: 2.388 MB / 385.9 MB, free: 3.723 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.828e-05/0.1383, allocations: 55.84 kB / 385.9 MB, free: 3.656 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004084/0.1387, allocations: 250.5 kB / 386.2 MB, free: 3.406 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001034/0.1388, allocations: 49.62 kB / 386.2 MB, free: 3.352 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001658/0.139, allocations: 227 kB / 386.4 MB, free: 3.129 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002252/0.1392, allocations: 161.8 kB / 386.6 MB, free: 2.969 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.544e-05/0.1393, allocations: 16 kB / 386.6 MB, free: 2.953 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.1395, allocations: 330.8 kB / 386.9 MB, free: 2.621 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009246/0.1404, allocations: 241 kB / 387.2 MB, free: 2.379 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000949/0.1414, allocations: 303.2 kB / 387.5 MB, free: 2.066 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007765/0.1422, allocations: 202.1 kB / 387.7 MB, free: 1.871 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.1422, allocations: 0 / 387.7 MB, free: 1.871 MB / 282.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00287/0.1451, allocations: 0.7511 MB / 388.4 MB, free: 1.102 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.091e-05/0.1451, allocations: 8 kB / 388.4 MB, free: 1.094 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.1452, allocations: 3.984 kB / 388.4 MB, free: 1.09 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001971/0.1471, allocations: 0.5529 MB / 389 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005957/0.1478, allocations: 75.89 kB / 389.1 MB, free: 464 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.265/0.4128, allocations: 3.457 MB / 392.5 MB, free: 17.91 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001067/0.4139, allocations: 105.5 kB / 392.6 MB, free: 17.91 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.739e-05/0.4141, allocations: 20.36 kB / 392.6 MB, free: 17.91 MB / 282.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): 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.0003474/0.4144, allocations: 168.4 kB / 392.8 MB, free: 17.79 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001183/0.4145, allocations: 33.47 kB / 392.8 MB, free: 17.79 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002768/0.4173, allocations: 0.7381 MB / 393.6 MB, free: 17.71 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.358e-05/0.4174, allocations: 7.094 kB / 393.6 MB, free: 17.71 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.667e-06/0.4174, allocations: 3.469 kB / 393.6 MB, free: 17.71 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.52e-05/0.4174, allocations: 10.52 kB / 393.6 MB, free: 17.71 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003681/0.4211, allocations: 1.268 MB / 394.9 MB, free: 17.13 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.225e-06/0.4212, allocations: 9.156 kB / 394.9 MB, free: 17.12 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005705/0.4218, allocations: 54.73 kB / 394.9 MB, free: 17.12 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001768/0.4236, allocations: 0.5383 MB / 395.5 MB, free: 16.99 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001162/0.4237, allocations: 17.89 kB / 395.5 MB, free: 16.98 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003589/0.4273, allocations: 3.449 MB / 398.9 MB, free: 13.73 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.4274, allocations: 0 / 398.9 MB, free: 13.73 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003501/0.4309, allocations: 1.045 MB / 400 MB, free: 13.27 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003481/0.4313, allocations: 160.7 kB / 400.1 MB, free: 13.14 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001261/0.4314, allocations: 19.03 kB / 400.2 MB, free: 13.13 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009884/0.4324, allocations: 98.81 kB / 400.2 MB, free: 13.12 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000422/0.4329, allocations: 103.5 kB / 400.4 MB, free: 13.11 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.227e-05/0.433, allocations: 20.61 kB / 400.4 MB, free: 13.1 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002823/0.4333, allocations: 176.9 kB / 400.5 MB, free: 13 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4333, allocations: 1.062 kB / 400.5 MB, free: 13 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008207/0.4341, allocations: 131.5 kB / 400.7 MB, free: 12.98 MB / 282.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 (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.003891/0.438, allocations: 1.626 MB / 402.3 MB, free: 11.95 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002632/0.4407, allocations: 0.8116 MB / 403.1 MB, free: 11.54 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.4408, allocations: 5.188 kB / 403.1 MB, free: 11.54 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001542/0.4423, allocations: 0.5401 MB / 403.7 MB, free: 11.21 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006998/0.4431, allocations: 49.28 kB / 403.7 MB, free: 11.19 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009031/0.4521, allocations: 3.64 MB / 407.3 MB, free: 8.879 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003827/0.4525, allocations: 0.8114 MB / 408.2 MB, free: 8.176 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003068/0.4529, allocations: 109.8 kB / 408.3 MB, free: 8.098 MB / 282.7 MB Notification: Performance of SimCode: time 1.243e-06/0.4529, allocations: 2.203 kB / 408.3 MB, free: 8.098 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.17/3.623, allocations: 9.923 MB / 418.2 MB, free: 2.863 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat does not exist to compare? outputFormat=mat