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: translateModel(PlanarMechanics.Examples.DoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.DoublePendulum") translateModel(PlanarMechanics.Examples.DoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 100.9 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.001174/0.001174, allocations: 173.3 kB / 15.95 MB, free: 212 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.407/1.407, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2039/0.2039, allocations: 9.103 MB / 300.1 MB, free: 2.738 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003272/0.0003273, allocations: 8 kB / 363 MB, free: 13.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1107, allocations: 52.43 MB / 415.4 MB, free: 8.551 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.2621/0.3728, allocations: 26.3 MB / 441.7 MB, free: 29.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01681/0.3897, allocations: 6.783 MB / 448.5 MB, free: 24.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007884/0.3976, allocations: 111.9 kB / 448.6 MB, free: 24.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005604/0.4032, allocations: 1.303 MB / 449.9 MB, free: 24.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01451/0.4178, allocations: 3.97 MB / 453.9 MB, free: 22.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001501/0.4193, allocations: 129.5 kB / 454 MB, free: 22.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002591/0.4219, allocations: 1.418 MB / 455.4 MB, free: 21.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001013/0.4229, allocations: 0.8049 MB / 456.2 MB, free: 21.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007647/0.4237, allocations: 0.6795 MB / 456.9 MB, free: 20.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009566/0.4247, allocations: 0.9722 MB / 457.9 MB, free: 20.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002578/0.4249, allocations: 130 kB / 458 MB, free: 20.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001057/0.426, allocations: 0.6565 MB / 458.7 MB, free: 20.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007271/0.4268, allocations: 1.046 MB / 459.7 MB, free: 19.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000437/0.4272, allocations: 0.647 MB / 460.4 MB, free: 19.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002744/0.4299, allocations: 3.684 MB / 464 MB, free: 18.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.43, allocations: 0 / 464 MB, free: 18.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.43, allocations: 3.625 kB / 464 MB, free: 18.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.292e-05/0.4301, allocations: 0 / 464 MB, free: 18.65 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.009038/0.4391, allocations: 3.824 MB / 467.9 MB, free: 16.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.4392, allocations: 9 kB / 467.9 MB, free: 16.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007791/0.447, allocations: 2.166 MB / 470 MB, free: 16.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003547/0.4505, allocations: 1.328 MB / 471.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001657/0.4507, allocations: 152.6 kB / 471.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008153/0.4515, allocations: 195 kB / 471.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01641/0.468, allocations: 8.293 MB / 480 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001043/0.4681, allocations: 18.62 kB / 480 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003498/0.4685, allocations: 90.47 kB / 480.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003699/0.4722, allocations: 1.906 MB / 482 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01906/0.4912, allocations: 7.448 MB / 489.5 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03954/0.5308, allocations: 25.57 MB / 0.503 GB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006692/0.5376, allocations: 2.603 MB / 0.5055 GB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001945/0.5395, allocations: 2.04 MB / 0.5075 GB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.037e-05/0.5396, allocations: 51.88 kB / 0.5075 GB, free: 10.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=170): time 5.62e-06/0.5396, allocations: 4 kB / 0.5076 GB, free: 10.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=198): time 0.01697/0.5566, allocations: 6.587 MB / 0.514 GB, free: 3.512 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.997e-05/0.5567, allocations: 69.41 kB / 0.5141 GB, free: 3.434 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003713/0.5604, allocations: 2.514 MB / 0.5165 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001699/0.5606, allocations: 57.64 kB / 0.5166 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001424/0.562, allocations: 2.032 MB / 0.5185 GB, free: 14.76 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000723/0.5628, allocations: 0.7168 MB / 0.5192 GB, free: 14.03 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001723/0.563, allocations: 84 kB / 0.5193 GB, free: 13.95 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002771/0.5632, allocations: 487.3 kB / 0.5198 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002494/0.5657, allocations: 1.378 MB / 0.5211 GB, free: 12.08 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004161/0.5699, allocations: 3.626 MB / 0.5247 GB, free: 7.328 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003436/0.5734, allocations: 2.267 MB / 0.5269 GB, free: 5.059 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.024e-05/0.5734, allocations: 20 kB / 0.5269 GB, free: 5.039 MB / 398.1 MB Notification: Performance of matching and sorting (n=551) (initialization): time 0.008985/0.5824, allocations: 5.257 MB / 0.532 GB, free: 15.78 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.119e-05/0.5825, allocations: 40 kB / 0.5321 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.625e-05/0.5826, allocations: 76 kB / 0.5322 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008915/0.5835, allocations: 379.7 kB / 0.5325 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002831/0.5864, allocations: 0.9284 MB / 0.5334 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005095/0.5915, allocations: 3.922 MB / 0.5373 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002938/0.5944, allocations: 207.9 kB / 0.5375 GB, free: 10.1 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005679/0.595, allocations: 240 kB / 0.5377 GB, free: 9.867 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 (504): * Single equations (assignments): 499 * 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.002898/0.5979, allocations: 1.615 MB / 0.5393 GB, free: 8.238 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003648/0.5983, allocations: 237 kB / 0.5395 GB, free: 8.004 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004369/0.6027, allocations: 2.736 MB / 0.5422 GB, free: 5.242 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001363/0.6028, allocations: 31.98 kB / 0.5422 GB, free: 5.211 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.6028, allocations: 4 kB / 0.5422 GB, free: 5.207 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.794e-05/0.6029, allocations: 7.969 kB / 0.5422 GB, free: 5.199 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0132/0.6161, allocations: 7.183 MB / 0.5492 GB, free: 13.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-05/0.6161, allocations: 8 kB / 0.5492 GB, free: 13.83 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001046/0.6172, allocations: 272.5 kB / 0.5495 GB, free: 13.57 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00068/0.6179, allocations: 271 kB / 0.5497 GB, free: 13.3 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001146/0.618, allocations: 36 kB / 0.5498 GB, free: 13.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004038/0.622, allocations: 3.248 MB / 0.5529 GB, free: 9.891 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.265e-05/0.6221, allocations: 15.94 kB / 0.553 GB, free: 9.875 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006406/0.6285, allocations: 4.463 MB / 0.5573 GB, free: 5.09 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001035/0.6295, allocations: 326.2 kB / 0.5576 GB, free: 4.75 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003702/0.6299, allocations: 39.98 kB / 0.5577 GB, free: 4.711 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009524/0.6309, allocations: 87.81 kB / 0.5577 GB, free: 4.625 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002183/0.6311, allocations: 125 kB / 0.5579 GB, free: 4.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001095/0.6312, allocations: 59.98 kB / 0.5579 GB, free: 4.441 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002776/0.634, allocations: 1.625 MB / 0.5595 GB, free: 2.801 MB / 430.1 MB Notification: Performance of sort global known variables: time 6.51e-07/0.634, allocations: 0 / 0.5595 GB, free: 2.801 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003604/0.6377, allocations: 0.7304 MB / 0.5602 GB, free: 2.07 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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 (151): * Single equations (assignments): 146 * 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.0004207/0.6381, allocations: 183.3 kB / 0.5604 GB, free: 1.883 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005911/0.644, allocations: 3.507 MB / 0.5638 GB, free: 14.37 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.886e-06/0.644, allocations: 4 kB / 0.5638 GB, free: 14.37 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001915/0.646, allocations: 1.268 MB / 0.5651 GB, free: 13.09 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0019/0.6479, allocations: 357.1 kB / 0.5654 GB, free: 12.75 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01266/0.6606, allocations: 8.244 MB / 0.5735 GB, free: 4.391 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002788/0.6634, allocations: 2.697 MB / 0.5761 GB, free: 1.66 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003074/0.6665, allocations: 1.318 MB / 0.5774 GB, free: 344 kB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004544/0.6669, allocations: 187.4 kB / 0.5776 GB, free: 156 kB / 446.1 MB Notification: Performance of SimCode: time 7.61e-07/0.6669, allocations: 0 / 0.5776 GB, free: 156 kB / 446.1 MB Notification: Performance of Templates: time 0.2245/0.8914, allocations: 25.44 MB / 0.6024 GB, free: 117.8 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.makefile (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 & ./PlanarMechanics_PlanarMechanics.Examples.DoublePendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe 2>&1)