Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3.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.002338/0.002338, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.002819/0.002819, allocations: 212.6 kB / 24.54 MB, free: 4.02 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.485/1.485, allocations: 230.5 MB / 258.2 MB, free: 8.023 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.2372/0.2372, allocations: 46.93 MB / 361.6 MB, free: 4.195 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.Directions3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions3",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.002365/0.002365, allocations: 83.86 kB / 0.497 GB, free: 7.781 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3491/0.3515, allocations: 66.08 MB / 0.5615 GB, free: 4.301 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.003175/0.3546, allocations: 1.673 MB / 0.5631 GB, free: 2.617 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003099/0.3549, allocations: 111.6 kB / 0.5632 GB, free: 2.508 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.384e-05/0.355, allocations: 11.88 kB / 0.5632 GB, free: 2.496 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.375e-05/0.3551, allocations: 11.86 kB / 0.5633 GB, free: 2.484 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001175/0.3552, allocations: 35.7 kB / 0.5633 GB, free: 2.449 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000134/0.3553, allocations: 27.91 kB / 0.5633 GB, free: 2.422 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001756/0.3555, allocations: 131.5 kB / 0.5634 GB, free: 2.293 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001413/0.3556, allocations: 21.3 kB / 0.5635 GB, free: 2.27 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.652e-05/0.3557, allocations: 51.8 kB / 0.5635 GB, free: 2.219 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.194e-05/0.3558, allocations: 51.77 kB / 0.5636 GB, free: 2.168 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.216e-05/0.3558, allocations: 16 kB / 0.5636 GB, free: 2.152 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.217e-05/0.3559, allocations: 8 kB / 0.5636 GB, free: 2.145 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.972e-05/0.3559, allocations: 23.92 kB / 0.5636 GB, free: 2.121 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.597e-05/0.356, allocations: 55.73 kB / 0.5637 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000192/0.3562, allocations: 129.5 kB / 0.5638 GB, free: 1.941 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.3562, allocations: 0 / 0.5638 GB, free: 1.941 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3562, allocations: 0 / 0.5638 GB, free: 1.941 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.3562, allocations: 0 / 0.5638 GB, free: 1.941 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005388/0.3567, allocations: 334 kB / 0.5641 GB, free: 1.578 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.3568, allocations: 16.03 kB / 0.5641 GB, free: 1.562 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.509e-05/0.3568, allocations: 50.73 kB / 0.5642 GB, free: 1.504 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.423e-05/0.3569, allocations: 8.891 kB / 0.5642 GB, free: 1.496 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001842/0.357, allocations: 130.4 kB / 0.5643 GB, free: 1.344 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.968e-05/0.3571, allocations: 12.61 kB / 0.5643 GB, free: 1.332 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.94e-05/0.3571, allocations: 20.3 kB / 0.5643 GB, free: 1.312 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002387/0.3573, allocations: 121.6 kB / 0.5644 GB, free: 1.184 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/0.3574, allocations: 7.891 kB / 0.5645 GB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.891e-05/0.3574, allocations: 8 kB / 0.5645 GB, free: 1.168 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/0.3574, allocations: 7.938 kB / 0.5645 GB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001166/0.3575, allocations: 55.97 kB / 0.5645 GB, free: 1.105 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007885/0.3583, allocations: 491.6 kB / 0.565 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000167/0.3585, allocations: 89.16 kB / 0.5651 GB, free: 484 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.641e-05/0.3585, allocations: 29.73 kB / 0.5651 GB, free: 448 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.388e-06/0.3585, allocations: 0 / 0.5651 GB, free: 448 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.836e-05/0.3585, allocations: 34.56 kB / 0.5651 GB, free: 404 kB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.002e-06/0.3585, allocations: 0 / 0.5651 GB, free: 404 kB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005478/0.3591, allocations: 147.2 kB / 0.5653 GB, free: 244 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.513e-05/0.3591, allocations: 81.05 kB / 0.5654 GB, free: 144 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001204/0.3593, allocations: 125.8 kB / 0.5655 GB, free: 8 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.103e-05/0.3593, allocations: 25.7 kB / 0.5655 GB, free: 15.98 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.142e-05/0.3594, allocations: 123.8 kB / 0.5656 GB, free: 15.85 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.998e-05/0.3594, allocations: 31.73 kB / 0.5656 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.664e-05/0.3595, allocations: 29.72 kB / 0.5657 GB, free: 15.79 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.3596, allocations: 326.8 kB / 0.566 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.493e-05/0.3597, allocations: 27.92 kB / 0.566 GB, free: 15.43 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.015e-05/0.3598, allocations: 83.53 kB / 0.5661 GB, free: 15.32 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001589/0.3599, allocations: 128.5 kB / 0.5662 GB, free: 15.16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3599, allocations: 0 / 0.5662 GB, free: 15.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002956/0.3602, allocations: 159.1 kB / 0.5664 GB, free: 15 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.3602, allocations: 10.03 kB / 0.5664 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.3602, allocations: 3.938 kB / 0.5664 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001778/0.3604, allocations: 49.89 kB / 0.5664 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.622e-05/0.3605, allocations: 19.98 kB / 0.5664 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002221/0.3627, allocations: 2.535 MB / 0.5689 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.887e-05/0.3628, allocations: 19.91 kB / 0.5689 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.3628, allocations: 8 kB / 0.569 GB, free: 12.12 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001183/0.3629, allocations: 122.7 kB / 0.5691 GB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.402e-05/0.363, allocations: 12.03 kB / 0.5691 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.036e-05/0.363, allocations: 12 kB / 0.5691 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.363, allocations: 0 / 0.5691 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.363, allocations: 0 / 0.5691 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.363, allocations: 7.938 kB / 0.5691 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002749/0.3633, allocations: 176.6 kB / 0.5693 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.3633, allocations: 0 / 0.5693 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.915e-05/0.3634, allocations: 15.98 kB / 0.5693 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001099/0.3635, allocations: 37.64 kB / 0.5693 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.448e-06/0.3635, allocations: 4 kB / 0.5693 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002002/0.3655, allocations: 2.528 MB / 0.5718 GB, free: 8.922 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.3655, allocations: 0 / 0.5718 GB, free: 8.922 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003493/0.3659, allocations: 304.4 kB / 0.5721 GB, free: 8.602 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.784e-05/0.3659, allocations: 8.203 kB / 0.5721 GB, free: 8.594 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.417e-05/0.3659, allocations: 4 kB / 0.5721 GB, free: 8.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.034e-05/0.366, allocations: 4.062 kB / 0.5721 GB, free: 8.586 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.113e-05/0.366, allocations: 12.03 kB / 0.5721 GB, free: 8.574 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.009e-06/0.366, allocations: 0 / 0.5721 GB, free: 8.574 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.425e-05/0.3661, allocations: 95.27 kB / 0.5722 GB, free: 8.48 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3661, allocations: 0 / 0.5722 GB, free: 8.48 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003682/0.3665, allocations: 39.89 kB / 0.5722 GB, free: 8.441 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.w,J2.phi,J3.w,J4.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 (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006773/0.3671, allocations: 0.8313 MB / 0.573 GB, free: 7.578 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005003/0.3676, allocations: 305.6 kB / 0.5733 GB, free: 7.254 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3677, allocations: 0 / 0.5733 GB, free: 7.254 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002976/0.3679, allocations: 261.6 kB / 0.5736 GB, free: 6.973 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000527/0.3685, allocations: 36.17 kB / 0.5736 GB, free: 6.938 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002431/0.3709, allocations: 1.981 MB / 0.5756 GB, free: 4.805 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003871/0.3713, allocations: 0.7006 MB / 0.5762 GB, free: 4.078 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.21e-05/0.3713, allocations: 12.97 kB / 0.5763 GB, free: 4.059 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.546e-05/0.3714, allocations: 27.44 kB / 0.5763 GB, free: 4.031 MB / 414.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3714, allocations: 0 / 0.5763 GB, free: 4.031 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03387/0.4053, allocations: 3.089 MB / 0.5793 GB, free: 1.039 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.38/10.78, allocations: 8.047 kB / 0.5793 GB, free: 1.031 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions3_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_Directions3.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.750958878081292] Failed to read output from testmodel.py, exit status != 0: ['time', 'J1.phi', 'J1.w', 'J3.phi', 'J3.w'] 10.866098626051098 10.885086269 10.525555193 Calling exit ...