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.001309/0.001309, allocations: 122.5 kB / 18.51 MB, free: 4.539 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.001419/0.001419, allocations: 215.2 kB / 21.46 MB, free: 1.59 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.471/1.471, allocations: 230.5 MB / 254.8 MB, free: 15.22 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.002003/0.002003, allocations: 76.05 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.111, allocations: 53.32 MB / 427 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.004006/0.115, allocations: 2.302 MB / 429.3 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001481/0.1164, allocations: 0.7596 MB / 430.1 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001239/0.1166, allocations: 7.938 kB / 430.1 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001561/0.1167, allocations: 31.66 kB / 430.1 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002889/0.117, allocations: 87.25 kB / 430.2 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003345/0.1173, allocations: 107.8 kB / 430.3 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003735/0.1177, allocations: 298.6 kB / 430.6 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001551/0.1179, allocations: 48.38 kB / 430.6 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001502/0.118, allocations: 115.6 kB / 430.7 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001906/0.1182, allocations: 119.5 kB / 430.9 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.606e-05/0.1182, allocations: 20 kB / 430.9 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.912e-05/0.1183, allocations: 20 kB / 430.9 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.043e-05/0.1183, allocations: 51.77 kB / 430.9 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001235/0.1185, allocations: 119.4 kB / 431.1 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000326/0.1188, allocations: 270.8 kB / 431.3 MB, free: 464 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1188, allocations: 0 / 431.3 MB, free: 464 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1188, allocations: 0 / 431.3 MB, free: 464 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.603e-06/0.1188, allocations: 3.938 kB / 431.3 MB, free: 460 kB / 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.0008611/0.1197, allocations: 0.5222 MB / 431.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.1197, allocations: 11.97 kB / 431.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.749e-05/0.1198, allocations: 62.66 kB / 431.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.609e-05/0.1198, allocations: 28.75 kB / 432 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003899/0.1202, allocations: 267.8 kB / 432.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.269e-05/0.1202, allocations: 12.81 kB / 432.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.769e-05/0.1203, allocations: 28.38 kB / 432.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004531/0.1207, allocations: 234.8 kB / 432.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.03e-05/0.1208, allocations: 3.953 kB / 432.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.36e-05/0.1208, allocations: 12 kB / 432.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.1208, allocations: 7.984 kB / 432.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003627/0.1212, allocations: 143.8 kB / 432.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001486/0.1226, allocations: 1.061 MB / 433.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004668/0.1231, allocations: 202.4 kB / 433.9 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001529/0.1233, allocations: 67.48 kB / 434 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.107e-05/0.1233, allocations: 7.938 kB / 434 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.252e-05/0.1233, allocations: 38.5 kB / 434 MB, free: 13.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=16): time 1.372e-06/0.1233, allocations: 0 / 434 MB, free: 13.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=16): time 0.000576/0.1239, allocations: 198.1 kB / 434.2 MB, free: 13.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.124, allocations: 140.5 kB / 434.3 MB, free: 13.13 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001946/0.1242, allocations: 186.8 kB / 434.5 MB, free: 12.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.146e-05/0.1242, allocations: 29.7 kB / 434.6 MB, free: 12.9 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.1243, allocations: 164.1 kB / 434.7 MB, free: 12.74 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.513e-05/0.1244, allocations: 67.44 kB / 434.8 MB, free: 12.67 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.013e-05/0.1245, allocations: 49.66 kB / 434.8 MB, free: 12.62 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.1247, allocations: 330.8 kB / 435.2 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001492/0.1248, allocations: 55.97 kB / 435.2 MB, free: 12.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002345/0.125, allocations: 170.1 kB / 435.4 MB, free: 12.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004111/0.1255, allocations: 233.5 kB / 435.6 MB, free: 11.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.1255, allocations: 4 kB / 435.6 MB, free: 11.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005162/0.126, allocations: 261.1 kB / 435.9 MB, free: 11.47 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.126, allocations: 7.938 kB / 435.9 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.126, allocations: 4 kB / 435.9 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/0.126, allocations: 8 kB / 435.9 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002666/0.1263, allocations: 63.91 kB / 435.9 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/0.1263, allocations: 4.375 kB / 436 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001514/0.1264, allocations: 39.7 kB / 436 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.337e-05/0.1265, allocations: 16.25 kB / 436 MB, free: 11.33 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.0001476/0.1266, allocations: 133.8 kB / 436.1 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.245e-05/0.1267, allocations: 23.84 kB / 436.2 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.612e-05/0.1268, allocations: 20.92 kB / 436.2 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.245e-06/0.1268, allocations: 8 kB / 436.2 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.1268, allocations: 3.938 kB / 436.2 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.1268, allocations: 4 kB / 436.2 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000477/0.1273, allocations: 277.4 kB / 436.5 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.1273, allocations: 3.984 kB / 436.5 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002809/0.1275, allocations: 51.97 kB / 436.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/0.1276, allocations: 7.938 kB / 436.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.804e-05/0.1276, allocations: 4 kB / 436.5 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.1276, allocations: 4 kB / 436.5 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.1276, allocations: 0 / 436.5 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000647/0.1282, allocations: 0.5265 MB / 437.1 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.999e-05/0.1283, allocations: 101 kB / 437.2 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.712e-05/0.1283, allocations: 0 / 437.2 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002136/0.1285, allocations: 11.98 kB / 437.2 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.282e-05/0.1286, allocations: 11.98 kB / 437.2 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.031e-05/0.1286, allocations: 8 kB / 437.2 MB, free: 10.05 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001387/0.1287, allocations: 144.9 kB / 437.3 MB, free: 9.906 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1287, allocations: 0 / 437.3 MB, free: 9.906 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004222/0.1292, allocations: 63.84 kB / 437.4 MB, free: 9.844 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.000961/0.1301, allocations: 1.065 MB / 438.5 MB, free: 8.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003831/0.1305, allocations: 151.7 kB / 438.6 MB, free: 8.602 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.1305, allocations: 0.75 kB / 438.6 MB, free: 8.602 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001476/0.1307, allocations: 63.91 kB / 438.7 MB, free: 8.539 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006672/0.1313, allocations: 60.44 kB / 438.7 MB, free: 8.488 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003944/0.1353, allocations: 3.074 MB / 441.8 MB, free: 5.227 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004404/0.1357, allocations: 0.744 MB / 442.6 MB, free: 4.457 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.299e-05/0.1358, allocations: 30.22 kB / 442.6 MB, free: 4.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001143/0.1359, allocations: 67.42 kB / 442.6 MB, free: 4.367 MB / 366.1 MB Notification: Performance of SimCode: time 4.5e-07/0.1359, allocations: 4 kB / 442.7 MB, free: 4.363 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2258/0.3617, allocations: 4.714 MB / 447.4 MB, free: 25.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.356/8.718, allocations: 3.422 kB / 447.4 MB, free: 25.09 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 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: 11.254156708251685] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertia1.w', 'inertia2.w', 'inertia3.w', 'inertia4.w'] 8.787814597133547 8.803652484 8.682086899 Calling exit ...