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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001388/0.001388, allocations: 104 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00133/0.00133, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.498/1.498, allocations: 227.7 MB / 247.1 MB, free: 10.27 MB / 206.1 MB 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.002549/0.002549, allocations: 71.02 kB / 307.3 MB, free: 364 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1081, allocations: 50.54 MB / 357.9 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01298/0.1211, allocations: 10.39 MB / 368.3 MB, free: 3.359 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2005/0.3217, allocations: 3.976 MB / 372.2 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00235/0.3241, allocations: 67.41 kB / 372.3 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004862/0.329, allocations: 2.19 MB / 374.5 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005622/0.3347, allocations: 1.823 MB / 376.3 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001915/0.3366, allocations: 0.7424 MB / 377.1 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008134/0.3447, allocations: 5.254 MB / 382.3 MB, free: 8.184 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004261/0.349, allocations: 2.887 MB / 385.2 MB, free: 7.027 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002922/0.352, allocations: 1.463 MB / 386.7 MB, free: 6.496 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003472/0.3555, allocations: 2.033 MB / 388.7 MB, free: 5.484 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001133/0.3567, allocations: 303 kB / 389 MB, free: 5.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002658/0.3593, allocations: 1.172 MB / 390.2 MB, free: 5.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001979/0.3613, allocations: 1.828 MB / 392 MB, free: 4.016 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004094/0.3655, allocations: 2.183 MB / 394.2 MB, free: 2.352 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008141/0.3736, allocations: 6.759 MB / 400.9 MB, free: 13.63 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.237e-06/0.3737, allocations: 0 / 400.9 MB, free: 13.63 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3737, allocations: 0 / 400.9 MB, free: 13.63 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002609/0.374, allocations: 0 / 400.9 MB, free: 13.63 MB / 318.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.0182/0.3922, allocations: 4.917 MB / 405.9 MB, free: 8.734 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.3922, allocations: 12.03 kB / 405.9 MB, free: 8.723 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001404/0.3937, allocations: 0.6217 MB / 406.5 MB, free: 8.125 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1649/0.5586, allocations: 12.28 MB / 418.8 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008947/0.5676, allocations: 3.643 MB / 422.4 MB, free: 8.168 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001838/0.5678, allocations: 190.4 kB / 422.6 MB, free: 8.008 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008984/0.5687, allocations: 278.1 kB / 422.9 MB, free: 7.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01677/0.5855, allocations: 8.722 MB / 431.6 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001572/0.5857, allocations: 51.5 kB / 431.6 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004389/0.5861, allocations: 131.6 kB / 431.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003384/0.5895, allocations: 1.768 MB / 433.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01603/0.6056, allocations: 7.53 MB / 441.1 MB, free: 5.047 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0484/0.654, allocations: 35.5 MB / 476.6 MB, free: 0.6484 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008682/0.6627, allocations: 3.684 MB / 480.3 MB, free: 12.82 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00297/0.6658, allocations: 2.033 MB / 482.3 MB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004713/0.6662, allocations: 335.6 kB / 482.6 MB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.981e-05/0.6663, allocations: 51.56 kB / 482.7 MB, free: 10.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=160): time 4.168e-06/0.6663, allocations: 0 / 482.7 MB, free: 10.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=190): time 0.05676/0.7231, allocations: 20.03 MB / 0.4909 GB, free: 6.207 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001759/0.7233, allocations: 248.7 kB / 0.4912 GB, free: 5.91 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006338/0.7297, allocations: 3.942 MB / 0.495 GB, free: 1.988 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004677/0.7301, allocations: 53.7 kB / 0.4951 GB, free: 1.93 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002647/0.7328, allocations: 2.814 MB / 0.4978 GB, free: 15.12 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001302/0.7341, allocations: 0.7211 MB / 0.4985 GB, free: 14.4 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001821/0.7359, allocations: 1.099 MB / 0.4996 GB, free: 13.29 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002025/0.7362, allocations: 309.1 kB / 0.4999 GB, free: 12.99 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003444/0.7396, allocations: 2.166 MB / 0.502 GB, free: 10.82 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006503/0.7461, allocations: 5.399 MB / 0.5073 GB, free: 3.797 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01218/0.7583, allocations: 8.194 MB / 0.5153 GB, free: 10.02 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.912e-05/0.7585, allocations: 32 kB / 0.5153 GB, free: 9.992 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01858/0.7771, allocations: 8.647 MB / 0.5237 GB, free: 1.332 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.813e-05/0.7772, allocations: 52 kB / 0.5238 GB, free: 1.281 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000143/0.7773, allocations: 112 kB / 0.5239 GB, free: 1.172 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.209/0.9864, allocations: 1.504 MB / 0.5254 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004421/0.9908, allocations: 1.222 MB / 0.5266 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01463/1.006, allocations: 9.956 MB / 0.5363 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005375/1.011, allocations: 315 kB / 0.5366 GB, free: 134.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001557/1.013, allocations: 330.6 kB / 0.5369 GB, free: 134.5 MB / 446.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.005357/1.018, allocations: 1.937 MB / 0.5388 GB, free: 133.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009532/1.019, allocations: 354.6 kB / 0.5391 GB, free: 133.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008795/1.028, allocations: 4.151 MB / 0.5432 GB, free: 132.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.024e-05/1.028, allocations: 25.5 kB / 0.5432 GB, free: 132.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-05/1.028, allocations: 10.52 kB / 0.5432 GB, free: 132.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.539e-05/1.028, allocations: 13.55 kB / 0.5432 GB, free: 132.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01496/1.043, allocations: 9.299 MB / 0.5523 GB, free: 128.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.551e-05/1.043, allocations: 1.125 kB / 0.5523 GB, free: 128.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00121/1.044, allocations: 262.5 kB / 0.5526 GB, free: 128.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003421/1.048, allocations: 1.352 MB / 0.5539 GB, free: 128.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001706/1.048, allocations: 32.5 kB / 0.5539 GB, free: 128.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01065/1.058, allocations: 8.946 MB / 0.5626 GB, free: 124.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/1.058, allocations: 3.781 kB / 0.5626 GB, free: 124.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009855/1.068, allocations: 7.042 MB / 0.5695 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001742/1.07, allocations: 406.1 kB / 0.5699 GB, free: 117 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007296/1.071, allocations: 28 kB / 0.5699 GB, free: 117 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001663/1.073, allocations: 123.8 kB / 0.5701 GB, free: 116.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004239/1.073, allocations: 107.7 kB / 0.5702 GB, free: 116.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001413/1.073, allocations: 48 kB / 0.5702 GB, free: 116.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003734/1.077, allocations: 2.507 MB / 0.5727 GB, free: 114.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/1.077, allocations: 3.969 kB / 0.5727 GB, free: 114.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005622/1.082, allocations: 0.9935 MB / 0.5736 GB, free: 113.3 MB / 446.1 MB 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.009657/1.092, allocations: 7.691 MB / 0.5811 GB, free: 105.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009112/1.101, allocations: 6.422 MB / 0.5874 GB, free: 99.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.326e-06/1.101, allocations: 4 kB / 0.5874 GB, free: 99.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002855/1.104, allocations: 2.077 MB / 0.5894 GB, free: 97.12 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002988/1.107, allocations: 0.4937 MB / 0.5899 GB, free: 96.64 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06678/1.174, allocations: 51.48 MB / 0.6402 GB, free: 38.13 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00264/1.177, allocations: 3.087 MB / 0.6432 GB, free: 35.02 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003793/1.181, allocations: 1.819 MB / 0.645 GB, free: 33.19 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001894/1.182, allocations: 1.753 MB / 0.6467 GB, free: 31.44 MB / 446.1 MB Notification: Performance of SimCode: time 8.81e-07/1.182, allocations: 0 / 0.6467 GB, free: 31.44 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3189/1.501, allocations: 77.92 MB / 0.7228 GB, free: 142.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/13.23, allocations: 1.062 kB / 0.7228 GB, free: 142.4 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 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)