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.0006883/0.0006882, allocations: 94.81 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008004/0.0008004, allocations: 203 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.2/1.2, allocations: 227.7 MB / 246.8 MB, free: 11.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002099/0.00021, allocations: 11.98 kB / 307.8 MB, free: 0.7305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0785/0.07872, allocations: 51.53 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.001947/0.0807, allocations: 1.965 MB / 361.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001009/0.08172, allocations: 0.7558 MB / 362.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.709e-05/0.08182, allocations: 7.938 kB / 362.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.286e-05/0.08192, allocations: 23.78 kB / 362.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001971/0.08213, allocations: 71.45 kB / 362.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002503/0.08238, allocations: 99.78 kB / 362.3 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002433/0.08264, allocations: 278.7 kB / 362.5 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001303/0.08278, allocations: 52.69 kB / 362.6 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.831e-05/0.08288, allocations: 103.5 kB / 362.7 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001265/0.08302, allocations: 111.4 kB / 362.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.439e-05/0.08305, allocations: 12 kB / 362.8 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.92e-05/0.08308, allocations: 12 kB / 362.8 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.645e-05/0.08312, allocations: 43.83 kB / 362.9 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001096/0.08324, allocations: 149 kB / 363 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001899/0.08343, allocations: 243.3 kB / 363.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.08344, allocations: 0 / 363.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.08345, allocations: 0 / 363.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.967e-06/0.08346, allocations: 0 / 363.3 MB, free: 9.262 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.0005903/0.08405, allocations: 491.2 kB / 363.7 MB, free: 8.734 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.0841, allocations: 19.91 kB / 363.8 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.83e-05/0.08416, allocations: 50.73 kB / 363.8 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.433e-05/0.08421, allocations: 32.56 kB / 363.8 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002335/0.08445, allocations: 255.9 kB / 364.1 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.86e-05/0.08448, allocations: 16.81 kB / 364.1 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.033e-05/0.08452, allocations: 28.28 kB / 364.1 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000371/0.0849, allocations: 238.8 kB / 364.4 MB, free: 8.039 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.08492, allocations: 0 / 364.4 MB, free: 8.039 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.053e-05/0.08495, allocations: 12 kB / 364.4 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.08496, allocations: 4 kB / 364.4 MB, free: 8.023 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003051/0.08527, allocations: 147.8 kB / 364.5 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001152/0.08643, allocations: 1.064 MB / 365.6 MB, free: 6.723 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004075/0.08685, allocations: 226.4 kB / 365.8 MB, free: 6.465 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001243/0.08699, allocations: 63.45 kB / 365.9 MB, free: 6.391 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.681e-05/0.08701, allocations: 11.98 kB / 365.9 MB, free: 6.379 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.762e-05/0.08705, allocations: 42.5 kB / 365.9 MB, free: 6.328 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.383e-06/0.08705, allocations: 0 / 365.9 MB, free: 6.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005088/0.08757, allocations: 201.3 kB / 366.1 MB, free: 6.125 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.235e-05/0.08763, allocations: 136.5 kB / 366.3 MB, free: 5.961 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001534/0.08779, allocations: 198.5 kB / 366.5 MB, free: 5.754 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.498e-05/0.08781, allocations: 25.7 kB / 366.5 MB, free: 5.723 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.066e-05/0.0879, allocations: 163.9 kB / 366.6 MB, free: 5.559 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.308e-05/0.08794, allocations: 59.11 kB / 366.7 MB, free: 5.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.626e-05/0.08799, allocations: 29.7 kB / 366.7 MB, free: 5.465 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.96e-05/0.08808, allocations: 334.8 kB / 367 MB, free: 5.129 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001393/0.08823, allocations: 55.97 kB / 367.1 MB, free: 5.074 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001817/0.08842, allocations: 165.7 kB / 367.3 MB, free: 4.863 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003236/0.08875, allocations: 233.5 kB / 367.5 MB, free: 4.586 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.08876, allocations: 4 kB / 367.5 MB, free: 4.582 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004237/0.08919, allocations: 265.2 kB / 367.8 MB, free: 4.316 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.08921, allocations: 11.94 kB / 367.8 MB, free: 4.305 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.08923, allocations: 7.938 kB / 367.8 MB, free: 4.297 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.08925, allocations: 7.984 kB / 367.8 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002369/0.08949, allocations: 71.91 kB / 367.9 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.08951, allocations: 7.938 kB / 367.9 MB, free: 4.211 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001336/0.08965, allocations: 35.88 kB / 367.9 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.708e-05/0.08967, allocations: 15.98 kB / 367.9 MB, free: 4.16 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001023/0.08978, allocations: 142.8 kB / 368.1 MB, free: 4.012 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.199e-05/0.08987, allocations: 19.75 kB / 368.1 MB, free: 3.992 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.301e-05/0.08991, allocations: 21.69 kB / 368.1 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.08992, allocations: 3.984 kB / 368.1 MB, free: 3.969 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.08993, allocations: 4 kB / 368.1 MB, free: 3.965 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.08994, allocations: 0 / 368.1 MB, free: 3.965 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003806/0.09032, allocations: 269.5 kB / 368.4 MB, free: 3.652 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.09033, allocations: 0 / 368.4 MB, free: 3.652 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000256/0.09059, allocations: 59.91 kB / 368.4 MB, free: 3.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.09061, allocations: 3.938 kB / 368.4 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.746e-05/0.09063, allocations: 11.98 kB / 368.4 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.09064, allocations: 0 / 368.4 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.09064, allocations: 4 kB / 368.4 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005002/0.09115, allocations: 0.5283 MB / 369 MB, free: 3.027 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.027e-05/0.09121, allocations: 96.84 kB / 369.1 MB, free: 2.914 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.871e-05/0.09124, allocations: 8 kB / 369.1 MB, free: 2.906 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002028/0.09145, allocations: 4.25 kB / 369.1 MB, free: 2.902 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.329e-05/0.0915, allocations: 27.91 kB / 369.1 MB, free: 2.875 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.055e-05/0.09152, allocations: 8 kB / 369.1 MB, free: 2.867 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.501e-05/0.09162, allocations: 140.9 kB / 369.2 MB, free: 2.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.09162, allocations: 0 / 369.2 MB, free: 2.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000399/0.09203, allocations: 63.84 kB / 369.3 MB, free: 2.668 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007005/0.09273, allocations: 1.082 MB / 370.4 MB, free: 1.562 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003299/0.09307, allocations: 155.8 kB / 370.5 MB, free: 1.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.09309, allocations: 4 kB / 370.5 MB, free: 1.406 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001377/0.09323, allocations: 72.64 kB / 370.6 MB, free: 1.336 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006435/0.09388, allocations: 47.97 kB / 370.7 MB, free: 1.289 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1339/0.2278, allocations: 3.291 MB / 374 MB, free: 17.35 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001782/0.228, allocations: 0.7485 MB / 374.7 MB, free: 16.66 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001134/0.2281, allocations: 26.39 kB / 374.7 MB, free: 16.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.118e-05/0.2282, allocations: 69.86 kB / 374.8 MB, free: 16.65 MB / 302.1 MB Notification: Performance of SimCode: time 9.72e-07/0.2282, allocations: 0 / 374.8 MB, free: 16.65 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01355/0.2418, allocations: 4.227 MB / 379 MB, free: 16.4 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001419/0.242, allocations: 212 kB / 379.2 MB, free: 16.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.622/1.864, allocations: 3.234 kB / 379.2 MB, free: 16.14 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/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)