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.001467/0.001467, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.001601/0.001601, allocations: 213.2 kB / 24.54 MB, free: 4.016 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.559/1.559, allocations: 230.5 MB / 258.2 MB, free: 8.043 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.2441/0.2441, allocations: 46.93 MB / 361.6 MB, free: 4.305 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.002478/0.002478, allocations: 83.86 kB / 0.497 GB, free: 7.785 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.3421, allocations: 66.08 MB / 0.5615 GB, free: 4.324 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004393/0.3465, allocations: 2.858 MB / 0.5643 GB, free: 1.457 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001613/0.3481, allocations: 0.7906 MB / 0.5651 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002822/0.3484, allocations: 11.94 kB / 0.5651 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002416/0.3486, allocations: 63.38 kB / 0.5651 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003032/0.3489, allocations: 122.8 kB / 0.5653 GB, free: 476 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003772/0.3493, allocations: 115.8 kB / 0.5654 GB, free: 360 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005179/0.3498, allocations: 433.9 kB / 0.5658 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002357/0.35, allocations: 112 kB / 0.5659 GB, free: 15.81 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003063/0.3503, allocations: 175.4 kB / 0.5661 GB, free: 15.64 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002495/0.3506, allocations: 183.2 kB / 0.5662 GB, free: 15.46 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.259e-05/0.3506, allocations: 32 kB / 0.5663 GB, free: 15.43 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000101/0.3507, allocations: 36 kB / 0.5663 GB, free: 15.39 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.989e-05/0.3508, allocations: 83.69 kB / 0.5664 GB, free: 15.31 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002068/0.351, allocations: 203.1 kB / 0.5666 GB, free: 15.11 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005456/0.3516, allocations: 442.1 kB / 0.567 GB, free: 14.68 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3516, allocations: 3.938 kB / 0.567 GB, free: 14.67 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3516, allocations: 0 / 0.567 GB, free: 14.67 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.009e-05/0.3516, allocations: 0 / 0.567 GB, free: 14.67 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.001025/0.3526, allocations: 0.5872 MB / 0.5676 GB, free: 14.05 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.3527, allocations: 15.97 kB / 0.5676 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.024e-05/0.3527, allocations: 74.72 kB / 0.5677 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002612/0.353, allocations: 64.67 kB / 0.5677 GB, free: 13.89 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003902/0.3534, allocations: 214.8 kB / 0.5679 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.032e-05/0.3534, allocations: 25.38 kB / 0.5679 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.672e-05/0.3535, allocations: 44.33 kB / 0.568 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006604/0.3542, allocations: 398.2 kB / 0.5684 GB, free: 13.17 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.024e-05/0.3542, allocations: 11.89 kB / 0.5684 GB, free: 13.16 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.433e-05/0.3542, allocations: 16 kB / 0.5684 GB, free: 13.14 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.3542, allocations: 12 kB / 0.5684 GB, free: 13.13 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004456/0.3547, allocations: 223.7 kB / 0.5686 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002434/0.3571, allocations: 1.66 MB / 0.5702 GB, free: 11.15 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004823/0.3576, allocations: 262.4 kB / 0.5705 GB, free: 10.83 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001717/0.3578, allocations: 90.02 kB / 0.5706 GB, free: 10.72 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.315e-05/0.3578, allocations: 4.234 kB / 0.5706 GB, free: 10.71 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/0.3578, allocations: 46.5 kB / 0.5706 GB, free: 10.66 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 2.314e-06/0.3578, allocations: 0 / 0.5706 GB, free: 10.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007224/0.3586, allocations: 269.1 kB / 0.5709 GB, free: 10.39 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001335/0.3587, allocations: 214 kB / 0.5711 GB, free: 10.13 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003079/0.359, allocations: 276.5 kB / 0.5713 GB, free: 9.859 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.993e-05/0.359, allocations: 33.7 kB / 0.5714 GB, free: 9.82 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000178/0.3592, allocations: 247.9 kB / 0.5716 GB, free: 9.574 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.982e-05/0.3593, allocations: 126.9 kB / 0.5717 GB, free: 9.449 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001383/0.3594, allocations: 102.3 kB / 0.5718 GB, free: 9.344 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.3596, allocations: 346.8 kB / 0.5722 GB, free: 8.996 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002193/0.3598, allocations: 101.2 kB / 0.5723 GB, free: 8.895 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005026/0.3603, allocations: 428.8 kB / 0.5727 GB, free: 8.32 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007712/0.3611, allocations: 0.5624 MB / 0.5732 GB, free: 7.598 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.047e-06/0.3611, allocations: 4 kB / 0.5732 GB, free: 7.594 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009484/0.3621, allocations: 0.5368 MB / 0.5737 GB, free: 7.051 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.596e-05/0.3621, allocations: 8 kB / 0.5738 GB, free: 7.043 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.797e-05/0.3621, allocations: 12 kB / 0.5738 GB, free: 7.031 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.206e-05/0.3621, allocations: 16 kB / 0.5738 GB, free: 7.016 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004568/0.3626, allocations: 151.7 kB / 0.5739 GB, free: 6.867 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.407e-05/0.3626, allocations: 23.92 kB / 0.5739 GB, free: 6.844 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000314/0.3629, allocations: 59.94 kB / 0.574 GB, free: 6.785 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.14e-05/0.363, allocations: 36.5 kB / 0.574 GB, free: 6.75 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.0002065/0.3632, allocations: 182.3 kB / 0.5742 GB, free: 6.562 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001662/0.3634, allocations: 35.8 kB / 0.5742 GB, free: 6.527 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.319e-05/0.3634, allocations: 33.83 kB / 0.5743 GB, free: 6.492 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.3634, allocations: 4 kB / 0.5743 GB, free: 6.488 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.228e-06/0.3634, allocations: 7.938 kB / 0.5743 GB, free: 6.48 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.3634, allocations: 0 / 0.5743 GB, free: 6.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001396/0.3648, allocations: 0.627 MB / 0.5749 GB, free: 5.797 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.3648, allocations: 4 kB / 0.5749 GB, free: 5.793 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004553/0.3653, allocations: 91.88 kB / 0.575 GB, free: 5.703 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.126e-06/0.3653, allocations: 4 kB / 0.575 GB, free: 5.699 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.649e-05/0.3653, allocations: 8 kB / 0.575 GB, free: 5.691 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.944e-06/0.3653, allocations: 7.938 kB / 0.575 GB, free: 5.684 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.3654, allocations: 4 kB / 0.575 GB, free: 5.68 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008533/0.3662, allocations: 0.8338 MB / 0.5758 GB, free: 4.812 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.959e-05/0.3663, allocations: 35.75 kB / 0.5759 GB, free: 4.777 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.581e-05/0.3663, allocations: 15.92 kB / 0.5759 GB, free: 4.762 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003398/0.3667, allocations: 8 kB / 0.5759 GB, free: 4.754 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.981e-05/0.3667, allocations: 23.95 kB / 0.5759 GB, free: 4.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.658e-05/0.3667, allocations: 11.94 kB / 0.5759 GB, free: 4.719 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001915/0.3669, allocations: 191.1 kB / 0.5761 GB, free: 4.531 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3669, allocations: 0 / 0.5761 GB, free: 4.531 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007649/0.3677, allocations: 99.89 kB / 0.5762 GB, free: 4.434 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.001157/0.3689, allocations: 1.381 MB / 0.5776 GB, free: 3.02 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006041/0.3695, allocations: 298.1 kB / 0.5778 GB, free: 2.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3695, allocations: 0 / 0.5778 GB, free: 2.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001742/0.3696, allocations: 83.83 kB / 0.5779 GB, free: 2.648 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009949/0.3706, allocations: 78.2 kB / 0.578 GB, free: 2.574 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006396/0.377, allocations: 4.948 MB / 0.5828 GB, free: 13.18 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004733/0.3775, allocations: 0.8028 MB / 0.5836 GB, free: 12.36 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001884/0.3777, allocations: 43.2 kB / 0.5836 GB, free: 12.31 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001752/0.3779, allocations: 115.4 kB / 0.5838 GB, free: 12.2 MB / 430.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3779, allocations: 4 kB / 0.5838 GB, free: 12.2 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03554/0.4134, allocations: 7.01 MB / 0.5906 GB, free: 5.281 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.077/9.49, allocations: 0 / 0.5906 GB, free: 5.281 MB / 430.1 MB " [Timeout remaining time 650] (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.616030127741396] 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.583336913958192 9.612389579 9.255311272 Calling exit ...