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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001026/0.001027, allocations: 178.6 kB / 15.44 MB, free: 0.6562 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.323/1.323, allocations: 223.3 MB / 239.5 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008152/0.0008153, allocations: 87.66 kB / 290.6 MB, free: 2.129 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.03803/0.03803, allocations: 9.119 MB / 350.9 MB, free: 4.258 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000323/0.000323, allocations: 9.938 kB / 414.1 MB, free: 42.45 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09424/0.09458, allocations: 52.43 MB / 466.6 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.04323/0.1379, allocations: 35.15 MB / 0.4899 GB, free: 9.551 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02317/0.1611, allocations: 8.162 MB / 0.4979 GB, free: 1.363 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009054/0.1702, allocations: 131.7 kB / 0.498 GB, free: 1.234 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002045/0.1723, allocations: 302 kB / 0.4983 GB, free: 0.9375 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004115/0.1765, allocations: 0.8008 MB / 0.4991 GB, free: 136 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002453/0.179, allocations: 0.8975 MB / 0.5 GB, free: 15.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00367/0.1826, allocations: 2.452 MB / 0.5024 GB, free: 12.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002774/0.1854, allocations: 2.268 MB / 0.5046 GB, free: 10.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001084/0.1865, allocations: 0.7468 MB / 0.5053 GB, free: 9.684 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001258/0.1878, allocations: 1.03 MB / 0.5063 GB, free: 8.648 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002533/0.1881, allocations: 128 kB / 0.5065 GB, free: 8.523 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009905/0.1891, allocations: 0.5734 MB / 0.507 GB, free: 7.949 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006527/0.1897, allocations: 0.7553 MB / 0.5078 GB, free: 7.191 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001064/0.1908, allocations: 1.26 MB / 0.509 GB, free: 5.918 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003736/0.1946, allocations: 3.531 MB / 0.5124 GB, free: 2.375 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.1946, allocations: 4 kB / 0.5124 GB, free: 2.371 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1946, allocations: 0 / 0.5124 GB, free: 2.371 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001482/0.1948, allocations: 0 / 0.5124 GB, free: 2.371 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: 869 * Number of variables: 869 Notification: Performance of Generate backend data structure: time 0.009291/0.2041, allocations: 3.606 MB / 0.516 GB, free: 14.7 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.2041, allocations: 12.59 kB / 0.516 GB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009104/0.2051, allocations: 448.4 kB / 0.5164 GB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004888/0.2055, allocations: 297.2 kB / 0.5167 GB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001626/0.2072, allocations: 1.139 MB / 0.5178 GB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001513/0.2073, allocations: 213.8 kB / 0.518 GB, free: 12.55 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003822/0.2077, allocations: 291.9 kB / 0.5183 GB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008078/0.2158, allocations: 4.732 MB / 0.5229 GB, free: 7.066 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001135/0.216, allocations: 43.55 kB / 0.5229 GB, free: 7.023 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002531/0.2162, allocations: 128 kB / 0.5231 GB, free: 6.898 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005425/0.2168, allocations: 432.2 kB / 0.5235 GB, free: 6.473 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007134/0.2239, allocations: 3.37 MB / 0.5268 GB, free: 3.086 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1982/0.4222, allocations: 21.63 MB / 0.5479 GB, free: 54.58 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004971/0.4272, allocations: 1.923 MB / 0.5498 GB, free: 53.98 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00109/0.4283, allocations: 0.6893 MB / 0.5504 GB, free: 53.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006028/0.4344, allocations: 5.545 MB / 0.5559 GB, free: 50.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.011e-05/0.4344, allocations: 48.09 kB / 0.5559 GB, free: 50.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=102): time 3.637e-06/0.4344, allocations: 0 / 0.5559 GB, free: 50.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.02015/0.4546, allocations: 9.58 MB / 0.5653 GB, free: 46.78 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.044e-05/0.4547, allocations: 66.75 kB / 0.5653 GB, free: 46.71 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001771/0.4564, allocations: 1.804 MB / 0.5671 GB, free: 45.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.693e-05/0.4565, allocations: 48.58 kB / 0.5671 GB, free: 45.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000628/0.4572, allocations: 1.73 MB / 0.5688 GB, free: 44.15 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002946/0.4575, allocations: 0.5342 MB / 0.5693 GB, free: 43.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002863/0.4578, allocations: 303.8 kB / 0.5696 GB, free: 43.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.188e-05/0.4578, allocations: 356.4 kB / 0.57 GB, free: 43.17 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001386/0.4592, allocations: 1.225 MB / 0.5712 GB, free: 42.26 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001968/0.4612, allocations: 3.41 MB / 0.5745 GB, free: 37.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0039/0.4651, allocations: 5.116 MB / 0.5795 GB, free: 31.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.827e-05/0.4652, allocations: 24 kB / 0.5795 GB, free: 31.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.006193/0.4714, allocations: 4.817 MB / 0.5842 GB, free: 26.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.615e-05/0.4714, allocations: 39.98 kB / 0.5843 GB, free: 26.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.386e-05/0.4715, allocations: 80 kB / 0.5843 GB, free: 26.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007781/0.4723, allocations: 367.5 kB / 0.5847 GB, free: 26.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002386/0.4747, allocations: 0.8928 MB / 0.5856 GB, free: 25.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003963/0.4787, allocations: 3.956 MB / 0.5894 GB, free: 21.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002311/0.481, allocations: 207.7 kB / 0.5896 GB, free: 21.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002379/0.4813, allocations: 232 kB / 0.5898 GB, free: 20.83 MB / 366.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.001182/0.4825, allocations: 0.9325 MB / 0.5907 GB, free: 19.89 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002305/0.4827, allocations: 193.5 kB / 0.5909 GB, free: 19.7 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003336/0.486, allocations: 2.607 MB / 0.5935 GB, free: 17.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.329e-05/0.4861, allocations: 12.75 kB / 0.5935 GB, free: 17.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.4861, allocations: 7.938 kB / 0.5935 GB, free: 17.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.4861, allocations: 7.969 kB / 0.5935 GB, free: 17.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009161/0.4953, allocations: 6.518 MB / 0.5999 GB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.806e-06/0.4953, allocations: 4 kB / 0.5999 GB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009819/0.4963, allocations: 267.6 kB / 0.6001 GB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005936/0.4969, allocations: 265.8 kB / 0.6004 GB, free: 9.914 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.889e-05/0.497, allocations: 24 kB / 0.6004 GB, free: 9.891 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003039/0.5, allocations: 3.199 MB / 0.6035 GB, free: 6.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.5001, allocations: 7.984 kB / 0.6035 GB, free: 6.562 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004165/0.5042, allocations: 3.905 MB / 0.6074 GB, free: 2.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004832/0.5047, allocations: 238.7 kB / 0.6076 GB, free: 2.336 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001858/0.5049, allocations: 32.08 kB / 0.6076 GB, free: 2.305 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008041/0.5058, allocations: 103.9 kB / 0.6077 GB, free: 2.203 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001989/0.506, allocations: 100.7 kB / 0.6078 GB, free: 2.102 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.862e-05/0.506, allocations: 39.98 kB / 0.6078 GB, free: 2.062 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001287/0.5073, allocations: 1.088 MB / 0.6089 GB, free: 0.9844 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5073, allocations: 0 / 0.6089 GB, free: 0.9844 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002486/0.5098, allocations: 0.6328 MB / 0.6095 GB, free: 360 kB / 366.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.005487/0.5153, allocations: 4.494 MB / 0.6139 GB, free: 11.78 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005368/0.5207, allocations: 3.296 MB / 0.6171 GB, free: 8.488 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.163e-06/0.5208, allocations: 0 / 0.6171 GB, free: 8.488 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001801/0.5226, allocations: 1.273 MB / 0.6184 GB, free: 7.203 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002899/0.5255, allocations: 418 kB / 0.6188 GB, free: 6.797 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03725/0.5627, allocations: 27.66 MB / 0.6458 GB, free: 7.105 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001902/0.5647, allocations: 1.841 MB / 0.6476 GB, free: 5.227 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002281/0.567, allocations: 0.859 MB / 0.6484 GB, free: 4.363 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001606/0.5686, allocations: 1.058 MB / 0.6495 GB, free: 3.305 MB / 414.1 MB Notification: Performance of SimCode: time 9.32e-07/0.5686, allocations: 0 / 0.6495 GB, free: 3.305 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06738/0.636, allocations: 43.06 MB / 0.6915 GB, free: 8.465 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001753/0.6362, allocations: 207.9 kB / 0.6917 GB, free: 8.211 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.797/3.434, allocations: 0 / 0.6917 GB, free: 8.211 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_MeasureDemo_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_MeasureDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe 2>&1)