Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.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.SpringDamperDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.SpringDamperDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo",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.005213/0.005214, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001233/0.001233, allocations: 198.7 kB / 16.67 MB, free: 5.934 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.328/1.328, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1687/0.1687, allocations: 9.106 MB / 299.7 MB, free: 1.695 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 68.09 kB / 414.1 MB, free: 8.852 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2279/0.2293, allocations: 51.43 MB / 465.6 MB, free: 17.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.008064/0.2374, allocations: 8.189 MB / 473.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00536/0.2428, allocations: 2.513 MB / 476.3 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00136/0.2442, allocations: 31.84 kB / 476.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008594/0.245, allocations: 351.3 kB / 476.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003094/0.2482, allocations: 1.367 MB / 478 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004149/0.2486, allocations: 115.5 kB / 478.1 MB, free: 9.328 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002487/0.2511, allocations: 2.442 MB / 480.6 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008326/0.252, allocations: 0.8049 MB / 481.4 MB, free: 7.371 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001065/0.253, allocations: 0.8608 MB / 482.2 MB, free: 6.863 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001413/0.2544, allocations: 1.265 MB / 483.5 MB, free: 6.086 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004147/0.2549, allocations: 222.5 kB / 483.7 MB, free: 6.086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001384/0.2563, allocations: 0.8076 MB / 484.5 MB, free: 5.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008979/0.2572, allocations: 1.209 MB / 485.7 MB, free: 5.055 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001198/0.2584, allocations: 1.534 MB / 487.3 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004949/0.2633, allocations: 4.987 MB / 492.3 MB, free: 412 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.2634, allocations: 1.125 kB / 492.3 MB, free: 412 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.2634, allocations: 0 / 492.3 MB, free: 412 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001113/0.2635, allocations: 0 / 492.3 MB, free: 412 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1172 * Number of variables: 1172 Notification: Performance of Generate backend data structure: time 0.007054/0.2706, allocations: 3.349 MB / 495.6 MB, free: 13.92 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.2706, allocations: 9.594 kB / 495.6 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007082/0.2713, allocations: 0.5421 MB / 496.2 MB, free: 13.49 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006819/0.2782, allocations: 1.785 MB / 497.9 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003122/0.2813, allocations: 1.298 MB / 499.2 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001116/0.2814, allocations: 139.8 kB / 499.4 MB, free: 10.22 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004569/0.2819, allocations: 192.2 kB / 499.6 MB, free: 10.03 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01218/0.2941, allocations: 8.061 MB / 0.4957 GB, free: 1.609 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.127e-05/0.2942, allocations: 19.81 kB / 0.4957 GB, free: 1.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002867/0.2945, allocations: 95.78 kB / 0.4958 GB, free: 1.496 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003278/0.2978, allocations: 2 MB / 0.4978 GB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01488/0.3127, allocations: 7.137 MB / 0.5048 GB, free: 8.344 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03837/0.3511, allocations: 24.12 MB / 0.5283 GB, free: 15.74 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004857/0.356, allocations: 2.163 MB / 0.5304 GB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001303/0.3573, allocations: 0.7158 MB / 0.5311 GB, free: 12.73 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006945/0.3643, allocations: 3.997 MB / 0.535 GB, free: 8.383 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.578e-05/0.3644, allocations: 47.5 kB / 0.5351 GB, free: 8.328 MB / 414.1 MB Notification: Performance of pre-optimization done (n=114): time 5.129e-06/0.3644, allocations: 0 / 0.5351 GB, free: 8.328 MB / 414.1 MB Notification: Performance of matching and sorting (n=117): time 0.01069/0.3751, allocations: 4.426 MB / 0.5394 GB, free: 3.848 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.359e-05/0.3751, allocations: 64.41 kB / 0.5395 GB, free: 3.773 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004723/0.3799, allocations: 2.577 MB / 0.542 GB, free: 1.164 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001023/0.38, allocations: 41.7 kB / 0.542 GB, free: 1.117 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001932/0.3819, allocations: 2.199 MB / 0.5442 GB, free: 14.89 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006171/0.3826, allocations: 488.2 kB / 0.5446 GB, free: 14.41 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001665/0.3842, allocations: 0.7506 MB / 0.5454 GB, free: 13.65 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.3844, allocations: 313.1 kB / 0.5457 GB, free: 13.34 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002125/0.3865, allocations: 1.159 MB / 0.5468 GB, free: 12.18 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003766/0.3903, allocations: 3.324 MB / 0.55 GB, free: 7.801 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005834/0.3961, allocations: 4.791 MB / 0.5547 GB, free: 1.957 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.367e-05/0.3962, allocations: 27.94 kB / 0.5547 GB, free: 1.93 MB / 430.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.007788/0.404, allocations: 4.431 MB / 0.5591 GB, free: 13.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.234e-05/0.4041, allocations: 36.09 kB / 0.5591 GB, free: 13.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.098e-05/0.4042, allocations: 79.94 kB / 0.5592 GB, free: 13.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001129/0.4043, allocations: 104 kB / 0.5593 GB, free: 13.28 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002778/0.4071, allocations: 0.846 MB / 0.5601 GB, free: 12.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001299/0.4073, allocations: 151.6 kB / 0.5602 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002568/0.4098, allocations: 180.3 kB / 0.5604 GB, free: 12.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004343/0.4103, allocations: 232 kB / 0.5606 GB, free: 11.88 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 345 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],springDamper.color_b[3],springDamper.color_b[2],springDamper.color_b[1],springDamper.color_a[3],springDamper.color_a[2],springDamper.color_a[1],springDamper.color[3],springDamper.color[2],springDamper.color[1],springDamper.colorConnector_b[3],springDamper.colorConnector_b[2],springDamper.colorConnector_b[1],springDamper.colorConnector_a[3],springDamper.colorConnector_a[2],springDamper.colorConnector_a[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (459): * Single equations (assignments): 454 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0025/0.4128, allocations: 1.564 MB / 0.5622 GB, free: 10.31 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003787/0.4132, allocations: 226.5 kB / 0.5624 GB, free: 10.09 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002444/0.4156, allocations: 1.406 MB / 0.5638 GB, free: 8.668 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000128/0.4158, allocations: 27.97 kB / 0.5638 GB, free: 8.641 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/0.4158, allocations: 3.938 kB / 0.5638 GB, free: 8.637 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/0.4158, allocations: 3.984 kB / 0.5638 GB, free: 8.633 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009002/0.4248, allocations: 4.793 MB / 0.5685 GB, free: 3.703 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-05/0.4248, allocations: 12.05 kB / 0.5685 GB, free: 3.691 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008617/0.4257, allocations: 179.7 kB / 0.5687 GB, free: 3.516 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.458e-05/0.4257, allocations: 12 kB / 0.5687 GB, free: 3.504 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.923e-05/0.4258, allocations: 27.98 kB / 0.5687 GB, free: 3.477 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.255e-05/0.4258, allocations: 11.98 kB / 0.5687 GB, free: 3.465 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.414e-06/0.4259, allocations: 11.94 kB / 0.5687 GB, free: 3.453 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003514/0.4294, allocations: 2.369 MB / 0.571 GB, free: 0.9961 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007904/0.4302, allocations: 299.7 kB / 0.5713 GB, free: 0.6836 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004737/0.4307, allocations: 31.97 kB / 0.5713 GB, free: 0.6523 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00105/0.4317, allocations: 51.95 kB / 0.5714 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001293/0.4319, allocations: 72.39 kB / 0.5715 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.349e-05/0.432, allocations: 39.98 kB / 0.5715 GB, free: 0.4922 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003343/0.4353, allocations: 1.667 MB / 0.5731 GB, free: 14.81 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4353, allocations: 0 / 0.5731 GB, free: 14.81 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003488/0.4388, allocations: 0.621 MB / 0.5737 GB, free: 14.19 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 6 (body.r[1],body.r[2],body.v[1],body.v[2],body.phi,body.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 (93): * Single equations (assignments): 88 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004322/0.4432, allocations: 3.007 MB / 0.5767 GB, free: 11.09 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005362/0.4485, allocations: 2.622 MB / 0.5792 GB, free: 8.48 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.048e-05/0.4486, allocations: 0 / 0.5792 GB, free: 8.48 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001176/0.4498, allocations: 0.6375 MB / 0.5799 GB, free: 7.848 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002901/0.4527, allocations: 384 kB / 0.5802 GB, free: 7.477 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2551/0.7078, allocations: 26.25 MB / 0.6059 GB, free: 103 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002802/0.7106, allocations: 2.56 MB / 0.6084 GB, free: 101.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002387/0.7131, allocations: 1.114 MB / 0.6094 GB, free: 101.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001446/0.7145, allocations: 1.25 MB / 0.6107 GB, free: 100.7 MB / 462.1 MB Notification: Performance of SimCode: time 8.32e-07/0.7145, allocations: 0 / 0.6107 GB, free: 100.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06482/0.7793, allocations: 42.08 MB / 0.6518 GB, free: 66.37 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.73/14.51, allocations: 0 / 0.6518 GB, free: 66.37 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe 2>&1)