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.001522/0.001522, allocations: 108.6 kB / 19.8 MB, free: 2.5 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.001759/0.001759, allocations: 214 kB / 23 MB, free: 5.582 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.459/1.459, allocations: 230.2 MB / 256.2 MB, free: 8.527 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.2412/0.2412, allocations: 46.91 MB / 359.4 MB, free: 4.902 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.00249/0.00249, allocations: 87.84 kB / 0.4941 GB, free: 9.008 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3383/0.3408, allocations: 65.98 MB / 0.5586 GB, free: 5.172 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004265/0.345, allocations: 2.866 MB / 0.5614 GB, free: 2.293 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001435/0.3465, allocations: 0.7867 MB / 0.5621 GB, free: 1.5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001891/0.3466, allocations: 7.938 kB / 0.5621 GB, free: 1.492 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002044/0.3468, allocations: 63.38 kB / 0.5622 GB, free: 1.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002574/0.3471, allocations: 126.8 kB / 0.5623 GB, free: 1.305 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000428/0.3475, allocations: 107.8 kB / 0.5624 GB, free: 1.199 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006022/0.3481, allocations: 438 kB / 0.5628 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002601/0.3484, allocations: 111.4 kB / 0.563 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003872/0.3488, allocations: 175.4 kB / 0.5631 GB, free: 496 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002932/0.3491, allocations: 179.1 kB / 0.5633 GB, free: 316 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.834e-05/0.3491, allocations: 32 kB / 0.5633 GB, free: 284 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.562e-05/0.3492, allocations: 40 kB / 0.5634 GB, free: 244 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.011e-05/0.3493, allocations: 75.69 kB / 0.5634 GB, free: 168 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002219/0.3495, allocations: 207.1 kB / 0.5636 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005601/0.3501, allocations: 438 kB / 0.564 GB, free: 15.53 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3501, allocations: 4 kB / 0.564 GB, free: 15.53 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.3501, allocations: 0 / 0.564 GB, free: 15.53 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.977e-06/0.3501, allocations: 0 / 0.564 GB, free: 15.53 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.001021/0.3511, allocations: 0.6586 MB / 0.5647 GB, free: 14.82 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.3512, allocations: 12.03 kB / 0.5647 GB, free: 14.81 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.216e-05/0.3513, allocations: 74.72 kB / 0.5648 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002556/0.3515, allocations: 64.67 kB / 0.5648 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004134/0.3519, allocations: 284.6 kB / 0.5651 GB, free: 14.35 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.495e-05/0.352, allocations: 29.38 kB / 0.5651 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.735e-05/0.352, allocations: 44.33 kB / 0.5652 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006619/0.3527, allocations: 398.3 kB / 0.5656 GB, free: 13.85 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.523e-05/0.3527, allocations: 3.953 kB / 0.5656 GB, free: 13.85 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.335e-05/0.3527, allocations: 16 kB / 0.5656 GB, free: 13.83 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.456e-05/0.3528, allocations: 12 kB / 0.5656 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004548/0.3532, allocations: 219.7 kB / 0.5658 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002419/0.3556, allocations: 1.715 MB / 0.5675 GB, free: 11.79 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004641/0.3561, allocations: 262.3 kB / 0.5677 GB, free: 11.46 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001643/0.3563, allocations: 94.08 kB / 0.5678 GB, free: 11.35 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.53e-05/0.3563, allocations: 3.938 kB / 0.5678 GB, free: 11.35 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.639e-05/0.3563, allocations: 46.5 kB / 0.5679 GB, free: 11.29 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 2.004e-06/0.3563, allocations: 0 / 0.5679 GB, free: 11.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007102/0.357, allocations: 265.1 kB / 0.5681 GB, free: 11.03 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001366/0.3572, allocations: 213.6 kB / 0.5683 GB, free: 10.77 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003033/0.3575, allocations: 279.6 kB / 0.5686 GB, free: 10.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.954e-05/0.3575, allocations: 33.7 kB / 0.5686 GB, free: 10.44 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001746/0.3577, allocations: 248.1 kB / 0.5689 GB, free: 10.2 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.3578, allocations: 123 kB / 0.569 GB, free: 10.07 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/0.3579, allocations: 94.3 kB / 0.5691 GB, free: 9.977 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.3581, allocations: 346.8 kB / 0.5694 GB, free: 9.629 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002077/0.3583, allocations: 101.2 kB / 0.5695 GB, free: 9.531 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005095/0.3588, allocations: 428.8 kB / 0.5699 GB, free: 8.953 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007617/0.3596, allocations: 0.5706 MB / 0.5705 GB, free: 8.223 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.3596, allocations: 3.938 kB / 0.5705 GB, free: 8.219 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009235/0.3605, allocations: 0.5329 MB / 0.571 GB, free: 7.68 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.593e-05/0.3605, allocations: 12 kB / 0.571 GB, free: 7.668 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.803e-05/0.3605, allocations: 12 kB / 0.571 GB, free: 7.656 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.578e-05/0.3606, allocations: 16 kB / 0.571 GB, free: 7.641 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004528/0.361, allocations: 147.7 kB / 0.5712 GB, free: 7.496 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.338e-05/0.361, allocations: 23.92 kB / 0.5712 GB, free: 7.473 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003016/0.3613, allocations: 63.56 kB / 0.5712 GB, free: 7.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.211e-05/0.3614, allocations: 28 kB / 0.5713 GB, free: 7.383 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.0002645/0.3617, allocations: 189.5 kB / 0.5714 GB, free: 7.188 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001563/0.3618, allocations: 31.81 kB / 0.5715 GB, free: 7.156 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.689e-05/0.3619, allocations: 37.81 kB / 0.5715 GB, free: 7.121 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.3619, allocations: 8 kB / 0.5715 GB, free: 7.113 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.3619, allocations: 0.5 kB / 0.5715 GB, free: 7.113 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.3619, allocations: 4 kB / 0.5715 GB, free: 7.109 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001366/0.3633, allocations: 0.6592 MB / 0.5722 GB, free: 6.387 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.3633, allocations: 0 / 0.5722 GB, free: 6.387 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000437/0.3637, allocations: 87.88 kB / 0.5723 GB, free: 6.301 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.082e-06/0.3637, allocations: 4 kB / 0.5723 GB, free: 6.297 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.9e-05/0.3638, allocations: 16 kB / 0.5723 GB, free: 6.281 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.182e-06/0.3638, allocations: 3.938 kB / 0.5723 GB, free: 6.277 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.3638, allocations: 7.938 kB / 0.5723 GB, free: 6.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008535/0.3646, allocations: 0.8282 MB / 0.5731 GB, free: 5.41 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.969e-05/0.3647, allocations: 112.8 kB / 0.5732 GB, free: 5.281 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.61e-05/0.3648, allocations: 11.94 kB / 0.5732 GB, free: 5.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003319/0.3651, allocations: 8 kB / 0.5732 GB, free: 5.262 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.661e-05/0.3652, allocations: 27.91 kB / 0.5732 GB, free: 5.234 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.325e-05/0.3652, allocations: 8 kB / 0.5733 GB, free: 5.227 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002035/0.3654, allocations: 193.9 kB / 0.5734 GB, free: 5.035 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3654, allocations: 0 / 0.5734 GB, free: 5.035 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007517/0.3662, allocations: 99.89 kB / 0.5735 GB, free: 4.938 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.00125/0.3674, allocations: 1.383 MB / 0.5749 GB, free: 3.516 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006472/0.3681, allocations: 278.7 kB / 0.5751 GB, free: 3.246 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3681, allocations: 384 / 0.5751 GB, free: 3.246 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001707/0.3682, allocations: 91.83 kB / 0.5752 GB, free: 3.156 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00103/0.3693, allocations: 77.02 kB / 0.5753 GB, free: 3.082 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006897/0.3762, allocations: 4.958 MB / 0.5802 GB, free: 13.69 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005683/0.3767, allocations: 0.7912 MB / 0.5809 GB, free: 12.87 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002062/0.3769, 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.0001832/0.3771, allocations: 119.4 kB / 0.5811 GB, free: 12.7 MB / 430.1 MB Notification: Performance of SimCode: time 1.192e-06/0.3771, allocations: 0 / 0.5811 GB, free: 12.7 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03214/0.4093, allocations: 6.674 MB / 0.5876 GB, free: 6.125 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.586/8.995, allocations: 6.562 kB / 0.5876 GB, free: 6.121 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 & /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 --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.822485607001] 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.069308659003582 9.084402042 8.731222688 Calling exit ...