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.004706/0.004706, allocations: 97.69 kB / 15.73 MB, free: 5.996 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.001285/0.001285, allocations: 186.3 kB / 16.67 MB, free: 5.926 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1627/0.1627, allocations: 9.098 MB / 299.6 MB, free: 1.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001871/0.001871, allocations: 67.89 kB / 414.1 MB, free: 8.848 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2815/0.2834, allocations: 51.42 MB / 465.6 MB, free: 17.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.006691/0.2901, allocations: 7.012 MB / 472.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0044/0.2945, allocations: 2.352 MB / 474.9 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009133/0.2955, allocations: 28.62 kB / 475 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007787/0.2963, allocations: 315.5 kB / 475.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003153/0.2995, allocations: 1.261 MB / 476.5 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003724/0.2998, allocations: 83.59 kB / 476.6 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003134/0.303, allocations: 2.158 MB / 478.8 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001132/0.3041, allocations: 0.7292 MB / 479.5 MB, free: 8.809 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001159/0.3053, allocations: 0.7478 MB / 480.2 MB, free: 8.371 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001298/0.3066, allocations: 1.128 MB / 481.4 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000377/0.307, allocations: 201 kB / 481.6 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001809/0.3088, allocations: 0.7996 MB / 482.4 MB, free: 7.355 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001079/0.3099, allocations: 1.065 MB / 483.4 MB, free: 6.734 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001183/0.3111, allocations: 1.357 MB / 484.8 MB, free: 5.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00533/0.3164, allocations: 4.497 MB / 489.3 MB, free: 2.566 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3165, allocations: 0 / 489.3 MB, free: 2.566 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.3165, allocations: 1.688 kB / 489.3 MB, free: 2.566 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001199/0.3166, allocations: 0 / 489.3 MB, free: 2.566 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.008211/0.3248, allocations: 3.425 MB / 492.7 MB, free: 148 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/0.3249, allocations: 9.656 kB / 492.7 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007768/0.3257, allocations: 488.5 kB / 493.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006676/0.3324, allocations: 1.735 MB / 494.9 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00292/0.3353, allocations: 1.202 MB / 496.1 MB, free: 13.49 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001385/0.3355, allocations: 119.3 kB / 496.3 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003891/0.3359, allocations: 164 kB / 496.4 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01248/0.3483, allocations: 7.201 MB / 0.4918 GB, free: 5.727 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.435e-05/0.3484, allocations: 31.75 kB / 0.4918 GB, free: 5.695 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003326/0.3488, allocations: 75.88 kB / 0.4919 GB, free: 5.621 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003095/0.3519, allocations: 1.738 MB / 0.4936 GB, free: 3.879 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01373/0.3656, allocations: 6.58 MB / 0.5 GB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03341/0.3991, allocations: 21.16 MB / 0.5207 GB, free: 7.695 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004154/0.4033, allocations: 2.023 MB / 0.5227 GB, free: 5.555 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001115/0.4044, allocations: 0.6814 MB / 0.5233 GB, free: 4.875 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005232/0.4097, allocations: 3.274 MB / 0.5265 GB, free: 1.328 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.403e-05/0.4097, allocations: 47.16 kB / 0.5266 GB, free: 1.273 MB / 398.1 MB Notification: Performance of pre-optimization done (n=106): time 3.176e-06/0.4097, allocations: 0 / 0.5266 GB, free: 1.273 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.01151/0.4213, allocations: 5.567 MB / 0.532 GB, free: 11.61 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.685e-05/0.4213, allocations: 60.41 kB / 0.5321 GB, free: 11.54 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003312/0.4246, allocations: 2.278 MB / 0.5343 GB, free: 9.219 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.661e-05/0.4248, allocations: 45.7 kB / 0.5343 GB, free: 9.168 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001377/0.4261, allocations: 1.904 MB / 0.5362 GB, free: 7.242 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004461/0.4266, allocations: 484.2 kB / 0.5367 GB, free: 6.766 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009474/0.4276, allocations: 0.6634 MB / 0.5373 GB, free: 6.094 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.4277, allocations: 305.1 kB / 0.5376 GB, free: 5.793 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00178/0.4295, allocations: 1.099 MB / 0.5387 GB, free: 4.691 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003268/0.4327, allocations: 2.97 MB / 0.5416 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005622/0.4384, allocations: 4.369 MB / 0.5458 GB, free: 11.52 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.07e-05/0.4385, allocations: 24 kB / 0.5459 GB, free: 11.49 MB / 430.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.007589/0.4461, allocations: 4.144 MB / 0.5499 GB, free: 7.344 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.204e-05/0.4461, allocations: 36.06 kB / 0.55 GB, free: 7.309 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-05/0.4462, allocations: 68.09 kB / 0.55 GB, free: 7.242 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005042/0.4467, allocations: 204.7 kB / 0.5502 GB, free: 7.039 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002185/0.4489, allocations: 0.7291 MB / 0.5509 GB, free: 6.309 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003373/0.4523, allocations: 2.706 MB / 0.5536 GB, free: 3.457 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002395/0.4547, allocations: 159.9 kB / 0.5537 GB, free: 3.301 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003767/0.4551, allocations: 208 kB / 0.5539 GB, free: 3.098 MB / 430.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.003469/0.4586, allocations: 1.425 MB / 0.5553 GB, free: 1.664 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004899/0.4591, allocations: 198.7 kB / 0.5555 GB, free: 1.469 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003189/0.4623, allocations: 1.619 MB / 0.5571 GB, free: 15.83 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001008/0.4624, allocations: 23.98 kB / 0.5571 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.4624, allocations: 0 / 0.5571 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.239e-05/0.4624, allocations: 3.984 kB / 0.5571 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008441/0.4709, allocations: 4.867 MB / 0.5619 GB, free: 10.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.437e-06/0.4709, allocations: 8.031 kB / 0.5619 GB, free: 10.81 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006543/0.4716, allocations: 159.8 kB / 0.562 GB, free: 10.65 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003469/0.472, allocations: 113 kB / 0.5621 GB, free: 10.54 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.018e-05/0.472, allocations: 27.92 kB / 0.5622 GB, free: 10.51 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002321/0.4744, allocations: 2.172 MB / 0.5643 GB, free: 8.199 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.4744, allocations: 4.062 kB / 0.5643 GB, free: 8.195 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00391/0.4783, allocations: 2.557 MB / 0.5668 GB, free: 5.582 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006143/0.4789, allocations: 275.9 kB / 0.567 GB, free: 5.293 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002152/0.4792, allocations: 31.94 kB / 0.5671 GB, free: 5.262 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006599/0.4798, allocations: 55.92 kB / 0.5671 GB, free: 5.207 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001392/0.48, allocations: 64.86 kB / 0.5672 GB, free: 5.141 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.932e-05/0.4801, allocations: 35.98 kB / 0.5672 GB, free: 5.105 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002321/0.4824, allocations: 1.476 MB / 0.5687 GB, free: 3.605 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4824, allocations: 4 kB / 0.5687 GB, free: 3.602 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002514/0.4849, allocations: 0.5662 MB / 0.5692 GB, free: 3.035 MB / 446.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.004316/0.4892, allocations: 3.187 MB / 0.5723 GB, free: 15.79 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004951/0.4942, allocations: 2.648 MB / 0.5749 GB, free: 13.14 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.107e-05/0.4942, allocations: 4.438 kB / 0.5749 GB, free: 13.13 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001213/0.4955, allocations: 0.828 MB / 0.5757 GB, free: 12.29 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001836/0.4973, allocations: 325.5 kB / 0.576 GB, free: 11.98 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2592/0.7565, allocations: 23.65 MB / 0.5991 GB, free: 108.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002971/0.7596, allocations: 2.353 MB / 0.6014 GB, free: 107.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002517/0.7621, allocations: 1.036 MB / 0.6024 GB, free: 107.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001387/0.7635, allocations: 1.095 MB / 0.6035 GB, free: 106.7 MB / 462.1 MB Notification: Performance of SimCode: time 1.102e-06/0.7635, allocations: 4 kB / 0.6035 GB, free: 106.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07327/0.8368, allocations: 39.43 MB / 0.642 GB, free: 77.95 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.27/15.11, allocations: 7.875 kB / 0.642 GB, free: 77.94 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)