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-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-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: 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.001158/0.001158, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001295/0.001296, allocations: 192.9 kB / 16.25 MB, free: 6.637 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.412/1.412, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2004/0.2004, allocations: 9.117 MB / 299.2 MB, free: 1.82 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 67.91 kB / 361.5 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1114, allocations: 51.43 MB / 412.9 MB, free: 9.973 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.2339/0.3453, allocations: 30.91 MB / 443.8 MB, free: 26.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01403/0.3594, allocations: 6.764 MB / 450.6 MB, free: 21.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006046/0.3655, allocations: 114.1 kB / 450.7 MB, free: 21.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001177/0.3667, allocations: 301.4 kB / 451 MB, free: 21.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003812/0.3705, allocations: 1.322 MB / 452.3 MB, free: 21.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004464/0.371, allocations: 111.8 kB / 452.4 MB, free: 21.13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002898/0.3739, allocations: 2.56 MB / 455 MB, free: 20 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001058/0.375, allocations: 0.9414 MB / 455.9 MB, free: 19.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001101/0.3761, allocations: 0.9043 MB / 456.8 MB, free: 19.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00126/0.3773, allocations: 1.424 MB / 458.2 MB, free: 18.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002788/0.3776, allocations: 232.5 kB / 458.4 MB, free: 18.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001122/0.3788, allocations: 0.8374 MB / 459.3 MB, free: 18.47 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008015/0.3796, allocations: 1.245 MB / 460.5 MB, free: 17.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001084/0.3807, allocations: 1.59 MB / 462.1 MB, free: 16.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003705/0.3844, allocations: 4.813 MB / 466.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.3844, allocations: 4 kB / 466.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3844, allocations: 0 / 466.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.629e-05/0.3845, allocations: 0 / 466.9 MB, free: 14.91 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.009376/0.3939, allocations: 4.354 MB / 471.3 MB, free: 12.85 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.3939, allocations: 13.16 kB / 471.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006586/0.4005, allocations: 1.761 MB / 473.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002733/0.4033, allocations: 1.353 MB / 474.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001247/0.4034, allocations: 150.2 kB / 474.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004598/0.4039, allocations: 205 kB / 474.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01608/0.42, allocations: 8.243 MB / 483 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001486/0.4202, allocations: 34.5 kB / 483 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007476/0.4209, allocations: 98.95 kB / 483.1 MB, free: 7.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003419/0.4244, allocations: 1.897 MB / 485 MB, free: 7.387 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01818/0.4426, allocations: 7.429 MB / 492.5 MB, free: 4.574 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04315/0.4857, allocations: 25.61 MB / 0.5059 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006888/0.4927, allocations: 2.617 MB / 0.5085 GB, free: 8.004 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001609/0.4943, allocations: 0.9195 MB / 0.5094 GB, free: 7.082 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00747/0.5018, allocations: 5.081 MB / 0.5143 GB, free: 1.488 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.591e-05/0.5019, allocations: 51.56 kB / 0.5144 GB, free: 1.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=148): time 4.138e-06/0.5019, allocations: 0 / 0.5144 GB, free: 1.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=176): time 0.01376/0.5157, allocations: 5.463 MB / 0.5197 GB, free: 11.97 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.261e-05/0.5157, allocations: 64.72 kB / 0.5198 GB, free: 11.89 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004527/0.5203, allocations: 2.611 MB / 0.5223 GB, free: 9.25 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001581/0.5205, allocations: 53.7 kB / 0.5224 GB, free: 9.191 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001547/0.522, allocations: 2.109 MB / 0.5245 GB, free: 7.051 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006482/0.5227, allocations: 0.6437 MB / 0.5251 GB, free: 6.398 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001374/0.5241, allocations: 0.8258 MB / 0.5259 GB, free: 5.559 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.5242, allocations: 301.1 kB / 0.5262 GB, free: 5.262 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002444/0.5266, allocations: 1.374 MB / 0.5275 GB, free: 3.879 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003983/0.5306, allocations: 3.625 MB / 0.5311 GB, free: 15.13 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007383/0.538, allocations: 5.418 MB / 0.5363 GB, free: 8.609 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.107e-05/0.5381, allocations: 24 kB / 0.5364 GB, free: 8.586 MB / 414.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.01154/0.5497, allocations: 5.222 MB / 0.5415 GB, free: 3.359 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.111e-05/0.5498, allocations: 36.94 kB / 0.5415 GB, free: 3.324 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000128/0.5499, allocations: 83.94 kB / 0.5416 GB, free: 3.242 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001009/0.551, allocations: 362.4 kB / 0.5419 GB, free: 2.887 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003253/0.5542, allocations: 0.9124 MB / 0.5428 GB, free: 1.973 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005614/0.5599, allocations: 4.179 MB / 0.5469 GB, free: 13.65 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003315/0.5632, allocations: 203.8 kB / 0.5471 GB, free: 13.45 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008054/0.564, allocations: 244 kB / 0.5473 GB, free: 13.21 MB / 430.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.00332/0.5674, allocations: 1.607 MB / 0.5489 GB, free: 11.59 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005554/0.5679, allocations: 232.9 kB / 0.5491 GB, free: 11.36 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004533/0.5725, allocations: 2.335 MB / 0.5514 GB, free: 9.008 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001179/0.5726, allocations: 35.92 kB / 0.5514 GB, free: 8.973 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.608e-05/0.5727, allocations: 4 kB / 0.5514 GB, free: 8.969 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-05/0.5727, allocations: 7.969 kB / 0.5514 GB, free: 8.961 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0143/0.587, allocations: 6.497 MB / 0.5578 GB, free: 2.328 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-05/0.587, allocations: 4.469 kB / 0.5578 GB, free: 2.324 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009496/0.588, allocations: 243.6 kB / 0.558 GB, free: 2.086 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000729/0.5887, allocations: 265.6 kB / 0.5583 GB, free: 1.824 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001288/0.5889, allocations: 35.98 kB / 0.5583 GB, free: 1.789 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004211/0.5931, allocations: 3.417 MB / 0.5617 GB, free: 14.24 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.5931, allocations: 7.984 kB / 0.5617 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005641/0.5988, allocations: 3.609 MB / 0.5652 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007874/0.5996, allocations: 302.2 kB / 0.5655 GB, free: 10.23 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000543/0.6001, allocations: 24 kB / 0.5655 GB, free: 10.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001189/0.6013, allocations: 79.91 kB / 0.5656 GB, free: 10.13 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002378/0.6016, allocations: 109 kB / 0.5657 GB, free: 10.03 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001144/0.6017, allocations: 48 kB / 0.5657 GB, free: 9.98 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003624/0.6053, allocations: 1.68 MB / 0.5674 GB, free: 8.285 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6054, allocations: 3.938 kB / 0.5674 GB, free: 8.281 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00371/0.6091, allocations: 0.7188 MB / 0.5681 GB, free: 7.562 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 (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.0005579/0.6096, allocations: 167 kB / 0.5682 GB, free: 7.387 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01027/0.6199, allocations: 5.062 MB / 0.5732 GB, free: 2.328 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.212e-05/0.62, allocations: 5.125 kB / 0.5732 GB, free: 2.324 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001961/0.6219, allocations: 1.164 MB / 0.5743 GB, free: 1.148 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002702/0.6247, allocations: 411.7 kB / 0.5747 GB, free: 0.7695 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2006/0.8253, allocations: 8.273 MB / 0.5828 GB, free: 124.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002423/0.8277, allocations: 2.619 MB / 0.5853 GB, free: 123.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002831/0.8306, allocations: 1.282 MB / 0.5866 GB, free: 123.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003853/0.831, allocations: 177.2 kB / 0.5868 GB, free: 123.5 MB / 446.1 MB Notification: Performance of SimCode: time 6.62e-07/0.831, allocations: 0 / 0.5868 GB, free: 123.5 MB / 446.1 MB Notification: Performance of Templates: time 0.05047/0.8814, allocations: 26.95 MB / 0.6131 GB, free: 118.9 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)