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.001524/0.001524, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001829/0.001829, allocations: 191 kB / 16.14 MB, free: 6.707 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.466/1.466, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1694/0.1694, allocations: 9.101 MB / 299 MB, free: 1.875 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001154, allocations: 60.11 kB / 361.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1093, allocations: 51.44 MB / 412.8 MB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.2002/0.3095, allocations: 18.24 MB / 431 MB, free: 34.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00921/0.3188, allocations: 4.446 MB / 435.5 MB, free: 32.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004668/0.3235, allocations: 65.09 kB / 435.5 MB, free: 32.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008687/0.3244, allocations: 264 kB / 435.8 MB, free: 32.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003011/0.3274, allocations: 1.193 MB / 437 MB, free: 32.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000266/0.3277, allocations: 68.83 kB / 437.1 MB, free: 32.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002746/0.3305, allocations: 3.037 MB / 440.1 MB, free: 31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008148/0.3313, allocations: 0.6431 MB / 440.7 MB, free: 30.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000738/0.332, allocations: 0.637 MB / 441.4 MB, free: 30.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001131/0.3332, allocations: 1.124 MB / 442.5 MB, free: 30.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000239/0.3334, allocations: 115.4 kB / 442.6 MB, free: 30.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001238/0.3347, allocations: 0.7592 MB / 443.4 MB, free: 29.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007154/0.3354, allocations: 0.9862 MB / 444.3 MB, free: 29.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000826/0.3362, allocations: 1.278 MB / 445.6 MB, free: 28.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003063/0.3393, allocations: 4.147 MB / 449.8 MB, free: 27.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3393, allocations: 0 / 449.8 MB, free: 27.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3393, allocations: 0 / 449.8 MB, free: 27.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.269e-05/0.3394, allocations: 0 / 449.8 MB, free: 27.11 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.006672/0.3461, allocations: 3.358 MB / 453.1 MB, free: 25.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.3461, allocations: 10.06 kB / 453.1 MB, free: 25.31 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005605/0.3467, allocations: 487.2 kB / 453.6 MB, free: 25.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005693/0.3524, allocations: 1.709 MB / 455.3 MB, free: 24.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002228/0.3547, allocations: 1.196 MB / 456.5 MB, free: 24.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.712e-05/0.3548, allocations: 120.5 kB / 456.6 MB, free: 23.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00036/0.3551, allocations: 161.4 kB / 456.8 MB, free: 23.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01117/0.3663, allocations: 7.209 MB / 464 MB, free: 20.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001326/0.3665, allocations: 18.78 kB / 464 MB, free: 20.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007196/0.3672, allocations: 76.91 kB / 464.1 MB, free: 20.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003328/0.3706, allocations: 1.736 MB / 465.8 MB, free: 20.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01539/0.386, allocations: 6.587 MB / 472.4 MB, free: 18.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03359/0.4196, allocations: 21.18 MB / 493.6 MB, free: 3.418 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003907/0.4236, allocations: 2.018 MB / 495.6 MB, free: 1.289 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001037/0.4246, allocations: 0.6803 MB / 496.3 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005925/0.4306, allocations: 3.278 MB / 499.6 MB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.232e-05/0.4307, allocations: 39.22 kB / 499.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=106): time 3.938e-06/0.4307, allocations: 0 / 499.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.01249/0.4432, allocations: 5.528 MB / 0.4933 GB, free: 7.391 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.087e-05/0.4433, allocations: 72.33 kB / 0.4934 GB, free: 7.309 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004235/0.4475, allocations: 2.266 MB / 0.4956 GB, free: 4.996 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001153/0.4477, allocations: 41.7 kB / 0.4956 GB, free: 4.949 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001547/0.4492, allocations: 1.829 MB / 0.4974 GB, free: 3.09 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005466/0.4498, allocations: 457.9 kB / 0.4979 GB, free: 2.637 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001131/0.4509, allocations: 0.6667 MB / 0.4985 GB, free: 1.961 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.451, allocations: 309.1 kB / 0.4988 GB, free: 1.656 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001917/0.453, allocations: 1.096 MB / 0.4999 GB, free: 0.5586 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003226/0.4562, allocations: 2.958 MB / 0.5028 GB, free: 12.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005097/0.4613, allocations: 4.381 MB / 0.507 GB, free: 7.383 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.245e-05/0.4614, allocations: 16 kB / 0.5071 GB, free: 7.367 MB / 382.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.007174/0.4686, allocations: 4.144 MB / 0.5111 GB, free: 3.211 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.63e-05/0.4686, allocations: 32.94 kB / 0.5111 GB, free: 3.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.909e-05/0.4687, allocations: 64 kB / 0.5112 GB, free: 3.117 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005464/0.4693, allocations: 212.7 kB / 0.5114 GB, free: 2.906 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002217/0.4715, allocations: 0.7213 MB / 0.5121 GB, free: 2.184 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003049/0.4746, allocations: 2.472 MB / 0.5145 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002684/0.4773, allocations: 168 kB / 0.5147 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004434/0.4777, allocations: 196 kB / 0.5149 GB, free: 15.21 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.002752/0.4805, allocations: 1.426 MB / 0.5163 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004478/0.481, allocations: 185.6 kB / 0.5164 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003119/0.4841, allocations: 1.615 MB / 0.518 GB, free: 11.97 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001097/0.4842, allocations: 31.92 kB / 0.518 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/0.4842, allocations: 0 / 0.518 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/0.4842, allocations: 8.625 kB / 0.518 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01021/0.4945, allocations: 4.883 MB / 0.5228 GB, free: 6.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-05/0.4945, allocations: 4 kB / 0.5228 GB, free: 6.926 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006678/0.4952, allocations: 159.7 kB / 0.523 GB, free: 6.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003616/0.4956, allocations: 117.1 kB / 0.5231 GB, free: 6.652 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.345e-05/0.4957, allocations: 28.06 kB / 0.5231 GB, free: 6.625 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002222/0.4979, allocations: 2.005 MB / 0.5251 GB, free: 4.484 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.4979, allocations: 4 kB / 0.5251 GB, free: 4.48 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00411/0.502, allocations: 2.552 MB / 0.5276 GB, free: 1.871 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007764/0.5028, allocations: 266.8 kB / 0.5278 GB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005124/0.5034, allocations: 20 kB / 0.5278 GB, free: 1.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009458/0.5043, allocations: 55.92 kB / 0.5279 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/0.5045, allocations: 76.84 kB / 0.528 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.577e-05/0.5046, allocations: 32 kB / 0.528 GB, free: 1.41 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003464/0.508, allocations: 1.472 MB / 0.5294 GB, free: 15.91 MB / 414.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.5081, allocations: 0 / 0.5294 GB, free: 15.91 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003862/0.5119, allocations: 0.5679 MB / 0.53 GB, free: 15.35 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.004762/0.5167, allocations: 3.183 MB / 0.5331 GB, free: 12.1 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00465/0.5214, allocations: 2.63 MB / 0.5357 GB, free: 9.477 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.698e-06/0.5214, allocations: 4 kB / 0.5357 GB, free: 9.473 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001256/0.5227, allocations: 0.8291 MB / 0.5365 GB, free: 8.629 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002317/0.525, allocations: 318.7 kB / 0.5368 GB, free: 8.324 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04753/0.5726, allocations: 26.37 MB / 0.5625 GB, free: 10.79 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003216/0.5758, allocations: 2.362 MB / 0.5648 GB, free: 8.391 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002754/0.5786, allocations: 1.048 MB / 0.5659 GB, free: 7.34 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001729/0.5803, allocations: 1.097 MB / 0.5669 GB, free: 6.242 MB / 446.1 MB Notification: Performance of SimCode: time 8.41e-07/0.5804, allocations: 0 / 0.5669 GB, free: 6.242 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2309/0.8112, allocations: 39.39 MB / 0.6054 GB, free: 139.3 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001229/0.8114, allocations: 199 kB / 0.6056 GB, free: 139 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.507/3.318, allocations: 0 / 0.6056 GB, free: 139 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)