Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00139/0.001391, allocations: 119.9 kB / 17.74 MB, free: 5.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 185.3 kB / 20.68 MB, free: 2.414 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 222.9 MB / 246.4 MB, free: 4.215 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 47.92 kB / 357.5 MB, free: 8.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1075, allocations: 49.43 MB / 406.9 MB, free: 7.246 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.0125/0.12, allocations: 10.43 MB / 417.4 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008337/0.1284, allocations: 3.964 MB / 421.3 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001702/0.1301, allocations: 63.81 kB / 421.4 MB, free: 8.738 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004266/0.1344, allocations: 2.2 MB / 423.6 MB, free: 6.531 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00482/0.1393, allocations: 1.852 MB / 425.4 MB, free: 4.672 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001716/0.141, allocations: 0.7448 MB / 426.2 MB, free: 3.926 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2172/0.3582, allocations: 5.169 MB / 431.4 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003661/0.3619, allocations: 2.881 MB / 434.2 MB, free: 4.887 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002787/0.3647, allocations: 1.477 MB / 435.7 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003478/0.3682, allocations: 2.036 MB / 437.7 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001027/0.3693, allocations: 299.2 kB / 438 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003033/0.3723, allocations: 1.191 MB / 439.2 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002604/0.375, allocations: 1.835 MB / 441.1 MB, free: 4.387 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003773/0.3787, allocations: 2.199 MB / 443.3 MB, free: 3.652 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01164/0.3904, allocations: 7.035 MB / 450.3 MB, free: 2.613 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.717e-06/0.3905, allocations: 1.406 kB / 450.3 MB, free: 2.613 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.895e-06/0.3905, allocations: 4 kB / 450.3 MB, free: 2.609 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003023/0.3908, allocations: 0 / 450.3 MB, free: 2.609 MB / 350.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.01939/0.4102, allocations: 5.049 MB / 455.4 MB, free: 128 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.4102, allocations: 8.906 kB / 455.4 MB, free: 128 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002254/0.4125, allocations: 0.6375 MB / 456 MB, free: 0 / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1736/0.5861, allocations: 12.3 MB / 468.3 MB, free: 9.699 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01077/0.5969, allocations: 3.935 MB / 472.2 MB, free: 6.043 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002215/0.5972, allocations: 193.5 kB / 472.4 MB, free: 5.883 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001295/0.5985, allocations: 274.9 kB / 472.7 MB, free: 5.645 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01935/0.6178, allocations: 8.734 MB / 481.4 MB, free: 12.44 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000195/0.6181, allocations: 50.17 kB / 481.5 MB, free: 12.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005185/0.6186, allocations: 130.4 kB / 481.6 MB, free: 12.31 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003373/0.622, allocations: 1.772 MB / 483.4 MB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01582/0.6378, allocations: 7.528 MB / 490.9 MB, free: 3.199 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04777/0.6856, allocations: 35.41 MB / 0.514 GB, free: 15.18 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008497/0.6942, allocations: 3.687 MB / 0.5176 GB, free: 11.36 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003004/0.6972, allocations: 2.035 MB / 0.5196 GB, free: 9.324 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005749/0.6978, allocations: 331.2 kB / 0.5199 GB, free: 8.949 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.47e-05/0.6979, allocations: 55.22 kB / 0.5199 GB, free: 8.891 MB / 430.1 MB Notification: Performance of pre-optimization done (n=160): time 5.37e-06/0.6979, allocations: 0 / 0.5199 GB, free: 8.891 MB / 430.1 MB Notification: Performance of matching and sorting (n=190): time 0.0568/0.7548, allocations: 20.25 MB / 0.5397 GB, free: 4.617 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001733/0.755, allocations: 256.1 kB / 0.54 GB, free: 4.316 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006226/0.7612, allocations: 3.955 MB / 0.5438 GB, free: 340 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004104/0.7616, allocations: 53.7 kB / 0.5439 GB, free: 280 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002445/0.7641, allocations: 2.933 MB / 0.5467 GB, free: 13.39 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001037/0.7651, allocations: 0.7512 MB / 0.5475 GB, free: 12.65 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001716/0.7669, allocations: 1.111 MB / 0.5486 GB, free: 11.54 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.767, allocations: 301.1 kB / 0.5488 GB, free: 11.24 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003335/0.7703, allocations: 2.166 MB / 0.551 GB, free: 9.066 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005892/0.7762, allocations: 5.405 MB / 0.5562 GB, free: 2.102 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0106/0.7869, allocations: 8.197 MB / 0.5642 GB, free: 8.602 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.802e-05/0.787, allocations: 36 kB / 0.5643 GB, free: 8.566 MB / 478.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01762/0.8046, allocations: 8.663 MB / 0.5727 GB, free: 15.89 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001415/0.8048, allocations: 52 kB / 0.5728 GB, free: 15.84 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000217/0.805, allocations: 112 kB / 0.5729 GB, free: 15.73 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004595/0.8096, allocations: 1.5 MB / 0.5744 GB, free: 14.22 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004167/0.8138, allocations: 1.232 MB / 0.5756 GB, free: 12.99 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0152/0.829, allocations: 9.933 MB / 0.5853 GB, free: 2.922 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004968/0.834, allocations: 323.6 kB / 0.5856 GB, free: 2.605 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001239/0.8353, allocations: 328 kB / 0.5859 GB, free: 2.285 MB / 494.1 MB 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.004792/0.8401, allocations: 1.94 MB / 0.5878 GB, free: 344 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001092/0.8412, allocations: 369.5 kB / 0.5881 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009344/0.8506, allocations: 4.154 MB / 0.5922 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-05/0.8506, allocations: 24 kB / 0.5922 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.546e-05/0.8507, allocations: 15.77 kB / 0.5922 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.75e-05/0.8507, allocations: 7.969 kB / 0.5922 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02103/0.8717, allocations: 9.279 MB / 0.6013 GB, free: 2.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-05/0.8718, allocations: 0 / 0.6013 GB, free: 2.43 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001324/0.8731, allocations: 263.6 kB / 0.6015 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004099/0.8772, allocations: 1.355 MB / 0.6029 GB, free: 0.8125 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003152/0.8776, allocations: 32 kB / 0.6029 GB, free: 0.7812 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01353/0.8911, allocations: 8.943 MB / 0.6116 GB, free: 7.703 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.183e-06/0.8912, allocations: 7.938 kB / 0.6116 GB, free: 7.695 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01242/0.9036, allocations: 7.059 MB / 0.6185 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001288/0.9049, allocations: 426.5 kB / 0.6189 GB, free: 168 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006308/0.9056, allocations: 32 kB / 0.619 GB, free: 136 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001624/0.9072, allocations: 115.8 kB / 0.6191 GB, free: 20 kB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.2146/1.122, allocations: 104.3 kB / 0.6192 GB, free: 175.4 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00027/1.122, allocations: 55.86 kB / 0.6192 GB, free: 175.4 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004672/1.127, allocations: 2.504 MB / 0.6217 GB, free: 175.2 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.8e-07/1.127, allocations: 0 / 0.6217 GB, free: 175.2 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006586/1.133, allocations: 1.011 MB / 0.6227 GB, free: 175.2 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.01267/1.146, allocations: 7.696 MB / 0.6302 GB, free: 174.2 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.009724/1.156, allocations: 5.382 MB / 0.6354 GB, free: 173.8 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/1.156, allocations: 0 / 0.6354 GB, free: 173.8 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00355/1.159, allocations: 2.086 MB / 0.6375 GB, free: 173.4 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003351/1.163, allocations: 0.489 MB / 0.638 GB, free: 173.2 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06284/1.226, allocations: 45.79 MB / 0.6827 GB, free: 135 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002913/1.229, allocations: 3.095 MB / 0.6857 GB, free: 131.9 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003507/1.232, allocations: 1.82 MB / 0.6875 GB, free: 130 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002431/1.235, allocations: 1.753 MB / 0.6892 GB, free: 128.3 MB / 0.5137 GB Notification: Performance of SimCode: time 1.112e-06/1.235, allocations: 0 / 0.6892 GB, free: 128.3 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1182/1.353, allocations: 74.63 MB / 0.7621 GB, free: 54.14 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.02/24.37, allocations: 11.94 kB / 0.7621 GB, free: 54.13 MB / 0.5137 GB " [Timeout remaining time 636] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --stepSize=0.00059976 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 26.822311168070883] Failed to read output from testmodel.py, exit status != 0: ['time', 'revolute1.phi', 'revolute1.w', 'revolute2.phi', 'revolute2.w'] 24.497674860060215 24.514671521 24.121143241 Calling exit ...