Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.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.001299/0.001299, allocations: 117.8 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.001389/0.001389, allocations: 216.9 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 230.2 MB / 254.5 MB, free: 15.39 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2351/0.2351, allocations: 46.89 MB / 357.4 MB, free: 10.5 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) 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(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica 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.002322/0.002322, allocations: 77.03 kB / 0.4912 GB, free: 27.11 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1153, allocations: 65.97 MB / 0.5556 GB, free: 9.137 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.005144/0.1204, allocations: 3.062 MB / 0.5586 GB, free: 6.051 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002349/0.1227, allocations: 1.075 MB / 0.5597 GB, free: 4.973 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002524/0.123, allocations: 8 kB / 0.5597 GB, free: 4.965 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002251/0.1232, allocations: 59.31 kB / 0.5597 GB, free: 4.906 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002614/0.1235, allocations: 126.9 kB / 0.5598 GB, free: 4.781 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006404/0.1241, allocations: 171.6 kB / 0.56 GB, free: 4.613 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005982/0.1247, allocations: 457.8 kB / 0.5604 GB, free: 4.164 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002208/0.1249, allocations: 83.86 kB / 0.5605 GB, free: 4.074 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002243/0.1252, allocations: 155.4 kB / 0.5607 GB, free: 3.922 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002502/0.1254, allocations: 183.2 kB / 0.5609 GB, free: 3.742 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.031e-05/0.1255, allocations: 28 kB / 0.5609 GB, free: 3.715 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001427/0.1256, allocations: 51.98 kB / 0.5609 GB, free: 3.664 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.329e-05/0.1257, allocations: 83.69 kB / 0.561 GB, free: 3.582 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000194/0.1259, allocations: 195 kB / 0.5612 GB, free: 3.391 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006005/0.1265, allocations: 446.1 kB / 0.5616 GB, free: 2.953 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.1265, allocations: 0 / 0.5616 GB, free: 2.953 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1265, allocations: 0 / 0.5616 GB, free: 2.953 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.086e-05/0.1265, allocations: 0 / 0.5616 GB, free: 2.953 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001147/0.1276, allocations: 0.6587 MB / 0.5623 GB, free: 2.246 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.1277, allocations: 11.97 kB / 0.5623 GB, free: 2.234 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001002/0.1278, allocations: 82.69 kB / 0.5624 GB, free: 2.145 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003135/0.1281, allocations: 64.64 kB / 0.5624 GB, free: 2.082 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004926/0.1286, allocations: 295.4 kB / 0.5627 GB, free: 1.754 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.764e-05/0.1286, allocations: 29.38 kB / 0.5627 GB, free: 1.727 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.307e-05/0.1287, allocations: 56 kB / 0.5628 GB, free: 1.672 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000648/0.1294, allocations: 355.6 kB / 0.5631 GB, free: 1.297 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.394e-05/0.1294, allocations: 8 kB / 0.5631 GB, free: 1.289 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.199e-05/0.1294, allocations: 12 kB / 0.5631 GB, free: 1.277 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.1294, allocations: 8 kB / 0.5631 GB, free: 1.27 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000495/0.1299, allocations: 223.8 kB / 0.5634 GB, free: 1.051 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002611/0.1326, allocations: 1.586 MB / 0.5649 GB, free: 15.35 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006261/0.1332, allocations: 303.6 kB / 0.5652 GB, free: 15 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001798/0.1334, allocations: 93.17 kB / 0.5653 GB, free: 14.89 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.614e-05/0.1334, allocations: 8 kB / 0.5653 GB, free: 14.88 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.6e-05/0.1334, allocations: 38.48 kB / 0.5653 GB, free: 14.84 MB / 430.1 MB Notification: Performance of pre-optimization done (n=26): time 2.004e-06/0.1334, allocations: 0 / 0.5653 GB, free: 14.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007253/0.1341, allocations: 273.5 kB / 0.5656 GB, free: 14.56 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001194/0.1343, allocations: 195.8 kB / 0.5658 GB, free: 14.33 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002747/0.1345, allocations: 230.6 kB / 0.566 GB, free: 14.09 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.1346, allocations: 29.7 kB / 0.566 GB, free: 14.06 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001566/0.1347, allocations: 220.2 kB / 0.5662 GB, free: 13.84 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.942e-05/0.1348, allocations: 115 kB / 0.5663 GB, free: 13.73 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.1349, allocations: 78.08 kB / 0.5664 GB, free: 13.64 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.1351, allocations: 346.8 kB / 0.5667 GB, free: 13.29 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001891/0.1353, allocations: 80.83 kB / 0.5668 GB, free: 13.21 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003137/0.1356, allocations: 253.7 kB / 0.5671 GB, free: 12.89 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005115/0.1361, allocations: 357.1 kB / 0.5674 GB, free: 12.46 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.1361, allocations: 4 kB / 0.5674 GB, free: 12.46 MB / 430.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007042/0.1368, allocations: 389 kB / 0.5678 GB, free: 12.07 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.679e-05/0.1369, allocations: 8 kB / 0.5678 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.1369, allocations: 4 kB / 0.5678 GB, free: 12.06 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.551e-05/0.1369, allocations: 12 kB / 0.5678 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003807/0.1373, allocations: 103.8 kB / 0.5679 GB, free: 11.95 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.068e-05/0.1373, allocations: 16.8 kB / 0.5679 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002568/0.1375, allocations: 51.67 kB / 0.568 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.019e-05/0.1376, allocations: 20 kB / 0.568 GB, free: 11.86 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (52): * Single equations (assignments): 52 * 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.0002197/0.1378, allocations: 153.7 kB / 0.5681 GB, free: 11.7 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000155/0.138, allocations: 31.81 kB / 0.5682 GB, free: 11.67 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002183/0.1382, allocations: 91.38 kB / 0.5683 GB, free: 11.57 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.1382, allocations: 4 kB / 0.5683 GB, free: 11.57 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.393e-06/0.1382, allocations: 7.938 kB / 0.5683 GB, free: 11.56 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.1382, allocations: 0 / 0.5683 GB, free: 11.56 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007523/0.1389, allocations: 353.3 kB / 0.5686 GB, free: 11.17 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.1389, allocations: 4 kB / 0.5686 GB, free: 11.16 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004218/0.1394, allocations: 83.89 kB / 0.5687 GB, free: 11.08 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/0.1394, allocations: 0 / 0.5687 GB, free: 11.08 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.548e-05/0.1394, allocations: 8.75 kB / 0.5687 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.1394, allocations: 4 kB / 0.5687 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1394, allocations: 0 / 0.5687 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000841/0.1402, allocations: 0.7702 MB / 0.5695 GB, free: 10.28 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000107/0.1404, allocations: 108.9 kB / 0.5696 GB, free: 10.15 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.364e-05/0.1404, allocations: 8 kB / 0.5696 GB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003215/0.1407, allocations: 11.98 kB / 0.5696 GB, free: 10.13 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.007e-05/0.1408, allocations: 19.97 kB / 0.5696 GB, free: 10.11 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.009e-05/0.1408, allocations: 19.92 kB / 0.5696 GB, free: 10.09 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001738/0.141, allocations: 169.9 kB / 0.5698 GB, free: 9.93 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.141, allocations: 0 / 0.5698 GB, free: 9.93 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006676/0.1416, allocations: 99.78 kB / 0.5699 GB, free: 9.832 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,inertia6.w,inverseSpeedDependentTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T) * 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 (27): * Single equations (assignments): 27 * 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.001194/0.1428, allocations: 1.302 MB / 0.5711 GB, free: 8.504 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005338/0.1434, allocations: 232 kB / 0.5714 GB, free: 8.277 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.1434, allocations: 0 / 0.5714 GB, free: 8.277 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000182/0.1436, allocations: 91.83 kB / 0.5714 GB, free: 8.188 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009376/0.1445, allocations: 83.64 kB / 0.5715 GB, free: 8.113 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005852/0.1503, allocations: 4.091 MB / 0.5755 GB, free: 3.773 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005305/0.1509, allocations: 0.7873 MB / 0.5763 GB, free: 2.957 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001928/0.1511, allocations: 42.95 kB / 0.5763 GB, free: 2.914 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000169/0.1512, allocations: 107.4 kB / 0.5764 GB, free: 2.809 MB / 430.1 MB Notification: Performance of SimCode: time 1.533e-06/0.1512, allocations: 0 / 0.5764 GB, free: 2.809 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0349/0.1861, allocations: 6.465 MB / 0.5828 GB, free: 12.46 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.612/8.799, allocations: 11.84 kB / 0.5828 GB, free: 12.45 MB / 446.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.66551302280277] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertia1.phi', 'inertia1.w', 'inertia2.phi', 'inertia2.w', 'inertia3.phi', 'inertia3.w', 'inertia4.phi', 'inertia4.w', 'inertia5.phi', 'inertia5.w'] 8.870719507802278 8.892378911 8.761893587 Calling exit ...