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.01502/0.01502, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.003441/0.003441, allocations: 194.2 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.486/2.486, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.07872/0.07872, allocations: 9.121 MB / 299.7 MB, free: 5.812 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001682/0.001682, allocations: 59.91 kB / 414.1 MB, free: 21.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.1397, allocations: 51.44 MB / 465.6 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.02402/0.1639, allocations: 8.526 MB / 474.1 MB, free: 9.598 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01044/0.1744, allocations: 2.601 MB / 476.7 MB, free: 6.988 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001828/0.1763, allocations: 31.94 kB / 476.7 MB, free: 6.957 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002423/0.1787, allocations: 373.6 kB / 477.1 MB, free: 6.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008238/0.1871, allocations: 1.408 MB / 478.5 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001222/0.1884, allocations: 167.7 kB / 478.7 MB, free: 5.012 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006823/0.1952, allocations: 2.525 MB / 481.2 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002764/0.1981, allocations: 0.9987 MB / 482.2 MB, free: 1.453 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002836/0.2009, allocations: 0.9222 MB / 483.1 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003919/0.2049, allocations: 1.323 MB / 484.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001281/0.2062, allocations: 236 kB / 484.7 MB, free: 14.97 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00391/0.2102, allocations: 0.8348 MB / 485.5 MB, free: 14.13 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002895/0.2131, allocations: 1.215 MB / 486.7 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005025/0.2182, allocations: 1.596 MB / 488.3 MB, free: 11.31 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0131/0.2313, allocations: 5.085 MB / 493.4 MB, free: 6.203 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.595e-05/0.2314, allocations: 4 kB / 493.4 MB, free: 6.199 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.999e-06/0.2315, allocations: 0 / 493.4 MB, free: 6.199 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000321/0.2318, allocations: 0 / 493.4 MB, free: 6.199 MB / 366.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.02458/0.2564, allocations: 4.363 MB / 497.8 MB, free: 1.766 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001299/0.2566, allocations: 8.031 kB / 497.8 MB, free: 1.758 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003948/0.2606, allocations: 0.5472 MB / 498.3 MB, free: 1.199 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01519/0.2758, allocations: 1.789 MB / 0.4884 GB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007024/0.2829, allocations: 1.351 MB / 0.4897 GB, free: 14.01 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003518/0.2833, allocations: 148 kB / 0.4898 GB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001571/0.2849, allocations: 203.9 kB / 0.49 GB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02715/0.3121, allocations: 8.188 MB / 0.498 GB, free: 5.117 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001974/0.3123, allocations: 19.81 kB / 0.4981 GB, free: 5.098 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001371/0.3137, allocations: 95.86 kB / 0.4981 GB, free: 5.004 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006427/0.3202, allocations: 1.919 MB / 0.5 GB, free: 3.082 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3904/0.7107, allocations: 7.421 MB / 0.5073 GB, free: 38.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06152/0.7723, allocations: 24.86 MB / 0.5315 GB, free: 22.6 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008491/0.7808, allocations: 2.411 MB / 0.5339 GB, free: 21.11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002539/0.7834, allocations: 0.8691 MB / 0.5347 GB, free: 20.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009728/0.7932, allocations: 4.434 MB / 0.5391 GB, free: 17.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.282e-05/0.7933, allocations: 55.05 kB / 0.5391 GB, free: 17.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 9.267e-06/0.7934, allocations: 3.516 kB / 0.5391 GB, free: 17.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.01971/0.8131, allocations: 4.695 MB / 0.5437 GB, free: 13.79 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.903e-05/0.8132, allocations: 64.41 kB / 0.5438 GB, free: 13.71 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005625/0.8188, allocations: 2.496 MB / 0.5462 GB, free: 11.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002911/0.8192, allocations: 45.7 kB / 0.5463 GB, free: 11.13 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001857/0.821, allocations: 2.159 MB / 0.5484 GB, free: 8.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008504/0.8219, allocations: 0.5577 MB / 0.5489 GB, free: 8.43 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00156/0.8235, allocations: 0.7504 MB / 0.5496 GB, free: 7.676 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.569e-05/0.8236, allocations: 305.1 kB / 0.5499 GB, free: 7.375 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003553/0.8271, allocations: 1.233 MB / 0.5511 GB, free: 6.141 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005145/0.8323, allocations: 3.304 MB / 0.5544 GB, free: 1.832 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01222/0.8446, allocations: 4.89 MB / 0.5591 GB, free: 11.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001098/0.8448, allocations: 20 kB / 0.5592 GB, free: 11.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.01835/0.8632, allocations: 4.65 MB / 0.5637 GB, free: 7.258 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.804e-05/0.8633, allocations: 39.94 kB / 0.5637 GB, free: 7.219 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001382/0.8635, allocations: 72 kB / 0.5638 GB, free: 7.148 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009052/0.8644, allocations: 229.7 kB / 0.564 GB, free: 6.922 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004348/0.8688, allocations: 0.8266 MB / 0.5648 GB, free: 6.094 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005435/0.8742, allocations: 2.857 MB / 0.5676 GB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005251/0.8795, allocations: 183.9 kB / 0.5678 GB, free: 2.918 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009563/0.8805, allocations: 220 kB / 0.568 GB, free: 2.703 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.006164/0.8867, allocations: 1.584 MB / 0.5696 GB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001006/0.8877, allocations: 226.4 kB / 0.5698 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005849/0.8936, allocations: 1.93 MB / 0.5717 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001765/0.8938, allocations: 27.98 kB / 0.5717 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-05/0.8938, allocations: 3.938 kB / 0.5717 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.5e-05/0.8939, allocations: 11.97 kB / 0.5717 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01934/0.9132, allocations: 5.809 MB / 0.5774 GB, free: 8.988 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.266e-05/0.9133, allocations: 7.984 kB / 0.5774 GB, free: 8.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001931/0.9152, allocations: 222.8 kB / 0.5776 GB, free: 8.766 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007876/0.916, allocations: 133.2 kB / 0.5777 GB, free: 8.633 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001878/0.9162, allocations: 28.86 kB / 0.5777 GB, free: 8.605 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004966/0.9212, allocations: 2.522 MB / 0.5802 GB, free: 5.949 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.034e-05/0.9213, allocations: 4 kB / 0.5802 GB, free: 5.945 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009192/0.9305, allocations: 3.065 MB / 0.5832 GB, free: 2.816 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001231/0.9317, allocations: 295.6 kB / 0.5835 GB, free: 2.508 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005637/0.9323, allocations: 35.92 kB / 0.5835 GB, free: 2.473 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001751/0.9341, allocations: 74.09 kB / 0.5836 GB, free: 2.402 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003711/0.9345, allocations: 84.81 kB / 0.5837 GB, free: 2.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001805/0.9347, allocations: 43.98 kB / 0.5837 GB, free: 2.277 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.005169/0.9399, allocations: 1.6 MB / 0.5853 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.11e-07/0.9399, allocations: 0 / 0.5853 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.007291/0.9473, allocations: 0.6638 MB / 0.5859 GB, free: 0 / 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.01256/0.9599, allocations: 3.711 MB / 0.5896 GB, free: 12.21 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0131/0.9731, allocations: 3.036 MB / 0.5925 GB, free: 9.184 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-05/0.9732, allocations: 4 kB / 0.5925 GB, free: 9.18 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003674/0.9769, allocations: 1.004 MB / 0.5935 GB, free: 8.164 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006267/0.9832, allocations: 431.9 kB / 0.5939 GB, free: 7.762 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1054/1.089, allocations: 26.73 MB / 0.62 GB, free: 10.26 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007817/1.097, allocations: 2.601 MB / 0.6226 GB, free: 7.625 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00613/1.103, allocations: 1.132 MB / 0.6237 GB, free: 6.488 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008965/1.112, allocations: 1.304 MB / 0.6249 GB, free: 5.184 MB / 462.1 MB Notification: Performance of SimCode: time 4.128e-06/1.112, allocations: 0 / 0.6249 GB, free: 5.184 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2781/1.39, allocations: 44.93 MB / 0.6688 GB, free: 8.465 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.9/30.29, allocations: 3.781 kB / 0.6688 GB, free: 8.461 MB / 0.4981 GB (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)