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.001182/0.001182, allocations: 104 kB / 15.61 MB, free: 148 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.001265/0.001265, allocations: 195.9 kB / 16.53 MB, free: 6.684 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.443/1.443, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1762/0.1762, allocations: 9.113 MB / 299.5 MB, free: 1.75 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 71.83 kB / 362 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1254, allocations: 51.43 MB / 413.5 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.009881/0.1353, allocations: 8.199 MB / 421.7 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2685/0.4039, allocations: 2.507 MB / 424.2 MB, free: 36.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001476/0.4054, allocations: 31.28 kB / 424.2 MB, free: 36.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009874/0.4064, allocations: 352.3 kB / 424.6 MB, free: 36.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003422/0.4099, allocations: 1.324 MB / 425.9 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004733/0.4104, allocations: 119 kB / 426 MB, free: 36.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002874/0.4133, allocations: 2.434 MB / 428.4 MB, free: 35.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00121/0.4145, allocations: 0.803 MB / 429.2 MB, free: 35.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001268/0.4158, allocations: 0.851 MB / 430.1 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001742/0.4175, allocations: 1.261 MB / 431.3 MB, free: 35.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000552/0.4181, allocations: 229 kB / 431.6 MB, free: 35.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001855/0.42, allocations: 0.808 MB / 432.4 MB, free: 35.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001142/0.4211, allocations: 1.203 MB / 433.6 MB, free: 34.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001465/0.4226, allocations: 1.541 MB / 435.1 MB, free: 33.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004567/0.4272, allocations: 4.709 MB / 439.8 MB, free: 32.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.4272, allocations: 0 / 439.8 MB, free: 32.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4272, allocations: 0 / 439.8 MB, free: 32.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001013/0.4273, allocations: 0.8438 kB / 439.8 MB, free: 32.06 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: 1172 * Number of variables: 1172 Notification: Performance of Generate backend data structure: time 0.006675/0.434, allocations: 3.261 MB / 443.1 MB, free: 30.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.4341, allocations: 17.25 kB / 443.1 MB, free: 30.15 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007028/0.4348, allocations: 0.5403 MB / 443.6 MB, free: 29.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006577/0.4414, allocations: 1.761 MB / 445.4 MB, free: 29.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003527/0.4449, allocations: 1.297 MB / 446.7 MB, free: 28.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001421/0.4451, allocations: 143.3 kB / 446.8 MB, free: 28.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006358/0.4458, allocations: 181.4 kB / 447 MB, free: 28.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01234/0.4581, allocations: 8.066 MB / 455.1 MB, free: 25.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.908e-05/0.4582, allocations: 26.97 kB / 455.1 MB, free: 25.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003005/0.4586, allocations: 88.52 kB / 455.2 MB, free: 25.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003302/0.4619, allocations: 1.998 MB / 457.2 MB, free: 24.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01704/0.4789, allocations: 7.141 MB / 464.3 MB, free: 22.4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04706/0.526, allocations: 24.14 MB / 488.5 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005225/0.5313, allocations: 2.16 MB / 490.6 MB, free: 4.785 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00114/0.5325, allocations: 0.718 MB / 491.4 MB, free: 4.062 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007501/0.54, allocations: 3.989 MB / 495.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.836e-05/0.5402, allocations: 47.5 kB / 495.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of pre-optimization done (n=114): time 8.436e-06/0.5402, allocations: 0 / 495.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=117): time 0.016/0.5562, allocations: 4.384 MB / 499.8 MB, free: 11.25 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.219e-05/0.5563, allocations: 60.41 kB / 499.8 MB, free: 11.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007582/0.5639, allocations: 2.581 MB / 0.4906 GB, free: 8.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002815/0.5643, allocations: 44.44 kB / 0.4907 GB, free: 8.523 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002406/0.5667, allocations: 2.11 MB / 0.4927 GB, free: 6.406 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001011/0.5678, allocations: 464.3 kB / 0.4932 GB, free: 5.957 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002706/0.5705, allocations: 0.7527 MB / 0.4939 GB, free: 5.199 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.5707, allocations: 301.1 kB / 0.4942 GB, free: 4.902 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00347/0.5742, allocations: 1.167 MB / 0.4953 GB, free: 3.734 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00544/0.5796, allocations: 3.32 MB / 0.4986 GB, free: 15.36 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009134/0.5888, allocations: 4.788 MB / 0.5033 GB, free: 9.512 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000153/0.589, allocations: 24 kB / 0.5033 GB, free: 9.488 MB / 382.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.01328/0.6023, allocations: 4.428 MB / 0.5076 GB, free: 5.059 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002062/0.6026, allocations: 36 kB / 0.5076 GB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001827/0.6028, allocations: 76.08 kB / 0.5077 GB, free: 4.949 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001888/0.603, allocations: 107.3 kB / 0.5078 GB, free: 4.848 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004439/0.6075, allocations: 0.8461 MB / 0.5086 GB, free: 4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002206/0.6077, allocations: 151.4 kB / 0.5088 GB, free: 3.852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004428/0.6122, allocations: 175.9 kB / 0.509 GB, free: 3.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008141/0.613, allocations: 230.6 kB / 0.5092 GB, free: 3.457 MB / 382.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.004631/0.6177, allocations: 1.582 MB / 0.5107 GB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008173/0.6185, allocations: 205.3 kB / 0.5109 GB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004457/0.623, allocations: 1.408 MB / 0.5123 GB, free: 256 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002077/0.6232, allocations: 27.98 kB / 0.5123 GB, free: 228 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.491e-05/0.6233, allocations: 0 / 0.5123 GB, free: 228 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.88e-05/0.6233, allocations: 7.984 kB / 0.5123 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01088/0.6342, allocations: 4.784 MB / 0.517 GB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-05/0.6343, allocations: 8 kB / 0.517 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008301/0.6351, allocations: 183.7 kB / 0.5172 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.366e-05/0.6351, allocations: 8 kB / 0.5172 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.018e-05/0.6352, allocations: 31.98 kB / 0.5172 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.797e-05/0.6352, allocations: 11.94 kB / 0.5172 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/0.6352, allocations: 4.062 kB / 0.5172 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003727/0.639, allocations: 2.364 MB / 0.5195 GB, free: 8.637 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008532/0.6399, allocations: 302.4 kB / 0.5198 GB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002914/0.6402, allocations: 24 kB / 0.5199 GB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007874/0.641, allocations: 43.08 kB / 0.5199 GB, free: 8.258 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001582/0.6411, allocations: 80.38 kB / 0.52 GB, free: 8.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.06e-05/0.6412, allocations: 43.98 kB / 0.52 GB, free: 8.137 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002914/0.6441, allocations: 1.655 MB / 0.5216 GB, free: 6.465 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6442, allocations: 0 / 0.5216 GB, free: 6.465 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003754/0.6479, allocations: 0.6172 MB / 0.5222 GB, free: 5.848 MB / 398.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.004129/0.6521, allocations: 2.995 MB / 0.5252 GB, free: 2.758 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006244/0.6583, allocations: 3.261 MB / 0.5283 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/0.6584, allocations: 0 / 0.5283 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001019/0.6594, allocations: 0.6347 MB / 0.529 GB, free: 14.89 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002321/0.6618, allocations: 377.4 kB / 0.5293 GB, free: 14.54 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04691/0.7087, allocations: 28.09 MB / 0.5568 GB, free: 14.65 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003214/0.7119, allocations: 2.563 MB / 0.5593 GB, free: 12.05 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003015/0.715, allocations: 1.117 MB / 0.5604 GB, free: 10.93 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001919/0.7169, allocations: 1.241 MB / 0.5616 GB, free: 9.691 MB / 446.1 MB Notification: Performance of SimCode: time 1.583e-06/0.7169, allocations: 0 / 0.5616 GB, free: 9.691 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3158/1.033, allocations: 43.05 MB / 0.6036 GB, free: 138.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.449/10.48, allocations: 3.031 kB / 0.6036 GB, free: 138.4 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)