Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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.001422/0.001422, allocations: 118.6 kB / 18.5 MB, free: 4.602 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.001663/0.001663, allocations: 206.6 kB / 21.45 MB, free: 1.652 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.519/1.519, allocations: 230.5 MB / 254.8 MB, free: 15.12 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex 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. Warning: Requested package ModelicaServices 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.001968/0.001968, allocations: 68.08 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.113, allocations: 53.33 MB / 427 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.2231/0.3361, allocations: 10.45 MB / 437.5 MB, free: 5.715 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008317/0.3444, allocations: 3.983 MB / 441.4 MB, free: 3.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002767/0.3472, allocations: 80.62 kB / 441.5 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004548/0.3517, allocations: 2.231 MB / 443.7 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006327/0.358, allocations: 1.863 MB / 445.6 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002113/0.3601, allocations: 0.7444 MB / 446.4 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009054/0.3692, allocations: 5.254 MB / 451.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003962/0.3732, allocations: 2.464 MB / 454.1 MB, free: 14.66 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003374/0.3765, allocations: 1.512 MB / 455.6 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004586/0.3811, allocations: 2.205 MB / 457.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00108/0.3822, allocations: 299.9 kB / 458.1 MB, free: 12.51 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002951/0.3851, allocations: 1.207 MB / 459.3 MB, free: 12.03 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002709/0.3879, allocations: 1.894 MB / 461.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003677/0.3915, allocations: 2.186 MB / 463.4 MB, free: 9.234 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01076/0.4023, allocations: 6.996 MB / 470.4 MB, free: 4.406 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.4023, allocations: 0 / 470.4 MB, free: 4.406 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.895e-06/0.4023, allocations: 1.375 kB / 470.4 MB, free: 4.406 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002561/0.4026, allocations: 0 / 470.4 MB, free: 4.406 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01831/0.4209, allocations: 5.035 MB / 475.4 MB, free: 280 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.4209, allocations: 12.03 kB / 475.4 MB, free: 268 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001712/0.4226, allocations: 0.6244 MB / 476 MB, free: 15.63 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1653/0.588, allocations: 12.3 MB / 488.3 MB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009915/0.5979, allocations: 3.712 MB / 492.1 MB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002126/0.5981, allocations: 208.9 kB / 492.3 MB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001205/0.5993, allocations: 267.8 kB / 492.5 MB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01729/0.6166, allocations: 8.73 MB / 0.4895 GB, free: 5.684 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001816/0.6168, allocations: 47.64 kB / 0.4895 GB, free: 5.637 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004472/0.6172, allocations: 135.9 kB / 0.4897 GB, free: 5.504 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003489/0.6207, allocations: 1.766 MB / 0.4914 GB, free: 3.734 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01638/0.6371, allocations: 7.535 MB / 0.4988 GB, free: 12.2 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04946/0.6865, allocations: 35.39 MB / 0.5333 GB, free: 7.77 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008612/0.6952, allocations: 3.568 MB / 0.5368 GB, free: 4.059 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002751/0.6979, allocations: 1.893 MB / 0.5387 GB, free: 2.156 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004508/0.6984, allocations: 332.1 kB / 0.539 GB, free: 1.773 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.876e-05/0.6984, allocations: 55.5 kB / 0.539 GB, free: 1.711 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.008e-06/0.6984, allocations: 0 / 0.539 GB, free: 1.711 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.05788/0.7563, allocations: 20.2 MB / 0.5588 GB, free: 13.41 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001714/0.7565, allocations: 252.6 kB / 0.559 GB, free: 13.11 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00623/0.7627, allocations: 3.947 MB / 0.5629 GB, free: 9.184 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004817/0.7632, allocations: 49.7 kB / 0.5629 GB, free: 9.129 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00258/0.7658, allocations: 2.928 MB / 0.5658 GB, free: 6.176 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00107/0.7668, allocations: 0.7557 MB / 0.5665 GB, free: 5.414 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001741/0.7686, allocations: 1.112 MB / 0.5676 GB, free: 4.293 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.7687, allocations: 305.1 kB / 0.5679 GB, free: 3.992 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003477/0.7722, allocations: 2.166 MB / 0.57 GB, free: 1.82 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006618/0.7788, allocations: 5.403 MB / 0.5753 GB, free: 10.8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01257/0.7914, allocations: 8.188 MB / 0.5833 GB, free: 1.027 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001092/0.7915, allocations: 39.94 kB / 0.5833 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01927/0.8108, allocations: 8.646 MB / 0.5917 GB, free: 8.328 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.509e-05/0.8109, allocations: 54.5 kB / 0.5918 GB, free: 8.277 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001435/0.811, allocations: 113.7 kB / 0.5919 GB, free: 8.168 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004509/0.8155, allocations: 1.5 MB / 0.5934 GB, free: 6.664 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004195/0.8197, allocations: 1.224 MB / 0.5946 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01508/0.8348, allocations: 9.936 MB / 0.6043 GB, free: 11.36 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004527/0.8393, allocations: 323.6 kB / 0.6046 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008955/0.8402, allocations: 324.7 kB / 0.6049 GB, free: 10.73 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 515 * Number of states: 0 () * Number of discrete variables: 30 (boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (650): * Single equations (assignments): 646 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003697/0.8439, allocations: 1.951 MB / 0.6068 GB, free: 8.77 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008658/0.8448, allocations: 369.5 kB / 0.6071 GB, free: 8.406 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008803/0.8536, allocations: 4.124 MB / 0.6112 GB, free: 4.27 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.954e-05/0.8536, allocations: 23.98 kB / 0.6112 GB, free: 4.246 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.577e-05/0.8536, allocations: 11.94 kB / 0.6112 GB, free: 4.234 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-05/0.8537, allocations: 11.97 kB / 0.6112 GB, free: 4.223 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2439/1.098, allocations: 9.257 MB / 0.6203 GB, free: 161.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.516e-05/1.098, allocations: 1.156 kB / 0.6203 GB, free: 161.9 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001309/1.099, allocations: 272.2 kB / 0.6205 GB, free: 161.9 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004121/1.103, allocations: 1.346 MB / 0.6218 GB, free: 161.9 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002046/1.103, allocations: 28.72 kB / 0.6219 GB, free: 161.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0118/1.115, allocations: 8.951 MB / 0.6306 GB, free: 157.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/1.115, allocations: 2.344 kB / 0.6306 GB, free: 157.9 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01066/1.126, allocations: 7.034 MB / 0.6375 GB, free: 155.4 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009786/1.127, allocations: 425.8 kB / 0.6379 GB, free: 155.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000428/1.127, allocations: 32.62 kB / 0.6379 GB, free: 155.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001491/1.129, allocations: 118.8 kB / 0.638 GB, free: 155.2 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003716/1.129, allocations: 111.1 kB / 0.6381 GB, free: 155.2 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001392/1.129, allocations: 43.56 kB / 0.6382 GB, free: 155.2 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003537/1.133, allocations: 2.503 MB / 0.6406 GB, free: 154.4 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/1.133, allocations: 0 / 0.6406 GB, free: 154.4 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004232/1.137, allocations: 0.995 MB / 0.6416 GB, free: 154.3 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (136): * Single equations (assignments): 132 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,31,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009166/1.146, allocations: 7.693 MB / 0.6491 GB, free: 151.1 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006517/1.153, allocations: 5.164 MB / 0.6541 GB, free: 149.3 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/1.153, allocations: 0 / 0.6541 GB, free: 149.3 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002702/1.155, allocations: 1.926 MB / 0.656 GB, free: 148.4 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002683/1.158, allocations: 0.494 MB / 0.6565 GB, free: 148 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05107/1.209, allocations: 45.71 MB / 0.7011 GB, free: 98.5 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002467/1.211, allocations: 3.091 MB / 0.7042 GB, free: 95.4 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003276/1.215, allocations: 1.82 MB / 0.7059 GB, free: 93.57 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001858/1.217, allocations: 1.745 MB / 0.7076 GB, free: 91.83 MB / 0.5137 GB Notification: Performance of SimCode: time 8.92e-07/1.217, allocations: 4 kB / 0.7076 GB, free: 91.82 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1094/1.326, allocations: 75.1 MB / 0.781 GB, free: 17.28 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.65/23.98, allocations: 8.062 kB / 0.781 GB, free: 17.27 MB / 0.5137 GB " [Timeout remaining time 636] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00059976 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 26.60649119503796] Failed to read output from testmodel.py, exit status != 0: ['time', 'revolute1.phi', 'revolute1.w', 'revolute2.phi', 'revolute2.w'] 24.10904820403084 24.119594917 23.714609964 Calling exit ...