Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.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.MeasureDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_MeasureDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.MeasureDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_MeasureDemo",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.005233/0.005233, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001125/0.001125, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.303/1.303, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04432/0.04432, allocations: 9.122 MB / 299.7 MB, free: 5.805 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002402/0.002402, allocations: 71.89 kB / 414.1 MB, free: 21.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09507/0.09749, allocations: 51.45 MB / 465.6 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.01528/0.1128, allocations: 13.79 MB / 479.4 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009151/0.122, allocations: 4.038 MB / 483.4 MB, free: 248 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002367/0.1244, allocations: 55.88 kB / 483.5 MB, free: 192 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00154/0.126, allocations: 380.8 kB / 483.8 MB, free: 15.81 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003209/0.1293, allocations: 0.9283 MB / 484.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001938/0.1312, allocations: 0.9792 MB / 485.7 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003169/0.1344, allocations: 2.226 MB / 488 MB, free: 11.66 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003492/0.1379, allocations: 2.762 MB / 490.7 MB, free: 8.824 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00184/0.1398, allocations: 1.024 MB / 491.8 MB, free: 7.797 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001937/0.1417, allocations: 1.237 MB / 493 MB, free: 6.555 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000635/0.1424, allocations: 308 kB / 493.3 MB, free: 6.254 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001648/0.144, allocations: 0.7141 MB / 494 MB, free: 5.539 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00118/0.1452, allocations: 0.9662 MB / 495 MB, free: 4.57 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002181/0.1474, allocations: 1.485 MB / 496.5 MB, free: 3.078 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005305/0.1528, allocations: 3.899 MB / 0.4886 GB, free: 15.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.967e-06/0.1528, allocations: 4 kB / 0.4886 GB, free: 15.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1528, allocations: 0 / 0.4886 GB, free: 15.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002111/0.153, allocations: 4 kB / 0.4886 GB, free: 15.15 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 869 * Number of variables: 869 Notification: Performance of Generate backend data structure: time 0.01254/0.1656, allocations: 4.23 MB / 0.4928 GB, free: 10.86 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.1656, allocations: 11.97 kB / 0.4928 GB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009698/0.1666, allocations: 452.4 kB / 0.4932 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007105/0.1673, allocations: 314.9 kB / 0.4935 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002081/0.1694, allocations: 1.136 MB / 0.4946 GB, free: 8.906 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001754/0.1696, allocations: 213.8 kB / 0.4948 GB, free: 8.695 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005222/0.1702, allocations: 299.9 kB / 0.4951 GB, free: 8.402 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008508/0.1787, allocations: 4.736 MB / 0.4997 GB, free: 3.195 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001186/0.1788, allocations: 35.77 kB / 0.4998 GB, free: 3.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003117/0.1791, allocations: 131.9 kB / 0.4999 GB, free: 3.031 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005329/0.1797, allocations: 432.2 kB / 0.5003 GB, free: 2.605 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1815/0.3611, allocations: 3.365 MB / 0.5036 GB, free: 41.98 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02213/0.3833, allocations: 21.6 MB / 0.5247 GB, free: 26.56 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005005/0.3884, allocations: 1.92 MB / 0.5266 GB, free: 25.64 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009999/0.3894, allocations: 0.6925 MB / 0.5272 GB, free: 25.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006679/0.3961, allocations: 5.55 MB / 0.5327 GB, free: 21.13 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.125e-05/0.3961, allocations: 46.69 kB / 0.5327 GB, free: 21.08 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 2.805e-06/0.3961, allocations: 1.031 kB / 0.5327 GB, free: 21.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.02133/0.4175, allocations: 9.6 MB / 0.5421 GB, free: 15.97 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.198e-05/0.4175, allocations: 68.22 kB / 0.5421 GB, free: 15.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002187/0.4197, allocations: 1.819 MB / 0.5439 GB, free: 14.36 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001013/0.4199, allocations: 49.7 kB / 0.544 GB, free: 14.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006991/0.4206, allocations: 1.806 MB / 0.5457 GB, free: 12.51 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003752/0.4209, allocations: 0.5457 MB / 0.5463 GB, free: 11.97 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008029/0.4218, allocations: 0.7508 MB / 0.547 GB, free: 11.21 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.01e-05/0.4218, allocations: 353.9 kB / 0.5473 GB, free: 10.86 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001481/0.4233, allocations: 1.225 MB / 0.5485 GB, free: 9.633 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002563/0.4259, allocations: 3.409 MB / 0.5519 GB, free: 5.145 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00485/0.4308, allocations: 5.121 MB / 0.5569 GB, free: 14.94 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.807e-05/0.4309, allocations: 24 kB / 0.5569 GB, free: 14.92 MB / 398.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.008221/0.4391, allocations: 4.832 MB / 0.5616 GB, free: 10.08 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.872e-05/0.4392, allocations: 37 kB / 0.5616 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001061/0.4393, allocations: 78.62 kB / 0.5617 GB, free: 9.969 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009052/0.4402, allocations: 379.7 kB / 0.5621 GB, free: 9.598 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002813/0.4431, allocations: 0.889 MB / 0.5629 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005345/0.4484, allocations: 4.294 MB / 0.5671 GB, free: 4.273 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002672/0.4511, allocations: 215.8 kB / 0.5673 GB, free: 4.062 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004911/0.4516, allocations: 225 kB / 0.5676 GB, free: 3.844 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 352 * Number of states: 0 () * Number of discrete variables: 18 (revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (464): * Single equations (assignments): 463 * Array equations: 0 * 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 {(2,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001798/0.4534, allocations: 0.932 MB / 0.5685 GB, free: 2.898 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004221/0.4539, allocations: 206.6 kB / 0.5687 GB, free: 2.695 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004261/0.4581, allocations: 2.602 MB / 0.5712 GB, free: 80 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.349e-05/0.4582, allocations: 12 kB / 0.5712 GB, free: 68 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/0.4582, allocations: 4 kB / 0.5712 GB, free: 64 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.283e-05/0.4582, allocations: 3.984 kB / 0.5712 GB, free: 60 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01197/0.4702, allocations: 6.439 MB / 0.5775 GB, free: 9.531 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-05/0.4702, allocations: 4 kB / 0.5775 GB, free: 9.527 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001113/0.4713, allocations: 268.1 kB / 0.5778 GB, free: 9.266 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007034/0.4721, allocations: 260.6 kB / 0.578 GB, free: 9.008 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001171/0.4722, allocations: 35.19 kB / 0.5781 GB, free: 8.977 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004109/0.4763, allocations: 3.461 MB / 0.5814 GB, free: 5.383 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.4763, allocations: 8 kB / 0.5814 GB, free: 5.375 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0053/0.4816, allocations: 3.913 MB / 0.5853 GB, free: 1.402 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006658/0.4823, allocations: 251.8 kB / 0.5855 GB, free: 1.137 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003539/0.4827, allocations: 31.94 kB / 0.5855 GB, free: 1.105 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009379/0.4836, allocations: 103.8 kB / 0.5856 GB, free: 1.004 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000189/0.4838, allocations: 100.8 kB / 0.5857 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.248e-05/0.4839, allocations: 39.94 kB / 0.5858 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001735/0.4857, allocations: 1.085 MB / 0.5868 GB, free: 15.79 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4857, allocations: 0 / 0.5868 GB, free: 15.79 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002963/0.4886, allocations: 0.6367 MB / 0.5874 GB, free: 15.15 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (121): * Single equations (assignments): 120 * Array equations: 0 * 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 {(2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00557/0.4942, allocations: 4.499 MB / 0.5918 GB, free: 10.57 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005112/0.4994, allocations: 3.323 MB / 0.5951 GB, free: 7.25 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.4994, allocations: 0 / 0.5951 GB, free: 7.25 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001739/0.5011, allocations: 1.277 MB / 0.5963 GB, free: 5.957 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002238/0.5034, allocations: 435.4 kB / 0.5967 GB, free: 5.551 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03787/0.5413, allocations: 24.57 MB / 0.6207 GB, free: 9.984 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002243/0.5436, allocations: 1.833 MB / 0.6225 GB, free: 8.113 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002091/0.5457, allocations: 0.855 MB / 0.6234 GB, free: 7.254 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001572/0.5473, allocations: 1.05 MB / 0.6244 GB, free: 6.203 MB / 462.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5473, allocations: 4 kB / 0.6244 GB, free: 6.199 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08179/0.6291, allocations: 45.61 MB / 0.6689 GB, free: 8.758 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.74/14.37, allocations: 2.812 kB / 0.6689 GB, free: 8.758 MB / 0.4981 GB (rm -f PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.MeasureDemo_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PlanarMechanics_PlanarMechanics_Examples_MeasureDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe 2>&1)