Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.001329/0.001329, allocations: 117.9 kB / 18.5 MB, free: 4.52 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.001423/0.001423, allocations: 214.5 kB / 21.46 MB, free: 1.566 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.529/1.529, allocations: 230.4 MB / 254.7 MB, free: 15.04 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.2398/0.2398, allocations: 46.92 MB / 357.7 MB, free: 10.21 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.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions2",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.002462/0.002462, allocations: 79.86 kB / 0.4917 GB, free: 7.738 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1407, allocations: 66.04 MB / 0.5562 GB, free: 5.562 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004698/0.1454, allocations: 2.852 MB / 0.5589 GB, free: 2.691 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001568/0.1469, allocations: 0.7789 MB / 0.5597 GB, free: 1.906 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002338/0.1472, allocations: 15.94 kB / 0.5597 GB, free: 1.891 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002081/0.1474, allocations: 63.38 kB / 0.5598 GB, free: 1.828 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002608/0.1476, allocations: 118.9 kB / 0.5599 GB, free: 1.711 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003443/0.148, allocations: 107.8 kB / 0.56 GB, free: 1.605 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005307/0.1485, allocations: 438 kB / 0.5604 GB, free: 1.176 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000246/0.1488, allocations: 113.6 kB / 0.5605 GB, free: 1.059 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003146/0.1491, allocations: 187.3 kB / 0.5607 GB, free: 0.875 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002388/0.1493, allocations: 175.2 kB / 0.5609 GB, free: 0.7031 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.996e-05/0.1494, allocations: 32 kB / 0.5609 GB, free: 0.6719 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001025/0.1495, allocations: 36 kB / 0.5609 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.157e-05/0.1495, allocations: 79.69 kB / 0.561 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002084/0.1498, allocations: 203.1 kB / 0.5612 GB, free: 368 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005436/0.1503, allocations: 442.1 kB / 0.5616 GB, free: 15.92 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1503, allocations: 4 kB / 0.5616 GB, free: 15.92 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1503, allocations: 4 kB / 0.5616 GB, free: 15.91 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.1503, allocations: 0 / 0.5616 GB, free: 15.91 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001034/0.1513, allocations: 0.6548 MB / 0.5623 GB, free: 15.21 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.1514, allocations: 15.97 kB / 0.5623 GB, free: 15.2 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.51e-05/0.1515, allocations: 70.72 kB / 0.5623 GB, free: 15.12 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000274/0.1517, allocations: 68.67 kB / 0.5624 GB, free: 15.05 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004226/0.1522, allocations: 287.5 kB / 0.5627 GB, free: 14.73 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.265e-05/0.1522, allocations: 29.38 kB / 0.5627 GB, free: 14.7 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.746e-05/0.1523, allocations: 40.33 kB / 0.5628 GB, free: 14.66 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006796/0.153, allocations: 394.3 kB / 0.5631 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.517e-05/0.153, allocations: 7.953 kB / 0.5631 GB, free: 14.24 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.493e-05/0.153, allocations: 16 kB / 0.5632 GB, free: 14.23 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.496e-05/0.153, allocations: 12 kB / 0.5632 GB, free: 14.21 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004548/0.1535, allocations: 223.7 kB / 0.5634 GB, free: 14 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002409/0.1559, allocations: 1.723 MB / 0.5651 GB, free: 12.17 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004734/0.1564, allocations: 254.4 kB / 0.5653 GB, free: 11.86 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001738/0.1565, allocations: 94.02 kB / 0.5654 GB, free: 11.74 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.48e-05/0.1566, allocations: 4 kB / 0.5654 GB, free: 11.74 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.359e-05/0.1566, allocations: 38.56 kB / 0.5654 GB, free: 11.69 MB / 430.1 MB Notification: Performance of pre-optimization done (n=26): time 1.964e-06/0.1566, allocations: 4 kB / 0.5654 GB, free: 11.69 MB / 430.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007128/0.1573, allocations: 269.5 kB / 0.5657 GB, free: 11.42 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001333/0.1574, allocations: 213.6 kB / 0.5659 GB, free: 11.16 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002918/0.1577, allocations: 271.2 kB / 0.5662 GB, free: 10.88 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.537e-05/0.1578, allocations: 34.08 kB / 0.5662 GB, free: 10.84 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001795/0.1579, allocations: 252.1 kB / 0.5664 GB, free: 10.59 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.976e-05/0.158, allocations: 123 kB / 0.5665 GB, free: 10.47 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/0.1582, allocations: 98.23 kB / 0.5666 GB, free: 10.37 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.1584, allocations: 346.8 kB / 0.567 GB, free: 10.02 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002178/0.1586, allocations: 101.2 kB / 0.5671 GB, free: 9.926 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004865/0.1591, allocations: 432.8 kB / 0.5675 GB, free: 9.344 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007435/0.1598, allocations: 0.5663 MB / 0.568 GB, free: 8.617 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.1598, allocations: 4 kB / 0.568 GB, free: 8.613 MB / 430.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00095/0.1608, allocations: 0.525 MB / 0.5686 GB, free: 8.082 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.536e-05/0.1608, allocations: 12 kB / 0.5686 GB, free: 8.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.588e-05/0.1608, allocations: 12.12 kB / 0.5686 GB, free: 8.059 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.118e-05/0.1608, allocations: 16 kB / 0.5686 GB, free: 8.043 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004492/0.1613, allocations: 151.7 kB / 0.5687 GB, free: 7.895 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.826e-05/0.1613, allocations: 23.86 kB / 0.5688 GB, free: 7.871 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003004/0.1616, allocations: 63.56 kB / 0.5688 GB, free: 7.809 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.738e-05/0.1616, allocations: 32 kB / 0.5688 GB, free: 7.777 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * 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.0002079/0.1619, allocations: 185.5 kB / 0.569 GB, free: 7.586 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001541/0.162, allocations: 35.81 kB / 0.5691 GB, free: 7.551 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.748e-05/0.1621, allocations: 37.81 kB / 0.5691 GB, free: 7.516 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.1621, allocations: 4 kB / 0.5691 GB, free: 7.512 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.1621, allocations: 4 kB / 0.5691 GB, free: 7.508 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.1621, allocations: 0 / 0.5691 GB, free: 7.508 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001343/0.1634, allocations: 0.6558 MB / 0.5697 GB, free: 6.789 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.1635, allocations: 8 kB / 0.5698 GB, free: 6.781 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00044/0.1639, allocations: 91.88 kB / 0.5698 GB, free: 6.691 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/0.1639, allocations: 4 kB / 0.5698 GB, free: 6.688 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.385e-05/0.1639, allocations: 8 kB / 0.5699 GB, free: 6.68 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.165e-06/0.1639, allocations: 11.88 kB / 0.5699 GB, free: 6.668 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.696e-06/0.1639, allocations: 4 kB / 0.5699 GB, free: 6.664 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008184/0.1648, allocations: 0.83 MB / 0.5707 GB, free: 5.801 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/0.1649, allocations: 112.8 kB / 0.5708 GB, free: 5.672 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.307e-05/0.1649, allocations: 15.94 kB / 0.5708 GB, free: 5.656 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003683/0.1653, allocations: 8 kB / 0.5708 GB, free: 5.648 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.039e-05/0.1653, allocations: 23.97 kB / 0.5708 GB, free: 5.625 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.534e-05/0.1653, allocations: 8 kB / 0.5708 GB, free: 5.617 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000186/0.1655, allocations: 186 kB / 0.571 GB, free: 5.434 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1655, allocations: 0 / 0.571 GB, free: 5.434 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007199/0.1663, allocations: 99.89 kB / 0.5711 GB, free: 5.336 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * 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 (26): * Single equations (assignments): 26 * 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.001168/0.1674, allocations: 1.392 MB / 0.5725 GB, free: 3.906 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006096/0.168, allocations: 285.8 kB / 0.5727 GB, free: 3.629 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.168, allocations: 0.75 kB / 0.5727 GB, free: 3.629 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001803/0.1682, allocations: 92.02 kB / 0.5728 GB, free: 3.539 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009582/0.1692, allocations: 73.16 kB / 0.5729 GB, free: 3.473 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006263/0.1754, allocations: 4.939 MB / 0.5777 GB, free: 14.09 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004881/0.1759, allocations: 0.795 MB / 0.5785 GB, free: 13.27 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001734/0.1761, allocations: 47.25 kB / 0.5785 GB, free: 13.22 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001741/0.1763, allocations: 119.4 kB / 0.5787 GB, free: 13.11 MB / 446.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1763, allocations: 3.938 kB / 0.5787 GB, free: 13.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03233/0.2086, allocations: 6.712 MB / 0.5852 GB, free: 6.527 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.853/9.062, allocations: 13.77 kB / 0.5852 GB, free: 6.516 MB / 446.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00039984 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.551092502195388] Failed to read output from testmodel.py, exit status != 0: ['time', 'J2.phi', 'J2.w', 'J4.phi', 'J4.w', 'J6.phi', 'J6.w', 'inertia1.phi', 'inertia1.w', 'inertia2.phi', 'inertia2.w', 'inertia3.phi', 'inertia3.w', 'inertia4.phi', 'inertia4.w', 'inertia5.phi', 'inertia5.w', 'inertia6.phi', 'inertia6.w'] 9.134780469816178 9.420096053 9.26466941 Calling exit ...