Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.CompareBrakingTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008229/0.0008228, allocations: 97.44 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000987/0.0009869, allocations: 207.2 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.126/1.126, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002183/0.0002183, allocations: 8 kB / 306.7 MB, free: 1.285 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08311/0.08334, allocations: 51.5 MB / 358.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.001957/0.08533, allocations: 1.802 MB / 360 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00103/0.08638, allocations: 0.729 MB / 360.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.125e-05/0.08649, allocations: 4 kB / 360.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.55e-05/0.08654, allocations: 23.78 kB / 360.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002392/0.08678, allocations: 107.7 kB / 360.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002225/0.08702, allocations: 87.7 kB / 360.9 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002529/0.08728, allocations: 203.6 kB / 361.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001312/0.08742, allocations: 48.59 kB / 361.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000101/0.08753, allocations: 95.64 kB / 361.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001946/0.08773, allocations: 103.5 kB / 361.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.532e-05/0.08776, allocations: 12 kB / 361.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.091e-05/0.0878, allocations: 16 kB / 361.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.75e-05/0.08784, allocations: 43.83 kB / 361.5 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.12e-05/0.0879, allocations: 69.58 kB / 361.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000213/0.08812, allocations: 183.7 kB / 361.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.08813, allocations: 0 / 361.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.08813, allocations: 0 / 361.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.08814, allocations: 0 / 361.7 MB, free: 10.25 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0006336/0.08878, allocations: 494.9 kB / 362.2 MB, free: 9.723 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.08882, allocations: 8.031 kB / 362.2 MB, free: 9.715 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.756e-05/0.08889, allocations: 54.55 kB / 362.3 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.525e-05/0.08894, allocations: 27.72 kB / 362.3 MB, free: 9.625 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002658/0.08921, allocations: 254.5 kB / 362.5 MB, free: 9.336 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.062e-05/0.08924, allocations: 20.38 kB / 362.5 MB, free: 9.316 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.975e-05/0.08928, allocations: 27.95 kB / 362.6 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003732/0.08966, allocations: 234.6 kB / 362.8 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/0.08969, allocations: 15.89 kB / 362.8 MB, free: 9.023 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.837e-05/0.08972, allocations: 4 kB / 362.8 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.681e-05/0.08974, allocations: 8 kB / 362.8 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003011/0.09004, allocations: 147.8 kB / 363 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001213/0.09127, allocations: 1.057 MB / 364 MB, free: 7.719 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004043/0.09168, allocations: 226.6 kB / 364.3 MB, free: 7.461 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.339e-05/0.0917, allocations: 0 / 364.3 MB, free: 7.461 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.403e-05/0.09173, allocations: 46.5 kB / 364.3 MB, free: 7.406 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 2.234e-06/0.09174, allocations: 3.984 kB / 364.3 MB, free: 7.402 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004931/0.09224, allocations: 197.5 kB / 364.5 MB, free: 7.203 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.892e-05/0.09232, allocations: 140.4 kB / 364.6 MB, free: 7.035 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001653/0.09249, allocations: 188.1 kB / 364.8 MB, free: 6.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.538e-05/0.09251, allocations: 29.7 kB / 364.8 MB, free: 6.805 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.792e-05/0.09262, allocations: 171.8 kB / 365 MB, free: 6.633 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.66e-05/0.09267, allocations: 59.11 kB / 365.1 MB, free: 6.574 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.002e-05/0.09268, allocations: 4 kB / 365.1 MB, free: 6.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.09281, allocations: 330.8 kB / 365.4 MB, free: 6.238 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001366/0.09295, allocations: 55.97 kB / 365.5 MB, free: 6.184 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001855/0.09314, allocations: 161.7 kB / 365.6 MB, free: 5.977 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001599/0.09331, allocations: 79.92 kB / 365.7 MB, free: 5.898 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.09333, allocations: 7.938 kB / 365.7 MB, free: 5.891 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004311/0.09376, allocations: 265.3 kB / 366 MB, free: 5.625 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.09379, allocations: 12.03 kB / 366 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.0938, allocations: 0 / 366 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.09382, allocations: 8 kB / 366 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000245/0.09407, allocations: 67.91 kB / 366 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.005e-05/0.0941, allocations: 15.94 kB / 366.1 MB, free: 5.523 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001345/0.09424, allocations: 23.78 kB / 366.1 MB, free: 5.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.821e-05/0.09427, allocations: 12 kB / 366.1 MB, free: 5.488 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 32 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001028/0.09437, allocations: 138.3 kB / 366.2 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.609e-05/0.09446, allocations: 23.75 kB / 366.2 MB, free: 5.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.561e-05/0.09451, allocations: 20.92 kB / 366.3 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.09452, allocations: 7.938 kB / 366.3 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.09453, allocations: 0 / 366.3 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.558e-05/0.09455, allocations: 7.953 kB / 366.3 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004004/0.09496, allocations: 277.4 kB / 366.6 MB, free: 4.965 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.09496, allocations: 0 / 366.6 MB, free: 4.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002518/0.09522, allocations: 51.97 kB / 366.6 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.09523, allocations: 0 / 366.6 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.712e-05/0.09526, allocations: 12 kB / 366.6 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.09526, allocations: 0 / 366.6 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.09527, allocations: 0 / 366.6 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005531/0.09582, allocations: 0.5765 MB / 367.2 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.229e-05/0.09589, allocations: 96.86 kB / 367.3 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.899e-05/0.09592, allocations: 4 kB / 367.3 MB, free: 4.172 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002045/0.09613, allocations: 8 kB / 367.3 MB, free: 4.164 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.071e-05/0.09618, allocations: 12.73 kB / 367.3 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.172e-05/0.0962, allocations: 12.23 kB / 367.3 MB, free: 4.141 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001041/0.0963, allocations: 139.3 kB / 367.5 MB, free: 4.004 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09631, allocations: 0 / 367.5 MB, free: 4.004 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004006/0.09672, allocations: 55.84 kB / 367.5 MB, free: 3.949 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.w,signTorque.phi,inertia2.w,linearSpeedDependentTorque.phi,inertia3.w,quadraticSpeedDependentTorque.phi,inertia4.w,inverseSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008242/0.09754, allocations: 1.326 MB / 368.8 MB, free: 2.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003219/0.09788, allocations: 163.7 kB / 369 MB, free: 2.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.09789, allocations: 0.75 kB / 369 MB, free: 2.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001347/0.09803, allocations: 71.91 kB / 369.1 MB, free: 2.359 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004411/0.09848, allocations: 43.91 kB / 369.1 MB, free: 2.316 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1326/0.2311, allocations: 4.065 MB / 373.2 MB, free: 17.74 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001918/0.2313, allocations: 0.755 MB / 373.9 MB, free: 17.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001152/0.2314, allocations: 22.2 kB / 374 MB, free: 17.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.835e-05/0.2315, allocations: 72.69 kB / 374 MB, free: 17.04 MB / 302.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2315, allocations: 0 / 374 MB, free: 17.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01406/0.2456, allocations: 4.147 MB / 378.2 MB, free: 16.78 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001365/0.2458, allocations: 195 kB / 378.4 MB, free: 16.54 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.76/2.006, allocations: 0 / 378.4 MB, free: 16.54 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1)