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.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/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.0007452/0.0007455, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001017/0.001017, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.292/1.292, allocations: 223.3 MB / 240 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1917/0.1917, allocations: 9.11 MB / 300.2 MB, free: 2.785 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003169/0.0003171, allocations: 12 kB / 363.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1081, allocations: 52.43 MB / 415.6 MB, free: 8.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.2156/0.3238, allocations: 28.03 MB / 443.7 MB, free: 28.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01328/0.3371, allocations: 6.535 MB / 450.2 MB, free: 23.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006086/0.3432, allocations: 110.8 kB / 450.3 MB, free: 23.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00499/0.3483, allocations: 1.378 MB / 451.7 MB, free: 23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01186/0.3602, allocations: 4.847 MB / 456.5 MB, free: 20.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001392/0.3616, allocations: 148.4 kB / 456.7 MB, free: 20.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003087/0.3647, allocations: 2.757 MB / 459.4 MB, free: 19.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009606/0.3657, allocations: 0.872 MB / 460.3 MB, free: 19.42 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008215/0.3665, allocations: 0.7968 MB / 461.1 MB, free: 19.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001199/0.3677, allocations: 1.284 MB / 462.4 MB, free: 18.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002147/0.3679, allocations: 135.2 kB / 462.5 MB, free: 18.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001036/0.369, allocations: 0.6622 MB / 463.2 MB, free: 18.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007237/0.3697, allocations: 1.103 MB / 464.3 MB, free: 18.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004258/0.3701, allocations: 0.6433 MB / 464.9 MB, free: 17.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002925/0.3731, allocations: 3.734 MB / 468.7 MB, free: 16.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3731, allocations: 0 / 468.7 MB, free: 16.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.3731, allocations: 0 / 468.7 MB, free: 16.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.837e-05/0.3732, allocations: 4 kB / 468.7 MB, free: 16.87 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.007914/0.3811, allocations: 3.673 MB / 472.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/0.3812, allocations: 13.41 kB / 472.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008361/0.382, allocations: 0.5494 MB / 472.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006385/0.3884, allocations: 1.807 MB / 474.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002355/0.3908, allocations: 1.318 MB / 476 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001255/0.3909, allocations: 152.8 kB / 476.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003824/0.3913, allocations: 197.2 kB / 476.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01306/0.4044, allocations: 8.187 MB / 484.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.834e-05/0.4045, allocations: 16.81 kB / 484.6 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002822/0.4047, allocations: 92.95 kB / 484.7 MB, free: 9.938 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002855/0.4076, allocations: 1.921 MB / 486.6 MB, free: 9.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01382/0.4214, allocations: 7.408 MB / 494 MB, free: 5.199 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0315/0.453, allocations: 24.91 MB / 0.5067 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00481/0.4578, allocations: 2.408 MB / 0.5091 GB, free: 9.262 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001246/0.4591, allocations: 0.8598 MB / 0.5099 GB, free: 8.402 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006211/0.4653, allocations: 4.45 MB / 0.5143 GB, free: 3.535 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.919e-05/0.4654, allocations: 43.56 kB / 0.5143 GB, free: 3.484 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 5.219e-06/0.4654, allocations: 0 / 0.5143 GB, free: 3.484 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.01041/0.4758, allocations: 4.66 MB / 0.5189 GB, free: 14.82 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.406e-05/0.4759, allocations: 60.41 kB / 0.5189 GB, free: 14.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004103/0.48, allocations: 2.476 MB / 0.5213 GB, free: 12.23 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.929e-05/0.4801, allocations: 49.7 kB / 0.5214 GB, free: 12.18 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001577/0.4817, allocations: 2.078 MB / 0.5234 GB, free: 10.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005107/0.4822, allocations: 0.5282 MB / 0.5239 GB, free: 9.535 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000194/0.4824, allocations: 68 kB / 0.524 GB, free: 9.469 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002993/0.4827, allocations: 470 kB / 0.5244 GB, free: 9.004 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002179/0.4849, allocations: 1.233 MB / 0.5256 GB, free: 7.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003634/0.4886, allocations: 3.29 MB / 0.5289 GB, free: 3.469 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003192/0.4918, allocations: 2.011 MB / 0.5308 GB, free: 1.457 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.883e-05/0.4919, allocations: 20 kB / 0.5308 GB, free: 1.438 MB / 398.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.008176/0.5, allocations: 4.609 MB / 0.5353 GB, free: 12.82 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.101e-05/0.5001, allocations: 39.98 kB / 0.5354 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001051/0.5002, allocations: 72 kB / 0.5355 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006029/0.5009, allocations: 236.7 kB / 0.5357 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00257/0.5034, allocations: 0.8386 MB / 0.5365 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003188/0.5066, allocations: 2.623 MB / 0.5391 GB, free: 8.875 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002615/0.5093, allocations: 188 kB / 0.5392 GB, free: 8.691 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004172/0.5097, allocations: 224 kB / 0.5395 GB, free: 8.473 MB / 414.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002879/0.5126, allocations: 1.58 MB / 0.541 GB, free: 6.875 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004352/0.513, allocations: 213.2 kB / 0.5412 GB, free: 6.664 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003535/0.5166, allocations: 1.94 MB / 0.5431 GB, free: 4.715 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001107/0.5167, allocations: 27.98 kB / 0.5431 GB, free: 4.688 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/0.5167, allocations: 0 / 0.5431 GB, free: 4.688 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.432e-05/0.5168, allocations: 4.359 kB / 0.5431 GB, free: 4.684 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01151/0.5283, allocations: 5.859 MB / 0.5488 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-05/0.5283, allocations: 4 kB / 0.5488 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008613/0.5292, allocations: 219.7 kB / 0.5491 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003551/0.5296, allocations: 136.7 kB / 0.5492 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.875e-05/0.5297, allocations: 27.98 kB / 0.5492 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002428/0.5321, allocations: 2.285 MB / 0.5514 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.5321, allocations: 4 kB / 0.5514 GB, free: 11.87 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004438/0.5366, allocations: 3.071 MB / 0.5544 GB, free: 8.734 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007341/0.5373, allocations: 294.4 kB / 0.5547 GB, free: 8.426 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004815/0.5378, allocations: 27.98 kB / 0.5548 GB, free: 8.398 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009564/0.5388, allocations: 79.94 kB / 0.5548 GB, free: 8.32 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002003/0.539, allocations: 84.81 kB / 0.5549 GB, free: 8.238 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.987e-05/0.5391, allocations: 43.98 kB / 0.555 GB, free: 8.195 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002945/0.542, allocations: 1.588 MB / 0.5565 GB, free: 6.59 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5421, allocations: 4 kB / 0.5565 GB, free: 6.586 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003508/0.5456, allocations: 0.6563 MB / 0.5572 GB, free: 5.93 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005037/0.5506, allocations: 3.706 MB / 0.5608 GB, free: 2.148 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0056/0.5562, allocations: 3.013 MB / 0.5637 GB, free: 15.14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.5563, allocations: 0 / 0.5637 GB, free: 15.14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001483/0.5577, allocations: 1.013 MB / 0.5647 GB, free: 14.12 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002159/0.5599, allocations: 370.3 kB / 0.5651 GB, free: 13.76 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2401/0.8, allocations: 20.25 MB / 0.5848 GB, free: 102.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002921/0.803, allocations: 2.588 MB / 0.5874 GB, free: 101.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003265/0.8062, allocations: 1.135 MB / 0.5885 GB, free: 101.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001635/0.8079, allocations: 1.303 MB / 0.5897 GB, free: 101.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.152e-06/0.8079, allocations: 2.812 kB / 0.5897 GB, free: 101.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08794/0.8959, allocations: 50.68 MB / 0.6392 GB, free: 76.52 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001276/0.896, allocations: 193.9 kB / 0.6394 GB, free: 76.28 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.553/3.449, allocations: 3.938 kB / 0.6394 GB, free: 76.27 MB / 446.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_PendulumExcited_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PendulumExcited.fmu > PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe 2>&1) Environment - environmentSimulation: