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.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 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.001115/0.001116, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001242/0.001242, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.555/1.555, allocations: 223.2 MB / 239.9 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1751/0.1751, allocations: 9.105 MB / 300.1 MB, free: 2.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000329/0.0003289, allocations: 8 kB / 363.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1225, allocations: 52.44 MB / 415.5 MB, free: 8.477 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.2519/0.3744, allocations: 30.56 MB / 446.1 MB, free: 26.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01889/0.3933, allocations: 8.238 MB / 454.3 MB, free: 20.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00812/0.4015, allocations: 129.5 kB / 454.4 MB, free: 20.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006279/0.4078, allocations: 1.465 MB / 455.9 MB, free: 19.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01664/0.4245, allocations: 4.289 MB / 460.2 MB, free: 17.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003102/0.4277, allocations: 0.7065 MB / 460.9 MB, free: 17.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003589/0.4313, allocations: 1.509 MB / 462.4 MB, free: 16.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002423/0.4338, allocations: 2.017 MB / 464.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001475/0.4353, allocations: 0.7365 MB / 465.2 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001705/0.437, allocations: 0.9179 MB / 466.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003119/0.4373, allocations: 129 kB / 466.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001209/0.4385, allocations: 470.5 kB / 466.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006504/0.4392, allocations: 0.7317 MB / 467.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006382/0.4399, allocations: 0.5208 MB / 467.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002587/0.4424, allocations: 2.9 MB / 470.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.4425, allocations: 0 / 470.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4425, allocations: 0 / 470.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.241e-05/0.4426, allocations: 0 / 470.8 MB, free: 13.77 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.00976/0.4524, allocations: 3.722 MB / 474.5 MB, free: 12.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.11e-05/0.4524, allocations: 17.47 kB / 474.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001363/0.4538, allocations: 453.8 kB / 475 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008839/0.4547, allocations: 293.9 kB / 475.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002451/0.4572, allocations: 1.103 MB / 476.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002124/0.4574, allocations: 213.2 kB / 476.6 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000469/0.4579, allocations: 287.6 kB / 476.9 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00994/0.4678, allocations: 4.743 MB / 481.6 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001199/0.468, allocations: 40.03 kB / 481.7 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002761/0.4683, allocations: 129.8 kB / 481.8 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006559/0.4689, allocations: 431.5 kB / 482.2 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009102/0.4781, allocations: 3.403 MB / 485.6 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0277/0.5058, allocations: 21.55 MB / 0.4953 GB, free: 5.551 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005399/0.5113, allocations: 1.913 MB / 0.4971 GB, free: 4.332 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002445/0.5137, allocations: 2.039 MB / 0.4991 GB, free: 2.379 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.932e-05/0.5138, allocations: 47.62 kB / 0.4992 GB, free: 2.328 MB / 366.1 MB Notification: Performance of pre-optimization done (n=118): time 5.219e-06/0.5139, allocations: 0 / 0.4992 GB, free: 2.328 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.02697/0.5408, allocations: 10.15 MB / 0.5091 GB, free: 8.348 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.311e-05/0.541, allocations: 68.72 kB / 0.5092 GB, free: 8.266 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003447/0.5444, allocations: 1.762 MB / 0.5109 GB, free: 6.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002821/0.5447, allocations: 57.7 kB / 0.5109 GB, free: 6.438 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001596/0.5463, allocations: 1.701 MB / 0.5126 GB, free: 4.707 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009403/0.5473, allocations: 0.5859 MB / 0.5132 GB, free: 4.113 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001922/0.5475, allocations: 76 kB / 0.5132 GB, free: 4.039 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0005229/0.548, allocations: 0.5069 MB / 0.5137 GB, free: 3.523 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002538/0.5506, allocations: 1.237 MB / 0.5149 GB, free: 2.285 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004145/0.5547, allocations: 3.41 MB / 0.5183 GB, free: 13.8 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002964/0.5577, allocations: 1.93 MB / 0.5202 GB, free: 11.87 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.93e-05/0.5578, allocations: 24 kB / 0.5202 GB, free: 11.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=496) (initialization): time 0.0081/0.5659, allocations: 4.856 MB / 0.5249 GB, free: 6.977 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.238e-05/0.566, allocations: 40 kB / 0.525 GB, free: 6.938 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.813e-05/0.5661, allocations: 76 kB / 0.525 GB, free: 6.863 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008862/0.567, allocations: 386.7 kB / 0.5254 GB, free: 6.484 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00276/0.5698, allocations: 0.9123 MB / 0.5263 GB, free: 5.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005892/0.5757, allocations: 4.04 MB / 0.5302 GB, free: 1.395 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003333/0.579, allocations: 211.7 kB / 0.5304 GB, free: 1.188 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004222/0.5795, allocations: 236 kB / 0.5307 GB, free: 0.957 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 (475): * Single equations (assignments): 474 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001823/0.5813, allocations: 0.9353 MB / 0.5316 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004217/0.5817, allocations: 201.5 kB / 0.5318 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004291/0.586, allocations: 2.713 MB / 0.5344 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.928e-05/0.5861, allocations: 16 kB / 0.5344 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.5861, allocations: 4 kB / 0.5344 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.626e-05/0.5861, allocations: 7.969 kB / 0.5345 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01336/0.5995, allocations: 7.14 MB / 0.5414 GB, free: 5.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.228e-05/0.5995, allocations: 8.938 kB / 0.5414 GB, free: 5.723 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/0.6007, allocations: 303.5 kB / 0.5417 GB, free: 5.426 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006922/0.6014, allocations: 264.6 kB / 0.542 GB, free: 5.164 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001099/0.6016, allocations: 39.98 kB / 0.542 GB, free: 5.125 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003978/0.6056, allocations: 3.274 MB / 0.5452 GB, free: 1.719 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-05/0.6056, allocations: 11.94 kB / 0.5452 GB, free: 1.707 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006205/0.6118, allocations: 4.683 MB / 0.5498 GB, free: 12.75 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009722/0.6128, allocations: 250.7 kB / 0.55 GB, free: 12.48 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002589/0.6131, allocations: 35.98 kB / 0.5501 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001016/0.6141, allocations: 111.8 kB / 0.5502 GB, free: 12.34 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002772/0.6144, allocations: 117.1 kB / 0.5503 GB, free: 12.22 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.728e-05/0.6145, allocations: 44.09 kB / 0.5503 GB, free: 12.18 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001841/0.6163, allocations: 1.056 MB / 0.5514 GB, free: 11.13 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6164, allocations: 0 / 0.5514 GB, free: 11.13 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003355/0.6197, allocations: 0.6445 MB / 0.552 GB, free: 10.49 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * 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 (140): * Single equations (assignments): 139 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006982/0.6267, allocations: 7.196 MB / 0.559 GB, free: 3.051 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006606/0.6334, allocations: 3.384 MB / 0.5623 GB, free: 15.66 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.353e-05/0.6334, allocations: 0 / 0.5623 GB, free: 15.66 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002165/0.6356, allocations: 1.342 MB / 0.5636 GB, free: 14.31 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002101/0.6377, allocations: 390.1 kB / 0.564 GB, free: 13.93 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2853/0.923, allocations: 70.33 MB / 0.6327 GB, free: 49.05 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001482/0.9245, allocations: 1.895 MB / 0.6345 GB, free: 48.29 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00232/0.9269, allocations: 0.8862 MB / 0.6354 GB, free: 48.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001294/0.9282, allocations: 1.062 MB / 0.6364 GB, free: 48.21 MB / 446.1 MB Notification: Performance of SimCode: time 2.004e-06/0.9282, allocations: 0.5625 kB / 0.6364 GB, free: 48.21 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09043/1.019, allocations: 45.85 MB / 0.6812 GB, free: 28.6 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000186/1.019, allocations: 188.5 kB / 0.6814 GB, free: 28.36 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.953/3.972, allocations: 0 / 0.6814 GB, free: 28.36 MB / 446.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) Environment - environmentSimulation: