Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.Pendulum.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.Pendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.Pendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_Pendulum",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.0008838/0.0008838, allocations: 100.8 kB / 15.06 MB, free: 1.094 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.000915/0.0009151, allocations: 177.3 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.482/1.482, allocations: 223.2 MB / 239.9 MB, free: 5.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1884/0.1884, allocations: 9.101 MB / 300.1 MB, free: 2.68 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000319/0.000319, allocations: 8 kB / 363.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1355/0.1359, allocations: 52.42 MB / 415.5 MB, free: 8.484 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.2909/0.4268, allocations: 15.49 MB / 431 MB, free: 34.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01079/0.4377, allocations: 4.372 MB / 435.4 MB, free: 33.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003772/0.4415, allocations: 60.38 kB / 435.4 MB, free: 33.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002573/0.4441, allocations: 0.7415 MB / 436.2 MB, free: 32.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00805/0.4522, allocations: 2.403 MB / 438.6 MB, free: 32.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007498/0.453, allocations: 79.89 kB / 438.7 MB, free: 32.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0021/0.4551, allocations: 1.176 MB / 439.8 MB, free: 31.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000801/0.4559, allocations: 0.6308 MB / 440.5 MB, free: 31.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006376/0.4565, allocations: 0.5517 MB / 441 MB, free: 31.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009594/0.4575, allocations: 0.824 MB / 441.8 MB, free: 31.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002278/0.4577, allocations: 110.9 kB / 442 MB, free: 31.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001168/0.4589, allocations: 0.6403 MB / 442.6 MB, free: 31.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006844/0.4596, allocations: 0.8956 MB / 443.5 MB, free: 30.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004079/0.46, allocations: 0.5601 MB / 444 MB, free: 30.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002755/0.4628, allocations: 3.304 MB / 447.4 MB, free: 29.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.4628, allocations: 0 / 447.4 MB, free: 29.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.4628, allocations: 7.125 kB / 447.4 MB, free: 29.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.579e-05/0.4629, allocations: 0 / 447.4 MB, free: 29.53 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: 1017 * Number of variables: 1017 Notification: Performance of Generate backend data structure: time 0.007885/0.4708, allocations: 2.886 MB / 450.2 MB, free: 28.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.868e-05/0.4709, allocations: 6.969 kB / 450.3 MB, free: 28.05 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001595/0.4725, allocations: 479.9 kB / 450.7 MB, free: 27.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007466/0.48, allocations: 2.119 MB / 452.8 MB, free: 27.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002997/0.483, allocations: 1.178 MB / 454 MB, free: 26.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001143/0.4831, allocations: 122.1 kB / 454.1 MB, free: 26.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004864/0.4836, allocations: 156.4 kB / 454.3 MB, free: 26.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01002/0.4937, allocations: 7.215 MB / 461.5 MB, free: 23.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.253e-05/0.4938, allocations: 18.19 kB / 461.5 MB, free: 23.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002781/0.494, allocations: 77.78 kB / 461.6 MB, free: 23.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003139/0.4972, allocations: 1.736 MB / 463.3 MB, free: 23.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01623/0.5134, allocations: 6.586 MB / 469.9 MB, free: 20.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03123/0.5447, allocations: 21.16 MB / 491.1 MB, free: 6.234 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003729/0.5485, allocations: 2.014 MB / 493.1 MB, free: 4.934 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008245/0.5493, allocations: 1.027 MB / 494.1 MB, free: 3.957 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.662e-05/0.5494, allocations: 39.69 kB / 494.2 MB, free: 3.914 MB / 350.1 MB Notification: Performance of pre-optimization done (n=124): time 4.979e-06/0.5494, allocations: 4 kB / 494.2 MB, free: 3.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=138): time 0.01285/0.5622, allocations: 6.491 MB / 0.4889 GB, free: 13.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.551e-05/0.5623, allocations: 60.41 kB / 0.489 GB, free: 13.49 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003269/0.5656, allocations: 2.186 MB / 0.4911 GB, free: 11.26 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.011e-05/0.5657, allocations: 41.7 kB / 0.4912 GB, free: 11.21 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001263/0.567, allocations: 1.799 MB / 0.4929 GB, free: 9.383 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005538/0.5675, allocations: 0.5011 MB / 0.4934 GB, free: 8.875 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001468/0.5677, allocations: 63.98 kB / 0.4935 GB, free: 8.812 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003011/0.568, allocations: 449.2 kB / 0.4939 GB, free: 8.367 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002011/0.57, allocations: 1.115 MB / 0.495 GB, free: 7.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003225/0.5733, allocations: 2.967 MB / 0.4979 GB, free: 3.363 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002769/0.576, allocations: 1.851 MB / 0.4997 GB, free: 1.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-05/0.5761, allocations: 20 kB / 0.4997 GB, free: 1.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.006887/0.583, allocations: 4.167 MB / 0.5038 GB, free: 13.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.379e-05/0.5831, allocations: 36.92 kB / 0.5038 GB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-05/0.5831, allocations: 68 kB / 0.5039 GB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005201/0.5837, allocations: 216.7 kB / 0.5041 GB, free: 13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002181/0.5858, allocations: 0.7369 MB / 0.5048 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002852/0.5887, allocations: 2.511 MB / 0.5073 GB, free: 9.625 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002264/0.591, allocations: 172 kB / 0.5074 GB, free: 9.457 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002969/0.5913, allocations: 196 kB / 0.5076 GB, free: 9.266 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 298 * Number of states: 0 () * Number of discrete variables: 9 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (401): * Single equations (assignments): 396 * 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 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00235/0.5937, allocations: 1.433 MB / 0.509 GB, free: 7.82 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003208/0.594, allocations: 193.5 kB / 0.5092 GB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003099/0.5971, allocations: 1.936 MB / 0.5111 GB, free: 5.664 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.948e-05/0.5972, allocations: 23.98 kB / 0.5111 GB, free: 5.641 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.5972, allocations: 0 / 0.5111 GB, free: 5.641 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.529e-05/0.5972, allocations: 7.984 kB / 0.5111 GB, free: 5.633 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009131/0.6064, allocations: 5.385 MB / 0.5164 GB, free: 100 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/0.6064, allocations: 4.625 kB / 0.5164 GB, free: 96 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007313/0.6072, allocations: 191.7 kB / 0.5166 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003444/0.6075, allocations: 120.7 kB / 0.5167 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.313e-05/0.6076, allocations: 30.56 kB / 0.5167 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002085/0.6097, allocations: 2.038 MB / 0.5187 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.387e-06/0.6097, allocations: 7.938 kB / 0.5187 GB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004321/0.614, allocations: 3.176 MB / 0.5218 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007947/0.6149, allocations: 282.6 kB / 0.5221 GB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002222/0.6151, allocations: 24 kB / 0.5221 GB, free: 9.812 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007399/0.6158, allocations: 55.92 kB / 0.5221 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001674/0.616, allocations: 84.86 kB / 0.5222 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.024e-05/0.6161, allocations: 43.98 kB / 0.5223 GB, free: 9.629 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002196/0.6183, allocations: 1.433 MB / 0.5237 GB, free: 8.172 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.6183, allocations: 3.938 kB / 0.5237 GB, free: 8.168 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002901/0.6212, allocations: 0.5664 MB / 0.5242 GB, free: 7.602 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 2 (revolute.phi,revolute.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 (103): * Single equations (assignments): 98 * 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 {(1,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005265/0.6265, allocations: 5.094 MB / 0.5292 GB, free: 2.344 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004724/0.6313, allocations: 2.723 MB / 0.5319 GB, free: 15.62 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.6313, allocations: 0 / 0.5319 GB, free: 15.62 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00123/0.6325, allocations: 0.9006 MB / 0.5327 GB, free: 14.71 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001531/0.6341, allocations: 316.1 kB / 0.533 GB, free: 14.41 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2523/0.8863, allocations: 62.61 MB / 0.5942 GB, free: 102.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002269/0.8887, allocations: 2.42 MB / 0.5965 GB, free: 102 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002514/0.8912, allocations: 1.09 MB / 0.5976 GB, free: 102 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001256/0.8925, allocations: 1.113 MB / 0.5987 GB, free: 102 MB / 446.1 MB Notification: Performance of SimCode: time 6.71e-07/0.8925, allocations: 0 / 0.5987 GB, free: 102 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07921/0.9717, allocations: 45.18 MB / 0.6428 GB, free: 83.67 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000185/0.9719, allocations: 185.1 kB / 0.643 GB, free: 83.43 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.59/3.562, allocations: 0 / 0.643 GB, free: 83.43 MB / 446.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_Pendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_Pendulum.fmu > PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe 2>&1) Environment - environmentSimulation: