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.001684/0.001684, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002068/0.002068, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001995/0.001995, allocations: 59.89 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2433/0.2453, allocations: 50.55 MB / 408.8 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003688/0.249, allocations: 2.279 MB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001539/0.2506, allocations: 0.7634 MB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001841/0.2508, allocations: 4 kB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001575/0.251, allocations: 35.59 kB / 411.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003157/0.2513, allocations: 79.33 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003782/0.2517, allocations: 115.7 kB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004098/0.2521, allocations: 294.7 kB / 412.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001678/0.2523, allocations: 72.31 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001357/0.2525, allocations: 107.6 kB / 412.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001726/0.2526, allocations: 119.4 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.572e-05/0.2527, allocations: 20 kB / 412.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.212e-05/0.2527, allocations: 20 kB / 412.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.928e-05/0.2528, allocations: 51.83 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000124/0.2529, allocations: 119.4 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003232/0.2533, allocations: 277.7 kB / 413.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2533, allocations: 0 / 413.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2533, allocations: 0 / 413.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.2533, allocations: 0 / 413.1 MB, free: 13.09 MB / 334.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.0008267/0.2541, allocations: 0.5222 MB / 413.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.2542, allocations: 8.031 kB / 413.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.748e-05/0.2542, allocations: 54.73 kB / 413.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.398e-05/0.2543, allocations: 28.75 kB / 413.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003659/0.2547, allocations: 267.9 kB / 414 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.11e-05/0.2547, allocations: 12.81 kB / 414 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.468e-05/0.2548, allocations: 28.38 kB / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004185/0.2552, allocations: 234.8 kB / 414.3 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.06e-05/0.2552, allocations: 3.953 kB / 414.3 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.373e-05/0.2552, allocations: 12 kB / 414.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.2552, allocations: 7.938 kB / 414.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003328/0.2556, allocations: 135.9 kB / 414.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001386/0.257, allocations: 1.057 MB / 415.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004584/0.2575, allocations: 214.4 kB / 415.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001466/0.2576, allocations: 67.39 kB / 415.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.017e-05/0.2576, allocations: 8 kB / 415.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.2577, allocations: 42.48 kB / 415.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.944e-06/0.2577, allocations: 0 / 415.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005489/0.2583, allocations: 193.4 kB / 416 MB, free: 9.957 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.023e-05/0.2584, allocations: 132.5 kB / 416.1 MB, free: 9.797 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001935/0.2586, allocations: 194.8 kB / 416.3 MB, free: 9.594 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/0.2586, allocations: 29.7 kB / 416.4 MB, free: 9.559 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.2587, allocations: 168.1 kB / 416.5 MB, free: 9.391 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.565e-05/0.2588, allocations: 67.42 kB / 416.6 MB, free: 9.324 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.86e-05/0.2589, allocations: 53.66 kB / 416.6 MB, free: 9.266 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.259, allocations: 330.8 kB / 417 MB, free: 8.934 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001496/0.2592, allocations: 55.97 kB / 417 MB, free: 8.879 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002238/0.2594, allocations: 165.6 kB / 417.2 MB, free: 8.668 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00038/0.2598, allocations: 233.5 kB / 417.4 MB, free: 8.391 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.2598, allocations: 0 / 417.4 MB, free: 8.391 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004903/0.2603, allocations: 257.1 kB / 417.7 MB, free: 8.133 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.2603, allocations: 18.84 kB / 417.7 MB, free: 8.117 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.2604, allocations: 4 kB / 417.7 MB, free: 8.113 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.2604, allocations: 4 kB / 417.7 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002696/0.2607, allocations: 71.89 kB / 417.8 MB, free: 8.039 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.29e-05/0.2607, allocations: 8.375 kB / 417.8 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001458/0.2608, allocations: 32.03 kB / 417.8 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.274e-05/0.2609, allocations: 12 kB / 417.8 MB, free: 7.988 MB / 334.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.0001653/0.261, allocations: 141.7 kB / 418 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.928e-05/0.2611, allocations: 27.84 kB / 418 MB, free: 7.812 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.21e-05/0.2612, allocations: 20.94 kB / 418 MB, free: 7.789 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.2612, allocations: 4 kB / 418 MB, free: 7.785 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.2612, allocations: 3.984 kB / 418 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.2612, allocations: 0 / 418 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000465/0.2617, allocations: 277.4 kB / 418.3 MB, free: 7.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.2617, allocations: 0 / 418.3 MB, free: 7.461 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002683/0.262, allocations: 47.97 kB / 418.3 MB, free: 7.414 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.611e-06/0.262, allocations: 3.938 kB / 418.3 MB, free: 7.41 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.361e-05/0.262, allocations: 11.98 kB / 418.3 MB, free: 7.398 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.262, allocations: 0 / 418.3 MB, free: 7.398 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.417e-05/0.262, allocations: 8.688 kB / 418.4 MB, free: 7.391 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006314/0.2627, allocations: 0.5129 MB / 418.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.247e-05/0.2628, allocations: 100.9 kB / 419 MB, free: 6.742 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.27e-05/0.2628, allocations: 8 kB / 419 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002056/0.263, allocations: 7.984 kB / 419 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.436e-05/0.2631, allocations: 11.98 kB / 419 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.462e-05/0.2631, allocations: 11.98 kB / 419 MB, free: 6.703 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001353/0.2632, allocations: 144.9 kB / 419.1 MB, free: 6.562 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2632, allocations: 3.938 kB / 419.1 MB, free: 6.559 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004459/0.2637, allocations: 67.84 kB / 419.2 MB, free: 6.492 MB / 334.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.001/0.2647, allocations: 1.072 MB / 420.3 MB, free: 5.395 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004419/0.2652, allocations: 151.9 kB / 420.4 MB, free: 5.246 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.2652, allocations: 0.75 kB / 420.4 MB, free: 5.246 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001479/0.2653, allocations: 63.91 kB / 420.5 MB, free: 5.184 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006705/0.266, allocations: 59.55 kB / 420.6 MB, free: 5.129 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003989/0.27, allocations: 3.072 MB / 423.6 MB, free: 1.867 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003904/0.2704, allocations: 0.744 MB / 424.4 MB, free: 1.094 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001035/0.2705, allocations: 26.28 kB / 424.4 MB, free: 1.07 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.2706, allocations: 71.41 kB / 424.5 MB, free: 1.004 MB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2707, allocations: 0 / 424.5 MB, free: 1.004 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02797/0.2986, allocations: 4.681 MB / 429.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.996/8.295, allocations: 3.5 kB / 429.2 MB, free: 12.45 MB / 350.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)