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.001623/0.001623, 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.001947/0.001947, 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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.505/1.505, allocations: 230.2 MB / 254.5 MB, free: 15.41 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.2261/0.2261, allocations: 46.87 MB / 357.4 MB, free: 10.54 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.002366/0.002366, allocations: 77.06 kB / 0.4912 GB, free: 27.03 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1289, allocations: 65.98 MB / 0.5556 GB, free: 9.277 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004559/0.1335, allocations: 2.865 MB / 0.5584 GB, free: 6.391 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001662/0.1351, allocations: 0.7751 MB / 0.5592 GB, free: 5.609 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003395/0.1355, allocations: 11.94 kB / 0.5592 GB, free: 5.598 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002401/0.1357, allocations: 59.38 kB / 0.5593 GB, free: 5.539 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003223/0.136, allocations: 126.9 kB / 0.5594 GB, free: 5.414 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003958/0.1364, allocations: 103.8 kB / 0.5595 GB, free: 5.312 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005703/0.137, allocations: 441.9 kB / 0.5599 GB, free: 4.879 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002569/0.1373, allocations: 109.9 kB / 0.56 GB, free: 4.762 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003209/0.1376, allocations: 183.3 kB / 0.5602 GB, free: 4.582 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002647/0.1378, allocations: 175.2 kB / 0.5604 GB, free: 4.41 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.331e-05/0.1379, allocations: 32 kB / 0.5604 GB, free: 4.379 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.866e-05/0.138, allocations: 36 kB / 0.5604 GB, free: 4.344 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.12e-05/0.1381, allocations: 87.69 kB / 0.5605 GB, free: 4.258 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001976/0.1383, allocations: 195.1 kB / 0.5607 GB, free: 4.066 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005724/0.1389, allocations: 438.1 kB / 0.5611 GB, free: 3.637 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.1389, allocations: 0 / 0.5611 GB, free: 3.637 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1389, allocations: 0 / 0.5611 GB, free: 3.637 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.157e-06/0.1389, allocations: 3.938 kB / 0.5611 GB, free: 3.633 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001145/0.14, allocations: 0.6703 MB / 0.5618 GB, free: 2.914 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.1401, allocations: 8.031 kB / 0.5618 GB, free: 2.906 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001009/0.1402, allocations: 78.66 kB / 0.5618 GB, free: 2.82 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002898/0.1405, allocations: 60.67 kB / 0.5619 GB, free: 2.762 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004673/0.1409, allocations: 283.8 kB / 0.5622 GB, free: 2.445 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.486e-05/0.141, allocations: 25.38 kB / 0.5622 GB, free: 2.418 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.804e-05/0.141, allocations: 44.33 kB / 0.5622 GB, free: 2.375 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006921/0.1417, allocations: 394.3 kB / 0.5626 GB, free: 1.957 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.829e-05/0.1418, allocations: 7.953 kB / 0.5626 GB, free: 1.949 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.44e-05/0.1418, allocations: 16 kB / 0.5626 GB, free: 1.934 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.1418, allocations: 8 kB / 0.5626 GB, free: 1.926 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004502/0.1422, allocations: 223.7 kB / 0.5629 GB, free: 1.707 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002574/0.1448, allocations: 1.723 MB / 0.5645 GB, free: 15.88 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000487/0.1453, allocations: 254.4 kB / 0.5648 GB, free: 15.57 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001734/0.1455, allocations: 90.08 kB / 0.5649 GB, free: 15.46 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.885e-05/0.1455, allocations: 7.938 kB / 0.5649 GB, free: 15.45 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.835e-05/0.1455, allocations: 46.5 kB / 0.5649 GB, free: 15.39 MB / 430.1 MB Notification: Performance of pre-optimization done (n=26): time 2.575e-06/0.1456, allocations: 0 / 0.5649 GB, free: 15.39 MB / 430.1 MB Notification: Performance of matching and sorting (n=26): time 0.0008094/0.1464, allocations: 273.8 kB / 0.5652 GB, free: 15.12 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001413/0.1465, allocations: 214 kB / 0.5654 GB, free: 14.86 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003095/0.1468, allocations: 275.2 kB / 0.5656 GB, free: 14.58 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.666e-05/0.1468, allocations: 29.7 kB / 0.5657 GB, free: 14.55 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001781/0.147, allocations: 252 kB / 0.5659 GB, free: 14.3 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.727e-05/0.1471, allocations: 123 kB / 0.566 GB, free: 14.18 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001373/0.1473, allocations: 98.3 kB / 0.5661 GB, free: 14.07 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.1474, allocations: 346.8 kB / 0.5665 GB, free: 13.73 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002036/0.1476, allocations: 101.2 kB / 0.5666 GB, free: 13.63 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004988/0.1481, allocations: 432.8 kB / 0.567 GB, free: 13.05 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007453/0.1489, allocations: 0.5664 MB / 0.5675 GB, free: 12.32 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/0.1489, allocations: 8 kB / 0.5675 GB, free: 12.31 MB / 430.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009169/0.1498, allocations: 0.5247 MB / 0.568 GB, free: 11.78 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.728e-05/0.1498, allocations: 8 kB / 0.568 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.615e-05/0.1498, allocations: 15.94 kB / 0.5681 GB, free: 11.76 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.21e-05/0.1499, allocations: 16 kB / 0.5681 GB, free: 11.74 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004473/0.1503, allocations: 147.7 kB / 0.5682 GB, free: 11.6 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.648e-05/0.1503, allocations: 23.92 kB / 0.5682 GB, free: 11.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000303/0.1506, allocations: 64 kB / 0.5683 GB, free: 11.51 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.96e-05/0.1507, allocations: 32 kB / 0.5683 GB, free: 11.48 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.0002019/0.1509, allocations: 181.5 kB / 0.5685 GB, free: 11.29 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00016/0.151, allocations: 39.8 kB / 0.5685 GB, free: 11.25 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.279e-05/0.1511, allocations: 33.83 kB / 0.5686 GB, free: 11.22 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.1511, allocations: 8.172 kB / 0.5686 GB, free: 11.21 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.1511, allocations: 0 / 0.5686 GB, free: 11.21 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.1511, allocations: 4 kB / 0.5686 GB, free: 11.21 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001329/0.1525, allocations: 0.6553 MB / 0.5692 GB, free: 10.49 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.201e-06/0.1525, allocations: 4 kB / 0.5692 GB, free: 10.49 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004568/0.1529, allocations: 87.88 kB / 0.5693 GB, free: 10.4 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.674e-06/0.1529, allocations: 4 kB / 0.5693 GB, free: 10.4 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.66e-05/0.153, allocations: 8 kB / 0.5693 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.616e-06/0.153, allocations: 11.88 kB / 0.5693 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.153, allocations: 0 / 0.5693 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008758/0.1539, allocations: 0.8388 MB / 0.5702 GB, free: 9.508 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.154, allocations: 108.8 kB / 0.5703 GB, free: 9.383 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.796e-05/0.154, allocations: 11.94 kB / 0.5703 GB, free: 9.371 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003334/0.1543, allocations: 12.12 kB / 0.5703 GB, free: 9.359 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.903e-05/0.1544, allocations: 19.97 kB / 0.5703 GB, free: 9.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.717e-05/0.1544, allocations: 16 kB / 0.5703 GB, free: 9.324 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002029/0.1546, allocations: 190 kB / 0.5705 GB, free: 9.137 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1546, allocations: 3.938 kB / 0.5705 GB, free: 9.133 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007533/0.1554, allocations: 99.89 kB / 0.5706 GB, free: 9.035 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.001207/0.1566, allocations: 1.398 MB / 0.572 GB, free: 7.598 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005931/0.1572, allocations: 282 kB / 0.5722 GB, free: 7.324 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1572, allocations: 0 / 0.5722 GB, free: 7.324 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001823/0.1574, allocations: 83.83 kB / 0.5723 GB, free: 7.242 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009708/0.1583, allocations: 81.03 kB / 0.5724 GB, free: 7.172 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006825/0.1652, allocations: 4.939 MB / 0.5772 GB, free: 1.801 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005276/0.1657, allocations: 0.7989 MB / 0.578 GB, free: 0.9766 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001976/0.1659, allocations: 47.25 kB / 0.578 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001743/0.1661, allocations: 123.3 kB / 0.5782 GB, free: 0.8047 MB / 430.1 MB Notification: Performance of SimCode: time 1.753e-06/0.1661, allocations: 0 / 0.5782 GB, free: 0.8047 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03312/0.1992, allocations: 6.722 MB / 0.5847 GB, free: 10.21 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.839/9.038, allocations: 0 / 0.5847 GB, free: 10.21 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 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: 11.980351102072746] 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.109616381116211 9.124394079 8.982458303 Calling exit ...