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.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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.001637/0.001637, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001848/0.001848, allocations: 195.2 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.519/1.519, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2117/0.2117, allocations: 9.104 MB / 299.5 MB, free: 1.77 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 59.91 kB / 362 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1061, allocations: 51.44 MB / 413.5 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.009589/0.1158, allocations: 8.449 MB / 421.9 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.219/0.3348, allocations: 2.596 MB / 424.5 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001399/0.3362, allocations: 34.12 kB / 424.6 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001082/0.3374, allocations: 364.9 kB / 424.9 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00378/0.3412, allocations: 1.416 MB / 426.3 MB, free: 35.76 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006072/0.3418, allocations: 132 kB / 426.5 MB, free: 35.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003036/0.3449, allocations: 2.537 MB / 429 MB, free: 35.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001599/0.3465, allocations: 0.9116 MB / 429.9 MB, free: 35.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001535/0.348, allocations: 0.8997 MB / 430.8 MB, free: 35.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001898/0.3499, allocations: 1.316 MB / 432.1 MB, free: 34.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000784/0.3508, allocations: 235.4 kB / 432.3 MB, free: 34.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001998/0.3528, allocations: 0.8232 MB / 433.2 MB, free: 34.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00135/0.3541, allocations: 1.24 MB / 434.4 MB, free: 34.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001631/0.3558, allocations: 1.581 MB / 436 MB, free: 33.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003971/0.3598, allocations: 4.791 MB / 440.8 MB, free: 31.42 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3598, allocations: 0 / 440.8 MB, free: 31.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3598, allocations: 3.625 kB / 440.8 MB, free: 31.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.199e-05/0.3599, allocations: 0 / 440.8 MB, free: 31.42 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.01044/0.3703, allocations: 4.345 MB / 445.1 MB, free: 29.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.959e-05/0.3704, allocations: 9.656 kB / 445.1 MB, free: 29.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001109/0.3715, allocations: 0.5472 MB / 445.7 MB, free: 29.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006613/0.3782, allocations: 1.77 MB / 447.5 MB, free: 28.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002489/0.3807, allocations: 1.354 MB / 448.8 MB, free: 28.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001264/0.3808, allocations: 159.7 kB / 449 MB, free: 28.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004322/0.3813, allocations: 200.8 kB / 449.2 MB, free: 28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01134/0.3926, allocations: 8.249 MB / 457.4 MB, free: 24.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.696e-05/0.3927, allocations: 27.06 kB / 457.4 MB, free: 24.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002987/0.393, allocations: 92.59 kB / 457.5 MB, free: 24.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003005/0.3961, allocations: 1.904 MB / 459.4 MB, free: 23.99 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01526/0.4113, allocations: 7.418 MB / 466.9 MB, free: 21.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03497/0.4463, allocations: 25.63 MB / 492.5 MB, free: 2.996 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005602/0.452, allocations: 2.613 MB / 495.1 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001596/0.4536, allocations: 0.9165 MB / 496 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008829/0.4625, allocations: 5.086 MB / 0.4893 GB, free: 9.777 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.675e-05/0.4626, allocations: 47.5 kB / 0.4894 GB, free: 9.723 MB / 366.1 MB Notification: Performance of pre-optimization done (n=148): time 3.957e-06/0.4626, allocations: 0 / 0.4894 GB, free: 9.723 MB / 366.1 MB Notification: Performance of matching and sorting (n=176): time 0.01318/0.4758, allocations: 5.468 MB / 0.4947 GB, free: 4.277 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.901e-05/0.4758, allocations: 64.72 kB / 0.4948 GB, free: 4.199 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003833/0.4797, allocations: 2.618 MB / 0.4974 GB, free: 1.551 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001602/0.4799, allocations: 53.7 kB / 0.4974 GB, free: 1.492 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001268/0.4811, allocations: 2.089 MB / 0.4994 GB, free: 15.39 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005389/0.4817, allocations: 0.6505 MB / 0.5001 GB, free: 14.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001008/0.4827, allocations: 0.8198 MB / 0.5009 GB, free: 13.92 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.476e-05/0.4828, allocations: 305.1 kB / 0.5012 GB, free: 13.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002119/0.4849, allocations: 1.367 MB / 0.5025 GB, free: 12.24 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003847/0.4888, allocations: 3.629 MB / 0.506 GB, free: 7.488 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006307/0.4951, allocations: 5.422 MB / 0.5113 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.554e-05/0.4952, allocations: 27.94 kB / 0.5114 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.009047/0.5042, allocations: 5.21 MB / 0.5165 GB, free: 11.72 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.565e-05/0.5043, allocations: 50.16 kB / 0.5165 GB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001099/0.5045, allocations: 80 kB / 0.5166 GB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000951/0.5054, allocations: 366.1 kB / 0.5169 GB, free: 11.24 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00274/0.5082, allocations: 0.9084 MB / 0.5178 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005162/0.5133, allocations: 4.176 MB / 0.5219 GB, free: 6.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002977/0.5163, allocations: 207.8 kB / 0.5221 GB, free: 5.816 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005315/0.5169, allocations: 254.7 kB / 0.5223 GB, free: 5.57 MB / 398.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 (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,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002773/0.5197, allocations: 1.611 MB / 0.5239 GB, free: 3.945 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004779/0.5202, allocations: 233 kB / 0.5241 GB, free: 3.715 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003978/0.5241, allocations: 2.334 MB / 0.5264 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001064/0.5243, allocations: 30.64 kB / 0.5264 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.326e-05/0.5243, allocations: 4 kB / 0.5264 GB, free: 1.328 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.714e-05/0.5243, allocations: 7.969 kB / 0.5265 GB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01334/0.5377, allocations: 6.499 MB / 0.5328 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-05/0.5377, allocations: 4 kB / 0.5328 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001027/0.5387, allocations: 239.7 kB / 0.533 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008296/0.5396, allocations: 268.5 kB / 0.5333 GB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001612/0.5398, allocations: 35.98 kB / 0.5333 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004188/0.544, allocations: 3.414 MB / 0.5367 GB, free: 6.633 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.544, allocations: 4 kB / 0.5367 GB, free: 6.629 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005602/0.5496, allocations: 3.601 MB / 0.5402 GB, free: 2.957 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007339/0.5504, allocations: 302.2 kB / 0.5405 GB, free: 2.641 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004607/0.5509, allocations: 28 kB / 0.5405 GB, free: 2.613 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/0.5519, allocations: 82.56 kB / 0.5406 GB, free: 2.535 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000223/0.5522, allocations: 105 kB / 0.5407 GB, free: 2.434 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/0.5523, allocations: 51.98 kB / 0.5407 GB, free: 2.383 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002817/0.5551, allocations: 1.676 MB / 0.5424 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5551, allocations: 4 kB / 0.5424 GB, free: 0.6875 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003188/0.5583, allocations: 0.7214 MB / 0.5431 GB, free: 15.96 MB / 430.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 (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,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005501/0.5638, allocations: 4.247 MB / 0.5472 GB, free: 11.65 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008636/0.5725, allocations: 5.061 MB / 0.5522 GB, free: 6.598 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/0.5725, allocations: 0 / 0.5522 GB, free: 6.598 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001725/0.5743, allocations: 1.177 MB / 0.5533 GB, free: 5.41 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002354/0.5766, allocations: 402.7 kB / 0.5537 GB, free: 5.035 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04857/0.6252, allocations: 31.73 MB / 0.5847 GB, free: 0.7969 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1841/0.8094, allocations: 2.611 MB / 0.5872 GB, free: 139.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003573/0.813, allocations: 1.266 MB / 0.5885 GB, free: 139.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002445/0.8155, allocations: 1.349 MB / 0.5898 GB, free: 139.6 MB / 462.1 MB Notification: Performance of SimCode: time 1.413e-06/0.8155, allocations: 0 / 0.5898 GB, free: 139.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1187/0.9342, allocations: 50.36 MB / 0.639 GB, free: 123.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/12.17, allocations: 4.062 kB / 0.639 GB, free: 123.5 MB / 462.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/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)