Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00129/0.00129, allocations: 118.6 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001399/0.001399, allocations: 218.6 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.457/1.457, allocations: 230.5 MB / 254.7 MB, free: 15.2 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002594/0.002594, allocations: 67.83 kB / 373.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1168, allocations: 53.31 MB / 426.9 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003871/0.1207, allocations: 2.294 MB / 429.2 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001753/0.1224, allocations: 0.7596 MB / 429.9 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000251/0.1227, allocations: 7.938 kB / 429.9 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002102/0.1229, allocations: 35.66 kB / 430 MB, free: 1.777 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004215/0.1233, allocations: 87.31 kB / 430.1 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004435/0.1238, allocations: 107.7 kB / 430.2 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004335/0.1242, allocations: 298.6 kB / 430.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001669/0.1244, allocations: 48.38 kB / 430.5 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001793/0.1245, allocations: 111.5 kB / 430.6 MB, free: 1.133 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002081/0.1247, allocations: 119.5 kB / 430.7 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.386e-05/0.1248, allocations: 20 kB / 430.7 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.37e-05/0.1248, allocations: 20 kB / 430.8 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.574e-05/0.1249, allocations: 51.78 kB / 430.8 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000147/0.125, allocations: 135.3 kB / 430.9 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003461/0.1254, allocations: 262.8 kB / 431.2 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.1254, allocations: 0 / 431.2 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1254, allocations: 0 / 431.2 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.1254, allocations: 0 / 431.2 MB, free: 0.5352 MB / 350.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.000943/0.1263, allocations: 0.526 MB / 431.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/0.1264, allocations: 12.03 kB / 431.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.683e-05/0.1265, allocations: 54.73 kB / 431.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.337e-05/0.1265, allocations: 32.75 kB / 431.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004647/0.127, allocations: 263.8 kB / 432.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.605e-05/0.127, allocations: 20.81 kB / 432.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.655e-05/0.1271, allocations: 24.38 kB / 432.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004874/0.1276, allocations: 238.8 kB / 432.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.171e-05/0.1276, allocations: 11.94 kB / 432.4 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.064e-05/0.1276, allocations: 4 kB / 432.4 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.1277, allocations: 8 kB / 432.4 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003557/0.128, allocations: 143.8 kB / 432.5 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001525/0.1295, allocations: 1.045 MB / 433.6 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004492/0.13, allocations: 210.3 kB / 433.8 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001401/0.1301, allocations: 63.48 kB / 433.8 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.936e-05/0.1301, allocations: 4 kB / 433.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.752e-05/0.1302, allocations: 46.44 kB / 433.9 MB, free: 13.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=16): time 1.643e-06/0.1302, allocations: 0 / 433.9 MB, free: 13.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005699/0.1308, allocations: 193.4 kB / 434.1 MB, free: 13.39 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.216e-05/0.1308, allocations: 140.5 kB / 434.2 MB, free: 13.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002081/0.1311, allocations: 190.8 kB / 434.4 MB, free: 13.03 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/0.1311, allocations: 25.7 kB / 434.4 MB, free: 13 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/0.1312, allocations: 172.1 kB / 434.6 MB, free: 12.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.666e-05/0.1313, allocations: 63.44 kB / 434.7 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.682e-05/0.1313, allocations: 57.66 kB / 434.7 MB, free: 12.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.1315, allocations: 330.8 kB / 435 MB, free: 12.37 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001445/0.1316, allocations: 51.97 kB / 435.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002112/0.1318, allocations: 161.7 kB / 435.2 MB, free: 12.11 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003779/0.1322, allocations: 241.5 kB / 435.5 MB, free: 11.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.1322, allocations: 4 kB / 435.5 MB, free: 11.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004953/0.1327, allocations: 253.5 kB / 435.7 MB, free: 11.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.1327, allocations: 11.94 kB / 435.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.1328, allocations: 0 / 435.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.35e-05/0.1328, allocations: 12 kB / 435.8 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002734/0.1331, allocations: 71.84 kB / 435.8 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.1331, allocations: 4.375 kB / 435.8 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001595/0.1332, allocations: 39.77 kB / 435.9 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.947e-05/0.1332, allocations: 11.94 kB / 435.9 MB, free: 11.42 MB / 366.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.0001538/0.1334, allocations: 141.7 kB / 436 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.467e-05/0.1335, allocations: 23.78 kB / 436 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.833e-05/0.1335, allocations: 24.92 kB / 436.1 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.1336, allocations: 4 kB / 436.1 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.1336, allocations: 0 / 436.1 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.1336, allocations: 4 kB / 436.1 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004801/0.134, allocations: 277.4 kB / 436.3 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.134, allocations: 0 / 436.3 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002804/0.1343, allocations: 51.91 kB / 436.4 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.197e-06/0.1343, allocations: 7.938 kB / 436.4 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.957e-05/0.1344, allocations: 8 kB / 436.4 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.1344, allocations: 0 / 436.4 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1344, allocations: 0 / 436.4 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006339/0.135, allocations: 0.5245 MB / 436.9 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.688e-05/0.1351, allocations: 96.95 kB / 437 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.122e-05/0.1351, allocations: 4 kB / 437 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002089/0.1353, allocations: 7.984 kB / 437 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.339e-05/0.1354, allocations: 15.98 kB / 437.1 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.126e-05/0.1354, allocations: 4.75 kB / 437.1 MB, free: 10.14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001254/0.1355, allocations: 144.9 kB / 437.2 MB, free: 9.996 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1355, allocations: 0 / 437.2 MB, free: 9.996 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004524/0.136, allocations: 67.84 kB / 437.3 MB, free: 9.93 MB / 366.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.0009358/0.1369, allocations: 1.073 MB / 438.3 MB, free: 8.836 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003926/0.1373, allocations: 147.7 kB / 438.5 MB, free: 8.691 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1373, allocations: 0.75 kB / 438.5 MB, free: 8.691 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001503/0.1374, allocations: 71.84 kB / 438.6 MB, free: 8.621 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006707/0.1381, allocations: 52.77 kB / 438.6 MB, free: 8.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003934/0.142, allocations: 3.071 MB / 441.7 MB, free: 5.309 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000399/0.1424, allocations: 0.7479 MB / 442.4 MB, free: 4.531 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001188/0.1426, allocations: 30.27 kB / 442.5 MB, free: 4.504 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001218/0.1427, allocations: 75.41 kB / 442.5 MB, free: 4.434 MB / 366.1 MB Notification: Performance of SimCode: time 7.41e-07/0.1427, allocations: 0 / 442.5 MB, free: 4.434 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2099/0.3525, allocations: 4.714 MB / 447.2 MB, free: 25.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.128/8.481, allocations: 1.719 kB / 447.2 MB, free: 25.07 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque_fmu --startTime=0 --stopTime=5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.772399997338653] Failed to read output from testmodel.py, exit status != 0: 8.55034419707954 8.562454621 8.434529546 Calling exit ...