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.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.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.00113/0.001131, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001257/0.001257, allocations: 193.8 kB / 16.25 MB, free: 6.617 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.424/1.424, allocations: 222.9 MB / 239.9 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1717/0.1717, allocations: 9.091 MB / 299.2 MB, free: 1.828 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001239, allocations: 56.14 kB / 361.5 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1202, allocations: 51.44 MB / 413 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.2337/0.3539, allocations: 18.25 MB / 431.2 MB, free: 34.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009196/0.3632, allocations: 4.416 MB / 435.6 MB, free: 32.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004055/0.3673, allocations: 64.88 kB / 435.7 MB, free: 32.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008123/0.3681, allocations: 260 kB / 435.9 MB, free: 32.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00277/0.3709, allocations: 1.185 MB / 437.1 MB, free: 31.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002753/0.3712, allocations: 76.66 kB / 437.2 MB, free: 31.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00184/0.3731, allocations: 2.171 MB / 439.4 MB, free: 30.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006989/0.3738, allocations: 0.7247 MB / 440.1 MB, free: 30.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006311/0.3744, allocations: 0.7627 MB / 440.9 MB, free: 30.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001026/0.3754, allocations: 1.216 MB / 442.1 MB, free: 29.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002174/0.3757, allocations: 202.4 kB / 442.3 MB, free: 29.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001047/0.3767, allocations: 0.8107 MB / 443.1 MB, free: 29.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006737/0.3774, allocations: 1.073 MB / 444.2 MB, free: 29.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00086/0.3783, allocations: 1.361 MB / 445.5 MB, free: 28.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00353/0.3818, allocations: 4.297 MB / 449.8 MB, free: 26.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.3818, allocations: 4 kB / 449.8 MB, free: 26.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3819, allocations: 0 / 449.8 MB, free: 26.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.492e-05/0.3819, allocations: 0 / 449.8 MB, free: 26.61 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.006929/0.3889, allocations: 3.353 MB / 453.2 MB, free: 24.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.314e-05/0.3889, allocations: 9.469 kB / 453.2 MB, free: 24.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005282/0.3895, allocations: 488 kB / 453.7 MB, free: 24.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005723/0.3952, allocations: 1.721 MB / 455.4 MB, free: 24.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002037/0.3973, allocations: 1.194 MB / 456.6 MB, free: 23.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.791e-05/0.3974, allocations: 120.6 kB / 456.7 MB, free: 23.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003065/0.3977, allocations: 166.2 kB / 456.8 MB, free: 23.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009378/0.4071, allocations: 7.206 MB / 464.1 MB, free: 20.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.854e-05/0.4072, allocations: 16 kB / 464.1 MB, free: 20.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002402/0.4074, allocations: 75.88 kB / 464.1 MB, free: 20.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002795/0.4102, allocations: 1.739 MB / 465.9 MB, free: 19.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01403/0.4243, allocations: 6.584 MB / 472.5 MB, free: 17.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03048/0.4548, allocations: 21.18 MB / 493.6 MB, free: 3.398 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003413/0.4583, allocations: 2.021 MB / 495.7 MB, free: 1.266 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007853/0.4591, allocations: 0.6791 MB / 496.3 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004886/0.464, allocations: 3.278 MB / 499.6 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.341e-05/0.464, allocations: 39.2 kB / 499.7 MB, free: 12.99 MB / 366.1 MB Notification: Performance of pre-optimization done (n=106): time 3.386e-06/0.464, allocations: 4 kB / 499.7 MB, free: 12.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.01159/0.4756, allocations: 5.524 MB / 0.4934 GB, free: 7.367 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.384e-05/0.4757, allocations: 60.41 kB / 0.4934 GB, free: 7.297 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003304/0.479, allocations: 2.273 MB / 0.4956 GB, free: 4.977 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001025/0.4791, allocations: 45.69 kB / 0.4957 GB, free: 4.926 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001253/0.4804, allocations: 1.833 MB / 0.4975 GB, free: 3.062 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004255/0.4808, allocations: 461.9 kB / 0.4979 GB, free: 2.605 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008586/0.4817, allocations: 0.6667 MB / 0.4986 GB, free: 1.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.4818, allocations: 301.1 kB / 0.4988 GB, free: 1.633 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001704/0.4835, allocations: 1.099 MB / 0.4999 GB, free: 0.5312 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002939/0.4865, allocations: 2.959 MB / 0.5028 GB, free: 12.65 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005047/0.4915, allocations: 4.367 MB / 0.5071 GB, free: 7.371 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.257e-05/0.4916, allocations: 20 kB / 0.5071 GB, free: 7.352 MB / 382.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.007082/0.4987, allocations: 4.135 MB / 0.5111 GB, free: 3.207 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.267e-05/0.4988, allocations: 32 kB / 0.5112 GB, free: 3.176 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-05/0.4989, allocations: 64.25 kB / 0.5112 GB, free: 3.113 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005274/0.4994, allocations: 217 kB / 0.5114 GB, free: 2.898 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002089/0.5015, allocations: 0.7252 MB / 0.5121 GB, free: 2.172 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003337/0.5049, allocations: 2.712 MB / 0.5148 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002309/0.5072, allocations: 167.9 kB / 0.5149 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002934/0.5075, allocations: 196 kB / 0.5151 GB, free: 14.96 MB / 398.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 (395): * Single equations (assignments): 390 * 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 {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002921/0.5104, allocations: 1.433 MB / 0.5165 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003692/0.5108, allocations: 181.6 kB / 0.5167 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002869/0.5137, allocations: 1.619 MB / 0.5183 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001046/0.5138, allocations: 23.98 kB / 0.5183 GB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.5138, allocations: 0 / 0.5183 GB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.185e-05/0.5138, allocations: 7.969 kB / 0.5183 GB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008296/0.5221, allocations: 4.885 MB / 0.5231 GB, free: 6.672 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.744e-06/0.5222, allocations: 4 kB / 0.5231 GB, free: 6.668 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007367/0.5229, allocations: 159.7 kB / 0.5232 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003526/0.5233, allocations: 117.1 kB / 0.5234 GB, free: 6.395 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001297/0.5234, allocations: 24 kB / 0.5234 GB, free: 6.371 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002362/0.5258, allocations: 2.163 MB / 0.5255 GB, free: 4.066 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.5258, allocations: 4 kB / 0.5255 GB, free: 4.062 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003845/0.5296, allocations: 2.544 MB / 0.528 GB, free: 1.461 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007188/0.5304, allocations: 266.7 kB / 0.5282 GB, free: 1.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002471/0.5306, allocations: 27.92 kB / 0.5283 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007175/0.5314, allocations: 56 kB / 0.5283 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001556/0.5315, allocations: 68.84 kB / 0.5284 GB, free: 1.031 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.101e-05/0.5316, allocations: 39.98 kB / 0.5284 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002381/0.534, allocations: 1.468 MB / 0.5299 GB, free: 15.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.534, allocations: 0 / 0.5299 GB, free: 15.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002692/0.5367, allocations: 0.5757 MB / 0.5304 GB, free: 14.92 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (88): * Single equations (assignments): 83 * 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 {(1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00424/0.541, allocations: 3.175 MB / 0.5335 GB, free: 11.68 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006343/0.5473, allocations: 3.465 MB / 0.5369 GB, free: 8.227 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.353e-06/0.5474, allocations: 0 / 0.5369 GB, free: 8.227 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001155/0.5485, allocations: 0.8299 MB / 0.5377 GB, free: 7.383 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001981/0.5505, allocations: 329.1 kB / 0.538 GB, free: 7.078 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04278/0.5933, allocations: 26.4 MB / 0.5638 GB, free: 9.512 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002505/0.5959, allocations: 2.356 MB / 0.5661 GB, free: 7.121 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002463/0.5984, allocations: 1.036 MB / 0.5671 GB, free: 6.082 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001458/0.5998, allocations: 1.093 MB / 0.5682 GB, free: 4.988 MB / 446.1 MB Notification: Performance of SimCode: time 7.11e-07/0.5998, allocations: 0 / 0.5682 GB, free: 4.988 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2386/0.8384, allocations: 40.13 MB / 0.6074 GB, free: 143.3 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001466/0.8386, allocations: 204.6 kB / 0.6076 GB, free: 143.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.72/3.558, allocations: 0 / 0.6076 GB, free: 143.1 MB / 462.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/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)