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.001381/0.001381, allocations: 112.7 kB / 19.81 MB, free: 2.508 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.001615/0.001615, allocations: 217.3 kB / 23 MB, free: 5.621 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.456/1.456, allocations: 230.2 MB / 256.2 MB, free: 8.562 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.2333/0.2333, allocations: 46.89 MB / 359.4 MB, free: 4.926 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.002522/0.002522, allocations: 83.84 kB / 0.4941 GB, free: 9.035 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3334/0.3359, allocations: 66 MB / 0.5586 GB, free: 5.168 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004199/0.3401, allocations: 2.867 MB / 0.5614 GB, free: 2.285 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001465/0.3416, allocations: 0.7829 MB / 0.5621 GB, free: 1.496 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002463/0.3418, allocations: 11.88 kB / 0.5621 GB, free: 1.484 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002125/0.342, allocations: 63.38 kB / 0.5622 GB, free: 1.422 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002968/0.3423, allocations: 122.9 kB / 0.5623 GB, free: 1.301 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003743/0.3427, allocations: 111.8 kB / 0.5624 GB, free: 1.191 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005099/0.3432, allocations: 438 kB / 0.5628 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002414/0.3434, allocations: 107.4 kB / 0.563 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003054/0.3437, allocations: 175.4 kB / 0.5631 GB, free: 492 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002416/0.344, allocations: 175.2 kB / 0.5633 GB, free: 316 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.021e-05/0.344, allocations: 32 kB / 0.5633 GB, free: 284 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.697e-05/0.3441, allocations: 43.94 kB / 0.5634 GB, free: 240 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.218e-05/0.3442, allocations: 75.7 kB / 0.5634 GB, free: 164 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002067/0.3444, allocations: 203.1 kB / 0.5636 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005419/0.345, allocations: 442 kB / 0.564 GB, free: 15.53 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.345, allocations: 4 kB / 0.564 GB, free: 15.52 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.345, allocations: 0 / 0.564 GB, free: 15.52 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.345, allocations: 0 / 0.564 GB, free: 15.52 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.001037/0.346, allocations: 0.6547 MB / 0.5647 GB, free: 14.82 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.3461, allocations: 12.03 kB / 0.5647 GB, free: 14.81 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.94e-05/0.3461, allocations: 78.7 kB / 0.5648 GB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000258/0.3464, allocations: 60.69 kB / 0.5648 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003895/0.3468, allocations: 284.6 kB / 0.5651 GB, free: 14.35 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.119e-05/0.3468, allocations: 29.38 kB / 0.5651 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.882e-05/0.3469, allocations: 44.33 kB / 0.5652 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006463/0.3475, allocations: 394.3 kB / 0.5656 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.996e-05/0.3476, allocations: 19.88 kB / 0.5656 GB, free: 13.84 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.278e-05/0.3476, allocations: 16 kB / 0.5656 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.282e-05/0.3476, allocations: 12 kB / 0.5656 GB, free: 13.81 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004317/0.348, allocations: 215.7 kB / 0.5658 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002361/0.3504, allocations: 1.719 MB / 0.5675 GB, free: 11.77 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004548/0.3509, allocations: 254.3 kB / 0.5677 GB, free: 11.46 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001808/0.351, allocations: 94.08 kB / 0.5678 GB, free: 11.35 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.3511, allocations: 3.984 kB / 0.5678 GB, free: 11.34 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.332e-05/0.3511, allocations: 46.5 kB / 0.5679 GB, free: 11.29 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 2.154e-06/0.3511, allocations: 0 / 0.5679 GB, free: 11.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006895/0.3518, allocations: 261.2 kB / 0.5681 GB, free: 11.03 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001313/0.3519, allocations: 217.6 kB / 0.5683 GB, free: 10.77 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003005/0.3522, allocations: 283.6 kB / 0.5686 GB, free: 10.47 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.453e-05/0.3522, allocations: 33.7 kB / 0.5686 GB, free: 10.43 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001684/0.3524, allocations: 240.1 kB / 0.5688 GB, free: 10.2 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.3525, allocations: 123 kB / 0.569 GB, free: 10.07 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001387/0.3526, allocations: 98.3 kB / 0.5691 GB, free: 9.973 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.3528, allocations: 346.7 kB / 0.5694 GB, free: 9.625 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002093/0.353, allocations: 97.27 kB / 0.5695 GB, free: 9.531 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004581/0.3535, allocations: 432.8 kB / 0.5699 GB, free: 8.949 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007446/0.3542, allocations: 0.5745 MB / 0.5705 GB, free: 8.215 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.3542, allocations: 4 kB / 0.5705 GB, free: 8.211 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009039/0.3551, allocations: 0.525 MB / 0.571 GB, free: 7.68 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/0.3552, allocations: 16.06 kB / 0.571 GB, free: 7.664 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.639e-05/0.3552, allocations: 12 kB / 0.571 GB, free: 7.652 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.035e-05/0.3552, allocations: 16 kB / 0.571 GB, free: 7.637 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004393/0.3556, allocations: 143.8 kB / 0.5712 GB, free: 7.496 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.412e-05/0.3557, allocations: 23.92 kB / 0.5712 GB, free: 7.473 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003091/0.356, allocations: 71.55 kB / 0.5712 GB, free: 7.402 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.668e-05/0.356, allocations: 32 kB / 0.5713 GB, free: 7.371 MB / 414.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.0001985/0.3562, allocations: 181.5 kB / 0.5714 GB, free: 7.184 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001549/0.3564, allocations: 31.81 kB / 0.5715 GB, free: 7.152 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.19e-05/0.3564, allocations: 33.83 kB / 0.5715 GB, free: 7.121 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.3564, allocations: 8 kB / 0.5715 GB, free: 7.113 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.3565, allocations: 0.5 kB / 0.5715 GB, free: 7.113 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.3565, allocations: 7.984 kB / 0.5715 GB, free: 7.105 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001321/0.3578, allocations: 0.6592 MB / 0.5722 GB, free: 6.383 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/0.3578, allocations: 0 / 0.5722 GB, free: 6.383 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004423/0.3582, allocations: 91.89 kB / 0.5723 GB, free: 6.293 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.3582, allocations: 0 / 0.5723 GB, free: 6.293 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.779e-05/0.3583, allocations: 15.98 kB / 0.5723 GB, free: 6.277 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.414e-06/0.3583, allocations: 7.938 kB / 0.5723 GB, free: 6.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.3583, allocations: 3.938 kB / 0.5723 GB, free: 6.266 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008548/0.3591, allocations: 0.8283 MB / 0.5731 GB, free: 5.406 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.747e-05/0.3592, allocations: 116.9 kB / 0.5732 GB, free: 5.273 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.392e-05/0.3593, allocations: 15.92 kB / 0.5732 GB, free: 5.258 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003293/0.3596, allocations: 7.984 kB / 0.5732 GB, free: 5.25 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.446e-05/0.3597, allocations: 27.91 kB / 0.5733 GB, free: 5.223 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.731e-05/0.3597, allocations: 12 kB / 0.5733 GB, free: 5.211 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001955/0.3599, allocations: 186 kB / 0.5734 GB, free: 5.027 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3599, allocations: 0 / 0.5734 GB, free: 5.027 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000744/0.3606, allocations: 103.9 kB / 0.5735 GB, free: 4.926 MB / 414.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.001162/0.3618, allocations: 1.379 MB / 0.5749 GB, free: 3.508 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005846/0.3624, allocations: 278.3 kB / 0.5752 GB, free: 3.238 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.3624, allocations: 4.312 kB / 0.5752 GB, free: 3.234 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000178/0.3625, allocations: 91.7 kB / 0.5752 GB, free: 3.145 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009543/0.3635, allocations: 71.58 kB / 0.5753 GB, free: 3.078 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00634/0.3698, allocations: 4.951 MB / 0.5801 GB, free: 13.7 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004664/0.3703, allocations: 0.7951 MB / 0.5809 GB, free: 12.87 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001894/0.3705, allocations: 47.25 kB / 0.581 GB, free: 12.82 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001665/0.3707, allocations: 115.4 kB / 0.5811 GB, free: 12.71 MB / 430.1 MB Notification: Performance of SimCode: time 8.31e-07/0.3707, allocations: 0 / 0.5811 GB, free: 12.71 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03355/0.4042, allocations: 6.683 MB / 0.5876 GB, free: 6.117 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.814/9.218, allocations: 4.062 kB / 0.5876 GB, free: 6.113 MB / 430.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.000581162021263] 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.294725924992235 9.322700561 8.972513036 Calling exit ...