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.001091/0.001091, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001202/0.001202, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 63.7 kB / 307 MB, free: 0.5703 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.112, allocations: 50.53 MB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003692/0.1158, allocations: 2.274 MB / 359.9 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001413/0.1172, allocations: 0.7673 MB / 360.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00018/0.1174, allocations: 7.938 kB / 360.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001603/0.1176, allocations: 35.64 kB / 360.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002984/0.1179, allocations: 83.27 kB / 360.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003594/0.1183, allocations: 103.8 kB / 360.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003226/0.1186, allocations: 294.6 kB / 361.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001597/0.1188, allocations: 64.36 kB / 361.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001446/0.1189, allocations: 111.6 kB / 361.3 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001607/0.1191, allocations: 119.5 kB / 361.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.631e-05/0.1192, allocations: 20 kB / 361.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.052e-05/0.1192, allocations: 20 kB / 361.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.22e-05/0.1193, allocations: 59.66 kB / 361.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.1194, allocations: 127.4 kB / 361.6 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002433/0.1196, allocations: 255.3 kB / 361.9 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1196, allocations: 0 / 361.9 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1197, allocations: 4 kB / 361.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.766e-06/0.1197, allocations: 0 / 361.9 MB, free: 9.688 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.000741/0.1204, allocations: 0.5185 MB / 362.4 MB, free: 9.121 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.1205, allocations: 12.03 kB / 362.4 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.616e-05/0.1205, allocations: 58.73 kB / 362.5 MB, free: 9.043 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.623e-05/0.1206, allocations: 32.56 kB / 362.5 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002657/0.1209, allocations: 243.9 kB / 362.8 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.408e-05/0.1209, allocations: 20.81 kB / 362.8 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.037e-05/0.1209, allocations: 24.28 kB / 362.8 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000415/0.1214, allocations: 238.8 kB / 363 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.089e-05/0.1214, allocations: 0 / 363 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.209e-05/0.1214, allocations: 8 kB / 363 MB, free: 8.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.748e-06/0.1214, allocations: 7.984 kB / 363 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000329/0.1218, allocations: 151.8 kB / 363.2 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001332/0.1231, allocations: 1.056 MB / 364.3 MB, free: 7.125 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004276/0.1236, allocations: 210.4 kB / 364.5 MB, free: 6.883 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001357/0.1237, allocations: 67.45 kB / 364.5 MB, free: 6.805 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.1237, allocations: 0 / 364.5 MB, free: 6.805 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.043e-05/0.1238, allocations: 42.44 kB / 364.6 MB, free: 6.754 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 2.875e-06/0.1238, allocations: 7.984 kB / 364.6 MB, free: 6.746 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005665/0.1244, allocations: 193.3 kB / 364.8 MB, free: 6.551 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.927e-05/0.1245, allocations: 136.5 kB / 364.9 MB, free: 6.387 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001995/0.1247, allocations: 190.5 kB / 365.1 MB, free: 6.188 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.505e-05/0.1247, allocations: 29.7 kB / 365.1 MB, free: 6.152 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.1248, allocations: 163.8 kB / 365.3 MB, free: 5.988 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.169e-05/0.1249, allocations: 67.02 kB / 365.3 MB, free: 5.922 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.578e-05/0.125, allocations: 53.7 kB / 365.4 MB, free: 5.863 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.1251, allocations: 330.8 kB / 365.7 MB, free: 5.531 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000164/0.1253, allocations: 55.95 kB / 365.8 MB, free: 5.477 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002061/0.1255, allocations: 165.6 kB / 365.9 MB, free: 5.266 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003556/0.1258, allocations: 233.5 kB / 366.2 MB, free: 4.988 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.1259, allocations: 4 kB / 366.2 MB, free: 4.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004604/0.1263, allocations: 253.5 kB / 366.4 MB, free: 4.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.1264, allocations: 11.94 kB / 366.4 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.1264, allocations: 4 kB / 366.4 MB, free: 4.715 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.1264, allocations: 8 kB / 366.4 MB, free: 4.707 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002669/0.1267, allocations: 71.84 kB / 366.5 MB, free: 4.637 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.1267, allocations: 4 kB / 366.5 MB, free: 4.633 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001531/0.1268, allocations: 39.61 kB / 366.5 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.235e-05/0.1269, allocations: 8 kB / 366.5 MB, free: 4.586 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.0001228/0.127, allocations: 142.8 kB / 366.7 MB, free: 4.438 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.421e-05/0.1271, allocations: 23.75 kB / 366.7 MB, free: 4.414 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.275e-05/0.1272, allocations: 20.92 kB / 366.7 MB, free: 4.395 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.1272, allocations: 4 kB / 366.7 MB, free: 4.391 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.1272, allocations: 0 / 366.7 MB, free: 4.391 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.1272, allocations: 4.25 kB / 366.7 MB, free: 4.387 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004458/0.1276, allocations: 277.4 kB / 367 MB, free: 4.066 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/0.1277, allocations: 4 kB / 367 MB, free: 4.062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002707/0.1279, allocations: 51.91 kB / 367.1 MB, free: 4.012 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.306e-06/0.128, allocations: 7.938 kB / 367.1 MB, free: 4.004 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.793e-05/0.128, allocations: 4 kB / 367.1 MB, free: 4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.128, allocations: 8 kB / 367.1 MB, free: 3.992 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.128, allocations: 0 / 367.1 MB, free: 3.992 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005701/0.1286, allocations: 0.5301 MB / 367.6 MB, free: 3.449 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.361e-05/0.1287, allocations: 96.86 kB / 367.7 MB, free: 3.336 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.171e-05/0.1287, allocations: 4 kB / 367.7 MB, free: 3.332 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002133/0.1289, allocations: 11.98 kB / 367.7 MB, free: 3.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.922e-05/0.129, allocations: 16.67 kB / 367.7 MB, free: 3.305 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.197e-05/0.129, allocations: 8 kB / 367.7 MB, free: 3.297 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00012/0.1291, allocations: 140.9 kB / 367.9 MB, free: 3.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1291, allocations: 0 / 367.9 MB, free: 3.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004829/0.1296, allocations: 59.84 kB / 367.9 MB, free: 3.102 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.0008737/0.1305, allocations: 1.065 MB / 369 MB, free: 2.004 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003911/0.1309, allocations: 168.2 kB / 369.2 MB, free: 1.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.1309, allocations: 0 / 369.2 MB, free: 1.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001418/0.1311, allocations: 63.91 kB / 369.2 MB, free: 1.777 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007484/0.1318, allocations: 51.06 kB / 369.3 MB, free: 1.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1425/0.2743, allocations: 3.067 MB / 372.4 MB, free: 18.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001959/0.2745, allocations: 0.7469 MB / 373.1 MB, free: 17.89 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001213/0.2747, allocations: 27.91 kB / 373.1 MB, free: 17.89 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.175e-05/0.2748, allocations: 70.59 kB / 373.2 MB, free: 17.89 MB / 302.1 MB Notification: Performance of SimCode: time 7.11e-07/0.2748, allocations: 0 / 373.2 MB, free: 17.89 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02388/0.2987, allocations: 4.564 MB / 377.8 MB, free: 17.42 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.203/8.501, allocations: 3.625 kB / 377.8 MB, free: 17.42 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)