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.0007654/0.0007654, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.004849/0.004849, allocations: 171.9 kB / 16.27 MB, free: 6.648 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.233/1.233, allocations: 223.2 MB / 240.3 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1478/0.1478, allocations: 9.108 MB / 300.5 MB, free: 2.707 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002799/0.00028, allocations: 8 kB / 363.8 MB, free: 12.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08623/0.08652, allocations: 52.43 MB / 416.2 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.1687/0.2553, allocations: 17.58 MB / 433.8 MB, free: 33.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006601/0.2619, allocations: 4.409 MB / 438.2 MB, free: 31.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001946/0.2639, allocations: 63.44 kB / 438.3 MB, free: 31.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005901/0.2645, allocations: 267 kB / 438.5 MB, free: 31.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002043/0.2665, allocations: 1.188 MB / 439.7 MB, free: 31.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002151/0.2668, allocations: 66.69 kB / 439.8 MB, free: 31.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001938/0.2687, allocations: 3.043 MB / 442.8 MB, free: 30.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006276/0.2694, allocations: 0.647 MB / 443.5 MB, free: 30.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005142/0.2699, allocations: 0.6202 MB / 444.1 MB, free: 30.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009507/0.2708, allocations: 1.127 MB / 445.2 MB, free: 29.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001792/0.271, allocations: 110.2 kB / 445.3 MB, free: 29.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009025/0.2719, allocations: 0.752 MB / 446.1 MB, free: 29.6 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005445/0.2725, allocations: 1 MB / 447.1 MB, free: 29.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007074/0.2732, allocations: 1.294 MB / 448.4 MB, free: 28.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002387/0.2756, allocations: 4.053 MB / 452.4 MB, free: 27.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.2756, allocations: 0 / 452.4 MB, free: 27.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.2756, allocations: 1.594 kB / 452.4 MB, free: 27.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.547e-05/0.2757, allocations: 0 / 452.4 MB, free: 27.08 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.004837/0.2805, allocations: 2.811 MB / 455.3 MB, free: 25.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.2806, allocations: 10.38 kB / 455.3 MB, free: 25.61 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000514/0.2811, allocations: 484.6 kB / 455.7 MB, free: 25.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005725/0.2868, allocations: 1.758 MB / 457.5 MB, free: 25.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00163/0.2885, allocations: 1.199 MB / 458.7 MB, free: 24.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.143e-05/0.2886, allocations: 122.4 kB / 458.8 MB, free: 24.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002971/0.2889, allocations: 161.3 kB / 459 MB, free: 24.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008498/0.2974, allocations: 7.199 MB / 466.2 MB, free: 21.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.754e-05/0.2975, allocations: 19.17 kB / 466.2 MB, free: 21.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002385/0.2977, allocations: 76.88 kB / 466.3 MB, free: 20.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002898/0.3006, allocations: 1.739 MB / 468 MB, free: 20.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0119/0.3125, allocations: 6.593 MB / 474.6 MB, free: 18.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02417/0.3367, allocations: 21.19 MB / 495.8 MB, free: 3.402 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003149/0.3399, allocations: 2.023 MB / 497.8 MB, free: 1.266 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007531/0.3407, allocations: 0.6675 MB / 498.5 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003873/0.3446, allocations: 3.282 MB / 0.49 GB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.563e-05/0.3446, allocations: 47.22 kB / 0.49 GB, free: 12.99 MB / 366.1 MB Notification: Performance of pre-optimization done (n=106): time 2.384e-06/0.3446, allocations: 0 / 0.49 GB, free: 12.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.01003/0.3547, allocations: 5.528 MB / 0.4954 GB, free: 7.367 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.248e-05/0.3547, allocations: 64.41 kB / 0.4955 GB, free: 7.293 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002779/0.3575, allocations: 2.273 MB / 0.4977 GB, free: 4.973 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.925e-05/0.3576, allocations: 41.7 kB / 0.4978 GB, free: 4.926 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001028/0.3586, allocations: 1.829 MB / 0.4995 GB, free: 3.066 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003286/0.359, allocations: 461.9 kB / 0.5 GB, free: 2.609 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003027/0.3593, allocations: 272.8 kB / 0.5002 GB, free: 2.336 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.793e-05/0.3594, allocations: 305.1 kB / 0.5005 GB, free: 2.035 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001627/0.361, allocations: 1.096 MB / 0.5016 GB, free: 0.9375 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002574/0.3636, allocations: 2.966 MB / 0.5045 GB, free: 13.05 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004383/0.368, allocations: 4.375 MB / 0.5088 GB, free: 7.762 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.712e-05/0.368, allocations: 20 kB / 0.5088 GB, free: 7.742 MB / 382.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.00596/0.374, allocations: 4.138 MB / 0.5128 GB, free: 3.594 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.497e-05/0.3741, allocations: 32 kB / 0.5129 GB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.595e-05/0.3741, allocations: 68 kB / 0.5129 GB, free: 3.496 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004433/0.3746, allocations: 205.3 kB / 0.5131 GB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001918/0.3765, allocations: 0.7291 MB / 0.5138 GB, free: 2.562 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002594/0.3791, allocations: 2.47 MB / 0.5162 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001905/0.381, allocations: 167.9 kB / 0.5164 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002395/0.3813, allocations: 196 kB / 0.5166 GB, free: 15.59 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.001963/0.3832, allocations: 1.425 MB / 0.518 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002141/0.3835, allocations: 189.6 kB / 0.5182 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003187/0.3867, allocations: 1.619 MB / 0.5197 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001458/0.3868, allocations: 27.97 kB / 0.5198 GB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/0.3868, allocations: 7.938 kB / 0.5198 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-05/0.3869, allocations: 3.984 kB / 0.5198 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01186/0.3987, allocations: 4.881 MB / 0.5246 GB, free: 7.301 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.351e-05/0.3988, allocations: 4 kB / 0.5246 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000994/0.3998, allocations: 155.8 kB / 0.5247 GB, free: 7.145 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004873/0.4003, allocations: 116.8 kB / 0.5248 GB, free: 7.027 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.666e-05/0.4004, allocations: 28.33 kB / 0.5248 GB, free: 7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003027/0.4034, allocations: 2 MB / 0.5268 GB, free: 4.863 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.276e-06/0.4035, allocations: 7.938 kB / 0.5268 GB, free: 4.855 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00561/0.4091, allocations: 2.544 MB / 0.5293 GB, free: 2.254 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007735/0.4099, allocations: 286.6 kB / 0.5296 GB, free: 1.953 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004225/0.4103, allocations: 20 kB / 0.5296 GB, free: 1.934 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001193/0.4115, allocations: 59.91 kB / 0.5296 GB, free: 1.875 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001865/0.4117, allocations: 64.86 kB / 0.5297 GB, free: 1.812 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001134/0.4118, allocations: 32 kB / 0.5297 GB, free: 1.781 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003607/0.4155, allocations: 1.476 MB / 0.5312 GB, free: 288 kB / 398.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.4155, allocations: 0 / 0.5312 GB, free: 288 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.003921/0.4194, allocations: 0.568 MB / 0.5317 GB, free: 15.71 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.006053/0.4255, allocations: 3.182 MB / 0.5348 GB, free: 12.46 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006156/0.4316, allocations: 2.642 MB / 0.5374 GB, free: 9.828 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.4317, allocations: 4.25 kB / 0.5374 GB, free: 9.824 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001789/0.4335, allocations: 0.8203 MB / 0.5382 GB, free: 8.988 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003554/0.437, allocations: 317 kB / 0.5385 GB, free: 8.68 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04099/0.4781, allocations: 26.46 MB / 0.5644 GB, free: 11.06 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00274/0.4808, allocations: 2.353 MB / 0.5667 GB, free: 8.672 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002474/0.4833, allocations: 1.04 MB / 0.5677 GB, free: 7.629 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001447/0.4848, allocations: 1.105 MB / 0.5688 GB, free: 6.523 MB / 446.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4848, allocations: 3.938 kB / 0.5688 GB, free: 6.52 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2098/0.6946, allocations: 39.03 MB / 0.6069 GB, free: 117.9 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001318/0.6948, allocations: 203 kB / 0.6071 GB, free: 117.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.429/3.123, allocations: 5.219 kB / 0.6071 GB, free: 117.7 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/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)