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.001199/0.001199, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001238/0.001238, allocations: 195.1 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.139/3.139, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2641/0.2641, allocations: 9.112 MB / 299.5 MB, free: 1.801 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 59.91 kB / 362 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1059, allocations: 51.43 MB / 413.5 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.009107/0.115, allocations: 7.021 MB / 420.5 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2105/0.3256, allocations: 2.352 MB / 422.8 MB, free: 36.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001128/0.3267, allocations: 30.34 kB / 422.9 MB, free: 36.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001181/0.3279, allocations: 307.9 kB / 423.2 MB, free: 36.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003471/0.3315, allocations: 1.265 MB / 424.4 MB, free: 36.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003277/0.3318, allocations: 83.81 kB / 424.5 MB, free: 36.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002183/0.334, allocations: 2.149 MB / 426.7 MB, free: 36.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007999/0.3348, allocations: 0.7002 MB / 427.4 MB, free: 36.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007928/0.3356, allocations: 0.7552 MB / 428.1 MB, free: 36.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001118/0.3368, allocations: 1.131 MB / 429.3 MB, free: 35.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002881/0.3371, allocations: 202.2 kB / 429.5 MB, free: 35.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001141/0.3382, allocations: 0.7966 MB / 430.3 MB, free: 35.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006906/0.3389, allocations: 1.065 MB / 431.3 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009355/0.3399, allocations: 1.353 MB / 432.7 MB, free: 35.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003275/0.3431, allocations: 4.27 MB / 436.9 MB, free: 33.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.3432, allocations: 3.969 kB / 436.9 MB, free: 33.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.562e-06/0.3432, allocations: 0 / 436.9 MB, free: 33.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001029/0.3433, allocations: 0 / 436.9 MB, free: 33.52 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.006897/0.3502, allocations: 3.358 MB / 440.3 MB, free: 31.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/0.3503, allocations: 8.406 kB / 440.3 MB, free: 31.8 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005337/0.3508, allocations: 486.5 kB / 440.8 MB, free: 31.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006219/0.357, allocations: 1.707 MB / 442.5 MB, free: 31.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003714/0.3608, allocations: 1.197 MB / 443.7 MB, free: 30.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001822/0.361, allocations: 135.3 kB / 443.8 MB, free: 30.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005775/0.3616, allocations: 154.8 kB / 444 MB, free: 30.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01051/0.3721, allocations: 7.202 MB / 451.2 MB, free: 27.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.39e-05/0.3722, allocations: 19.03 kB / 451.2 MB, free: 27.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002431/0.3725, allocations: 75.81 kB / 451.3 MB, free: 27.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00238/0.3749, allocations: 1.738 MB / 453 MB, free: 27.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01213/0.387, allocations: 6.583 MB / 459.6 MB, free: 24.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02879/0.4158, allocations: 21.18 MB / 480.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004016/0.4199, allocations: 2.013 MB / 482.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001008/0.4209, allocations: 0.6781 MB / 483.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004171/0.4251, allocations: 3.279 MB / 486.7 MB, free: 7.469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.633e-05/0.4251, allocations: 46.38 kB / 486.8 MB, free: 7.418 MB / 350.1 MB Notification: Performance of pre-optimization done (n=106): time 3.948e-06/0.4252, allocations: 0 / 486.8 MB, free: 7.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.01034/0.4355, allocations: 5.533 MB / 492.3 MB, free: 2.742 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.178e-05/0.4356, allocations: 61.72 kB / 492.4 MB, free: 2.672 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002757/0.4383, allocations: 2.27 MB / 494.7 MB, free: 364 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.426e-05/0.4384, allocations: 37.7 kB / 494.7 MB, free: 320 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00117/0.4396, allocations: 1.841 MB / 496.5 MB, free: 14.46 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005677/0.4402, allocations: 456.2 kB / 497 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001015/0.4412, allocations: 0.6658 MB / 497.6 MB, free: 13.35 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.4414, allocations: 301.1 kB / 497.9 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002123/0.4435, allocations: 1.099 MB / 499 MB, free: 11.95 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003572/0.4471, allocations: 2.966 MB / 0.4902 GB, free: 8.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005665/0.4528, allocations: 4.368 MB / 0.4945 GB, free: 2.797 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.241e-05/0.4529, allocations: 24 kB / 0.4945 GB, free: 2.773 MB / 366.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.007633/0.4605, allocations: 4.143 MB / 0.4986 GB, free: 14.64 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.165e-05/0.4606, allocations: 40.19 kB / 0.4986 GB, free: 14.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.101e-05/0.4607, allocations: 68 kB / 0.4987 GB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005697/0.4613, allocations: 200.7 kB / 0.4989 GB, free: 14.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00236/0.4637, allocations: 0.7252 MB / 0.4996 GB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003042/0.4667, allocations: 2.699 MB / 0.5022 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002521/0.4693, allocations: 165.9 kB / 0.5024 GB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004129/0.4697, allocations: 196.7 kB / 0.5026 GB, free: 10.41 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 (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.002416/0.4721, allocations: 1.437 MB / 0.504 GB, free: 8.965 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000381/0.4725, allocations: 185.6 kB / 0.5041 GB, free: 8.781 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002794/0.4753, allocations: 1.619 MB / 0.5057 GB, free: 7.148 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001024/0.4754, allocations: 23.98 kB / 0.5057 GB, free: 7.125 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.4754, allocations: 0 / 0.5057 GB, free: 7.125 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.331e-05/0.4754, allocations: 7.969 kB / 0.5057 GB, free: 7.117 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00836/0.4838, allocations: 4.884 MB / 0.5105 GB, free: 2.141 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.646e-06/0.4838, allocations: 4 kB / 0.5105 GB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006362/0.4845, allocations: 159.8 kB / 0.5107 GB, free: 1.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003491/0.4848, allocations: 120.1 kB / 0.5108 GB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.209e-05/0.4849, allocations: 24 kB / 0.5108 GB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002218/0.4871, allocations: 2.169 MB / 0.5129 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.4872, allocations: 4 kB / 0.5129 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003762/0.4909, allocations: 2.548 MB / 0.5154 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005129/0.4915, allocations: 262.8 kB / 0.5157 GB, free: 12.65 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003352/0.4918, allocations: 27.92 kB / 0.5157 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007564/0.4926, allocations: 56 kB / 0.5157 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000131/0.4927, allocations: 64.86 kB / 0.5158 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.752e-05/0.4928, allocations: 43.19 kB / 0.5159 GB, free: 12.47 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002495/0.4953, allocations: 1.468 MB / 0.5173 GB, free: 10.98 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4953, allocations: 0 / 0.5173 GB, free: 10.98 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002523/0.4978, allocations: 0.5703 MB / 0.5178 GB, free: 10.41 MB / 398.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.004039/0.5019, allocations: 3.177 MB / 0.5209 GB, free: 7.168 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005835/0.5077, allocations: 3.461 MB / 0.5243 GB, free: 3.715 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.123e-06/0.5078, allocations: 3.938 kB / 0.5243 GB, free: 3.711 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001166/0.5089, allocations: 0.8323 MB / 0.5251 GB, free: 2.863 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002096/0.511, allocations: 339.9 kB / 0.5255 GB, free: 2.555 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03785/0.5489, allocations: 25.1 MB / 0.55 GB, free: 6.309 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002255/0.5512, allocations: 2.356 MB / 0.5523 GB, free: 3.914 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002359/0.5536, allocations: 1.036 MB / 0.5533 GB, free: 2.875 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001335/0.5549, allocations: 1.097 MB / 0.5544 GB, free: 1.777 MB / 430.1 MB Notification: Performance of SimCode: time 8.42e-07/0.5549, allocations: 0 / 0.5544 GB, free: 1.777 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3253/0.8802, allocations: 40.22 MB / 0.5936 GB, free: 139.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.77, allocations: 4.312 kB / 0.5936 GB, free: 139.6 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)