Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.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.PendulumExcited,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PendulumExcited",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PendulumExcited,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PendulumExcited",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.001838/0.001838, allocations: 108 kB / 15.6 MB, free: 132 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.002585/0.002585, allocations: 198.5 kB / 16.54 MB, free: 6.672 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.43/1.43, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1567/0.1567, allocations: 9.102 MB / 299.5 MB, free: 1.789 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 59.91 kB / 362 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1073, allocations: 51.43 MB / 413.5 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.009195/0.1166, allocations: 8.53 MB / 422 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2135/0.3301, allocations: 2.591 MB / 424.6 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001101/0.3313, allocations: 32.19 kB / 424.6 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008622/0.3322, allocations: 367.9 kB / 425 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002788/0.335, allocations: 1.382 MB / 426.4 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003665/0.3354, allocations: 153.3 kB / 426.5 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002269/0.3377, allocations: 2.511 MB / 429 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001061/0.3387, allocations: 1.007 MB / 430 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009292/0.3397, allocations: 0.9191 MB / 431 MB, free: 35.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001181/0.3409, allocations: 1.315 MB / 432.3 MB, free: 35.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002969/0.3412, allocations: 238.9 kB / 432.5 MB, free: 35.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001258/0.3425, allocations: 0.8334 MB / 433.3 MB, free: 34.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007913/0.3433, allocations: 1.23 MB / 434.6 MB, free: 34.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009798/0.3442, allocations: 1.584 MB / 436.2 MB, free: 33.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003678/0.3479, allocations: 4.829 MB / 441 MB, free: 31.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.348, allocations: 2.844 kB / 441 MB, free: 31.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.348, allocations: 0 / 441 MB, free: 31.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.273e-05/0.348, allocations: 0 / 441 MB, free: 31.55 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: 1181 * Number of variables: 1181 Notification: Performance of Generate backend data structure: time 0.008348/0.3564, allocations: 4.277 MB / 445.3 MB, free: 29.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.3564, allocations: 9.281 kB / 445.3 MB, free: 29.58 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005347/0.357, allocations: 0.5449 MB / 445.8 MB, free: 29.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005895/0.3629, allocations: 1.763 MB / 447.6 MB, free: 29.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002117/0.365, allocations: 1.345 MB / 448.9 MB, free: 28.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.326e-05/0.3651, allocations: 146.4 kB / 449.1 MB, free: 28.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003361/0.3655, allocations: 199.1 kB / 449.3 MB, free: 28.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01028/0.3758, allocations: 8.191 MB / 457.5 MB, free: 24.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.415e-05/0.3759, allocations: 23.56 kB / 457.5 MB, free: 24.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002917/0.3762, allocations: 91.56 kB / 457.6 MB, free: 24.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00327/0.3794, allocations: 1.92 MB / 459.5 MB, free: 24.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01572/0.3952, allocations: 7.425 MB / 466.9 MB, free: 21.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03786/0.4331, allocations: 24.91 MB / 491.8 MB, free: 3.809 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004691/0.4378, allocations: 2.41 MB / 494.2 MB, free: 1.277 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001175/0.4391, allocations: 0.8695 MB / 495.1 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006578/0.4457, allocations: 4.434 MB / 499.5 MB, free: 11.58 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.46e-05/0.4457, allocations: 39.56 kB / 499.6 MB, free: 11.53 MB / 366.1 MB Notification: Performance of pre-optimization done (n=130): time 4.619e-06/0.4457, allocations: 3.938 kB / 499.6 MB, free: 11.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=144): time 0.01128/0.457, allocations: 4.652 MB / 0.4924 GB, free: 6.879 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.472e-05/0.4571, allocations: 68.39 kB / 0.4925 GB, free: 6.801 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004432/0.4616, allocations: 2.484 MB / 0.4949 GB, free: 4.281 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.033e-05/0.4617, allocations: 45.7 kB / 0.4949 GB, free: 4.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001602/0.4633, allocations: 2.077 MB / 0.497 GB, free: 2.148 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005178/0.4638, allocations: 0.5353 MB / 0.4975 GB, free: 1.617 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001153/0.465, allocations: 0.7408 MB / 0.4982 GB, free: 0.8711 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.981e-05/0.4651, allocations: 305.1 kB / 0.4985 GB, free: 0.5703 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002208/0.4673, allocations: 1.235 MB / 0.4997 GB, free: 15.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003549/0.4709, allocations: 3.298 MB / 0.5029 GB, free: 11.03 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005855/0.4767, allocations: 4.886 MB / 0.5077 GB, free: 5.133 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.174e-05/0.4768, allocations: 20 kB / 0.5077 GB, free: 5.113 MB / 382.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.008172/0.485, allocations: 4.636 MB / 0.5123 GB, free: 484 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.583e-05/0.4851, allocations: 36 kB / 0.5123 GB, free: 448 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000122/0.4852, allocations: 72 kB / 0.5124 GB, free: 376 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006368/0.4859, allocations: 236.5 kB / 0.5126 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002566/0.4885, allocations: 0.8227 MB / 0.5134 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003371/0.4918, allocations: 2.871 MB / 0.5162 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002768/0.4946, allocations: 187.9 kB / 0.5164 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000412/0.495, allocations: 218.7 kB / 0.5166 GB, free: 11.9 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 329 * Number of states: 0 () * Number of discrete variables: 21 (worldForce.arrowTorque.twoHeadedArrow,worldForce.arrowTorque.headAtOrigin,worldForce.arrowForce.twoHeadedArrow,worldForce.arrowForce.headAtOrigin,cutForce.arrowForce.twoHeadedArrow,cutForce.arrowForce.headAtOrigin,worldForce.color[3],worldForce.color[2],worldForce.color[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],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 (445): * Single equations (assignments): 440 * 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,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003155/0.4982, allocations: 1.584 MB / 0.5181 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004946/0.4987, allocations: 213.2 kB / 0.5183 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003712/0.5024, allocations: 1.939 MB / 0.5202 GB, free: 8.148 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001149/0.5026, allocations: 23.98 kB / 0.5202 GB, free: 8.125 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.624e-05/0.5026, allocations: 7.938 kB / 0.5203 GB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.329e-05/0.5026, allocations: 3.984 kB / 0.5203 GB, free: 8.113 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01185/0.5145, allocations: 5.838 MB / 0.526 GB, free: 2.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/0.5145, allocations: 3.984 kB / 0.526 GB, free: 2.156 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008919/0.5154, allocations: 216.1 kB / 0.5262 GB, free: 1.945 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003885/0.5158, allocations: 140.6 kB / 0.5263 GB, free: 1.805 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.654e-05/0.5159, allocations: 31.98 kB / 0.5263 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00274/0.5187, allocations: 2.52 MB / 0.5288 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.5187, allocations: 4 kB / 0.5288 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004715/0.5234, allocations: 3.055 MB / 0.5318 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007728/0.5242, allocations: 294.3 kB / 0.5321 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005204/0.5247, allocations: 26.27 kB / 0.5321 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001096/0.5258, allocations: 71.84 kB / 0.5322 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002319/0.5261, allocations: 88.89 kB / 0.5322 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001/0.5262, allocations: 44.09 kB / 0.5323 GB, free: 11.46 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003146/0.5293, allocations: 1.611 MB / 0.5339 GB, free: 9.832 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5294, allocations: 0 / 0.5339 GB, free: 9.832 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003557/0.5329, allocations: 0.6504 MB / 0.5345 GB, free: 9.184 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (109): * Single equations (assignments): 104 * 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,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005178/0.5381, allocations: 3.702 MB / 0.5381 GB, free: 5.406 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007436/0.5456, allocations: 4.132 MB / 0.5421 GB, free: 1.289 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.295e-06/0.5456, allocations: 0 / 0.5421 GB, free: 1.289 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00154/0.5471, allocations: 1.018 MB / 0.5431 GB, free: 264 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002621/0.5498, allocations: 404.8 kB / 0.5435 GB, free: 15.89 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04774/0.5975, allocations: 28.74 MB / 0.5716 GB, free: 15.51 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004084/0.6017, allocations: 2.59 MB / 0.5741 GB, free: 12.89 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003059/0.6047, allocations: 1.137 MB / 0.5752 GB, free: 11.75 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002021/0.6068, allocations: 1.308 MB / 0.5765 GB, free: 10.44 MB / 462.1 MB Notification: Performance of SimCode: time 1.162e-06/0.6068, allocations: 0 / 0.5765 GB, free: 10.44 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2977/0.9045, allocations: 45.8 MB / 0.6212 GB, free: 136 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/12.93, allocations: 9.547 kB / 0.6212 GB, free: 136 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.PendulumExcited_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PlanarMechanics_PlanarMechanics_Examples_PendulumExcited.fmu > PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe 2>&1)