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.005526/0.005527, allocations: 96.22 kB / 15.73 MB, free: 6.043 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.001345/0.001345, allocations: 195.8 kB / 16.68 MB, free: 5.969 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.416/1.416, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.163/0.163, allocations: 9.096 MB / 299.6 MB, free: 1.707 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 59.91 kB / 414.1 MB, free: 8.875 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2752, allocations: 51.43 MB / 465.6 MB, free: 17.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.008094/0.2833, allocations: 8.442 MB / 474 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005201/0.2886, allocations: 2.605 MB / 476.6 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001192/0.2898, allocations: 38.53 kB / 476.7 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008551/0.2907, allocations: 369 kB / 477 MB, free: 9.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003344/0.294, allocations: 1.412 MB / 478.4 MB, free: 9.078 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000427/0.2945, allocations: 138.9 kB / 478.6 MB, free: 9.004 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002792/0.2973, allocations: 2.538 MB / 481.1 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00132/0.2986, allocations: 0.9147 MB / 482 MB, free: 6.926 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002204/0.3008, allocations: 0.9027 MB / 482.9 MB, free: 6.395 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002466/0.3033, allocations: 1.311 MB / 484.2 MB, free: 5.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000622/0.304, allocations: 232.9 kB / 484.5 MB, free: 5.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001926/0.3059, allocations: 0.8296 MB / 485.3 MB, free: 5.254 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001104/0.307, allocations: 1.239 MB / 486.5 MB, free: 4.523 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001442/0.3085, allocations: 1.577 MB / 488.1 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005707/0.3142, allocations: 5.056 MB / 493.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3142, allocations: 1.062 kB / 493.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.3142, allocations: 0 / 493.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001188/0.3143, allocations: 0 / 493.2 MB, free: 15.8 MB / 366.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.01121/0.3256, allocations: 4.443 MB / 497.6 MB, free: 12.05 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/0.3256, allocations: 8.031 kB / 497.6 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008083/0.3264, allocations: 0.5471 MB / 498.2 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006589/0.333, allocations: 1.785 MB / 499.9 MB, free: 9.699 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002415/0.3355, allocations: 1.369 MB / 0.4896 GB, free: 8.289 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00013/0.3356, allocations: 151.8 kB / 0.4897 GB, free: 8.141 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003946/0.336, allocations: 199.9 kB / 0.4899 GB, free: 7.945 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01321/0.3492, allocations: 8.258 MB / 0.498 GB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-05/0.3494, allocations: 27.77 kB / 0.498 GB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003047/0.3497, allocations: 91.86 kB / 0.4981 GB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003175/0.3528, allocations: 1.903 MB / 0.4999 GB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01514/0.368, allocations: 7.422 MB / 0.5072 GB, free: 5.836 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04288/0.4109, allocations: 25.59 MB / 0.5322 GB, free: 11.72 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006758/0.4177, allocations: 2.618 MB / 0.5347 GB, free: 8.988 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001572/0.4193, allocations: 0.9157 MB / 0.5356 GB, free: 8.07 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007315/0.4267, allocations: 5.099 MB / 0.5406 GB, free: 2.457 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.524e-05/0.4267, allocations: 47.5 kB / 0.5406 GB, free: 2.402 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 4.619e-06/0.4268, allocations: 0 / 0.5406 GB, free: 2.402 MB / 414.1 MB Notification: Performance of matching and sorting (n=176): time 0.0135/0.4403, allocations: 5.516 MB / 0.546 GB, free: 12.9 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.29e-05/0.4404, allocations: 76.72 kB / 0.5461 GB, free: 12.81 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004307/0.4447, allocations: 2.611 MB / 0.5487 GB, free: 10.17 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001572/0.4449, allocations: 53.64 kB / 0.5487 GB, free: 10.11 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00181/0.4467, allocations: 2.181 MB / 0.5508 GB, free: 7.906 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007791/0.4475, allocations: 0.6782 MB / 0.5515 GB, free: 7.223 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00127/0.4487, allocations: 0.8341 MB / 0.5523 GB, free: 6.375 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.4489, allocations: 301.1 kB / 0.5526 GB, free: 6.078 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002361/0.4513, allocations: 1.374 MB / 0.5539 GB, free: 4.695 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004506/0.4558, allocations: 3.633 MB / 0.5575 GB, free: 15.94 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007245/0.4631, allocations: 5.405 MB / 0.5628 GB, free: 9.434 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.804e-05/0.4631, allocations: 24 kB / 0.5628 GB, free: 9.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.009568/0.4727, allocations: 5.226 MB / 0.5679 GB, free: 4.176 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.478e-05/0.4728, allocations: 43.94 kB / 0.5679 GB, free: 4.133 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-05/0.4729, allocations: 80 kB / 0.568 GB, free: 4.055 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009976/0.4739, allocations: 358.1 kB / 0.5684 GB, free: 3.703 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002826/0.4768, allocations: 0.9204 MB / 0.5693 GB, free: 2.781 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005752/0.4825, allocations: 4.17 MB / 0.5733 GB, free: 14.46 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00287/0.4854, allocations: 215.8 kB / 0.5735 GB, free: 14.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000397/0.4858, allocations: 244 kB / 0.5738 GB, free: 14.02 MB / 462.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.002873/0.4887, allocations: 1.611 MB / 0.5753 GB, free: 12.39 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000358/0.4891, allocations: 242.7 kB / 0.5756 GB, free: 12.15 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004023/0.4931, allocations: 2.342 MB / 0.5779 GB, free: 9.789 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001022/0.4932, allocations: 27.98 kB / 0.5779 GB, free: 9.762 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.4933, allocations: 11.92 kB / 0.5779 GB, free: 9.75 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.62e-05/0.4933, allocations: 7.969 kB / 0.5779 GB, free: 9.742 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01069/0.504, allocations: 6.449 MB / 0.5842 GB, free: 3.16 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.959e-06/0.504, allocations: 4 kB / 0.5842 GB, free: 3.156 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008973/0.5049, allocations: 243.7 kB / 0.5844 GB, free: 2.918 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007032/0.5056, allocations: 255.9 kB / 0.5847 GB, free: 2.668 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-05/0.5057, allocations: 35.98 kB / 0.5847 GB, free: 2.633 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2411/0.7468, allocations: 3.414 MB / 0.588 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/0.7469, allocations: 5 kB / 0.5881 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005582/0.7525, allocations: 3.617 MB / 0.5916 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006674/0.7532, allocations: 313 kB / 0.5919 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002663/0.7534, allocations: 32.09 kB / 0.5919 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008523/0.7543, allocations: 78.19 kB / 0.592 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002337/0.7545, allocations: 112.1 kB / 0.5921 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/0.7547, allocations: 49.03 kB / 0.5921 GB, free: 108.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002827/0.7575, allocations: 1.68 MB / 0.5938 GB, free: 108.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.7575, allocations: 1.844 kB / 0.5938 GB, free: 108.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003729/0.7612, allocations: 0.7157 MB / 0.5945 GB, free: 108.1 MB / 462.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.005922/0.7672, allocations: 4.264 MB / 0.5986 GB, free: 106.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005623/0.7728, allocations: 3.437 MB / 0.602 GB, free: 105 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.264e-05/0.7729, allocations: 2 kB / 0.602 GB, free: 105 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001719/0.7746, allocations: 1.17 MB / 0.6031 GB, free: 104.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002192/0.7768, allocations: 404.6 kB / 0.6035 GB, free: 104.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03754/0.8143, allocations: 29.28 MB / 0.6321 GB, free: 83.96 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002297/0.8167, allocations: 2.63 MB / 0.6347 GB, free: 81.82 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002369/0.8191, allocations: 1.257 MB / 0.6359 GB, free: 80.62 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001345/0.8204, allocations: 1.351 MB / 0.6372 GB, free: 79.27 MB / 462.1 MB Notification: Performance of SimCode: time 1.583e-06/0.8204, allocations: 3.938 kB / 0.6372 GB, free: 79.27 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08085/0.9013, allocations: 49.55 MB / 0.6856 GB, free: 29.93 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.63/16.53, allocations: 10.55 kB / 0.6856 GB, free: 29.92 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)