Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo) 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(PlanarMechanics.Examples.DoublePendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.DoublePendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008295/0.0008292, allocations: 90.75 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008918/0.000892, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 223.2 MB / 240 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1944/0.1944, allocations: 9.106 MB / 300.2 MB, free: 2.777 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003072/0.0003073, allocations: 8 kB / 363.2 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1019, allocations: 52.44 MB / 415.6 MB, free: 8.453 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.2202/0.3221, allocations: 27.95 MB / 443.6 MB, free: 28.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01502/0.3372, allocations: 6.486 MB / 450.1 MB, free: 23.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00534/0.3426, allocations: 112.8 kB / 450.2 MB, free: 23.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003584/0.3462, allocations: 1.381 MB / 451.6 MB, free: 23.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01232/0.3585, allocations: 4.882 MB / 456.4 MB, free: 21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0014/0.3599, allocations: 129.5 kB / 456.6 MB, free: 20.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004044/0.364, allocations: 2.81 MB / 459.4 MB, free: 19.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001696/0.3657, allocations: 0.8023 MB / 460.2 MB, free: 19.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001629/0.3674, allocations: 0.8106 MB / 461 MB, free: 19.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002067/0.3694, allocations: 1.293 MB / 462.3 MB, free: 18.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007287/0.3702, allocations: 132.2 kB / 462.4 MB, free: 18.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001592/0.3718, allocations: 0.6643 MB / 463.1 MB, free: 18.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00136/0.3732, allocations: 1.113 MB / 464.2 MB, free: 18.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006594/0.3738, allocations: 0.6466 MB / 464.8 MB, free: 17.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00327/0.3771, allocations: 3.691 MB / 468.5 MB, free: 17.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3771, allocations: 0 / 468.5 MB, free: 17.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.3771, allocations: 0 / 468.5 MB, free: 17.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.752e-05/0.3772, allocations: 0 / 468.5 MB, free: 17.01 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: 1179 * Number of variables: 1179 Notification: Performance of Generate backend data structure: time 0.008213/0.3854, allocations: 3.737 MB / 472.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.3855, allocations: 9.5 kB / 472.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007649/0.3863, allocations: 0.5485 MB / 472.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006731/0.393, allocations: 1.807 MB / 474.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002221/0.3952, allocations: 1.337 MB / 476 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001121/0.3954, allocations: 153.6 kB / 476.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003737/0.3957, allocations: 200.9 kB / 476.3 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01311/0.4089, allocations: 8.237 MB / 484.5 MB, free: 9.934 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.08e-05/0.409, allocations: 22.09 kB / 484.6 MB, free: 9.922 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002763/0.4092, allocations: 93.05 kB / 484.7 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003023/0.4123, allocations: 1.905 MB / 486.6 MB, free: 9.086 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01318/0.4255, allocations: 7.391 MB / 494 MB, free: 5.191 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03115/0.4566, allocations: 25.61 MB / 0.5074 GB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005619/0.4623, allocations: 2.613 MB / 0.5099 GB, free: 8.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001263/0.4636, allocations: 0.9039 MB / 0.5108 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005799/0.4694, allocations: 5.095 MB / 0.5158 GB, free: 1.824 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.846e-05/0.4695, allocations: 47.55 kB / 0.5158 GB, free: 1.766 MB / 382.1 MB Notification: Performance of pre-optimization done (n=148): time 4.418e-06/0.4695, allocations: 3.984 kB / 0.5159 GB, free: 1.762 MB / 382.1 MB Notification: Performance of matching and sorting (n=176): time 0.01152/0.481, allocations: 5.445 MB / 0.5212 GB, free: 12.33 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.189e-05/0.4811, allocations: 68.72 kB / 0.5212 GB, free: 12.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003244/0.4843, allocations: 2.607 MB / 0.5238 GB, free: 9.609 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.114e-05/0.4844, allocations: 49.69 kB / 0.5238 GB, free: 9.555 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001236/0.4857, allocations: 2.097 MB / 0.5259 GB, free: 7.426 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004588/0.4861, allocations: 0.6398 MB / 0.5265 GB, free: 6.777 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001591/0.4863, allocations: 87.92 kB / 0.5266 GB, free: 6.691 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002647/0.4866, allocations: 487.2 kB / 0.527 GB, free: 6.207 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002082/0.4886, allocations: 1.355 MB / 0.5284 GB, free: 4.844 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00339/0.492, allocations: 3.61 MB / 0.5319 GB, free: 108 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002947/0.495, allocations: 2.221 MB / 0.5341 GB, free: 13.88 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-05/0.4951, allocations: 31.95 kB / 0.5341 GB, free: 13.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.007686/0.5027, allocations: 5.182 MB / 0.5392 GB, free: 8.668 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.409e-05/0.5028, allocations: 38.03 kB / 0.5392 GB, free: 8.633 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.728e-05/0.5029, allocations: 80 kB / 0.5393 GB, free: 8.555 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008536/0.5038, allocations: 377.8 kB / 0.5396 GB, free: 8.184 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002462/0.5062, allocations: 0.9085 MB / 0.5405 GB, free: 7.273 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004602/0.5108, allocations: 3.843 MB / 0.5443 GB, free: 3.293 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002437/0.5133, allocations: 199.9 kB / 0.5445 GB, free: 3.098 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003051/0.5136, allocations: 244 kB / 0.5447 GB, free: 2.859 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 358 * Number of states: 0 () * Number of discrete variables: 18 (revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (498): * Single equations (assignments): 493 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002412/0.516, allocations: 1.607 MB / 0.5463 GB, free: 1.238 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002988/0.5163, allocations: 229 kB / 0.5465 GB, free: 1.012 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003706/0.52, allocations: 2.331 MB / 0.5488 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.396e-05/0.5202, allocations: 27.98 kB / 0.5488 GB, free: 14.63 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.5202, allocations: 4 kB / 0.5488 GB, free: 14.63 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.544e-05/0.5202, allocations: 7.969 kB / 0.5488 GB, free: 14.62 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009903/0.5301, allocations: 6.492 MB / 0.5551 GB, free: 7.992 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.044e-05/0.5302, allocations: 4 kB / 0.5551 GB, free: 7.988 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008647/0.531, allocations: 239.6 kB / 0.5554 GB, free: 7.754 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006405/0.5317, allocations: 271.2 kB / 0.5556 GB, free: 7.488 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.746e-05/0.5318, allocations: 32 kB / 0.5557 GB, free: 7.457 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003592/0.5354, allocations: 3.143 MB / 0.5587 GB, free: 4.18 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/0.5354, allocations: 11.92 kB / 0.5587 GB, free: 4.168 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004956/0.5404, allocations: 3.578 MB / 0.5622 GB, free: 0.5195 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007349/0.5411, allocations: 318.1 kB / 0.5625 GB, free: 192 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002364/0.5414, allocations: 35.98 kB / 0.5626 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007236/0.5421, allocations: 87.83 kB / 0.5627 GB, free: 68 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001774/0.5423, allocations: 97.14 kB / 0.5627 GB, free: 15.97 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.503e-05/0.5424, allocations: 51.98 kB / 0.5628 GB, free: 15.92 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00261/0.545, allocations: 1.665 MB / 0.5644 GB, free: 14.24 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.545, allocations: 0 / 0.5644 GB, free: 14.24 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00314/0.5482, allocations: 0.7226 MB / 0.5651 GB, free: 13.52 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.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 (132): * Single equations (assignments): 127 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005159/0.5533, allocations: 4.241 MB / 0.5693 GB, free: 9.199 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005423/0.5588, allocations: 3.391 MB / 0.5726 GB, free: 5.812 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/0.5588, allocations: 0 / 0.5726 GB, free: 5.812 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001581/0.5604, allocations: 1.165 MB / 0.5737 GB, free: 4.637 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001944/0.5623, allocations: 384.2 kB / 0.5741 GB, free: 4.266 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2359/0.7983, allocations: 21.78 MB / 0.5954 GB, free: 95.82 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002515/0.8008, allocations: 2.625 MB / 0.5979 GB, free: 95.05 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003149/0.804, allocations: 1.271 MB / 0.5992 GB, free: 94.96 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001609/0.8056, allocations: 1.346 MB / 0.6005 GB, free: 94.96 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/0.8056, allocations: 0 / 0.6005 GB, free: 94.96 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07511/0.8807, allocations: 54.31 MB / 0.6535 GB, free: 63.09 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001424/0.8809, allocations: 192.8 kB / 0.6537 GB, free: 62.85 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.641/3.522, allocations: 7.938 kB / 0.6537 GB, free: 62.84 MB / 446.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_DoublePendulum_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_DoublePendulum.fmu > PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe 2>&1) Environment - environmentSimulation: