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.006202/0.006202, allocations: 101.5 kB / 15.73 MB, free: 6.016 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.00116/0.00116, allocations: 198.4 kB / 16.68 MB, free: 5.938 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.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04401/0.04401, allocations: 9.112 MB / 299.6 MB, free: 5.82 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 67.88 kB / 414.1 MB, free: 21.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0941/0.09547, allocations: 51.44 MB / 465.6 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.01533/0.1108, allocations: 13.8 MB / 479.4 MB, free: 4.398 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01029/0.1212, allocations: 4.023 MB / 483.4 MB, free: 372 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003002/0.1242, allocations: 55.88 kB / 483.4 MB, free: 316 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001744/0.126, allocations: 384.7 kB / 483.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003522/0.1296, allocations: 0.9127 MB / 484.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002034/0.1317, allocations: 0.9753 MB / 485.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003333/0.135, allocations: 2.226 MB / 487.9 MB, free: 11.8 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003754/0.1388, allocations: 2.758 MB / 490.7 MB, free: 8.965 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001892/0.1407, allocations: 1.024 MB / 491.7 MB, free: 7.938 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002148/0.1429, allocations: 1.237 MB / 493 MB, free: 6.695 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008091/0.1437, allocations: 308 kB / 493.3 MB, free: 6.395 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00165/0.1454, allocations: 0.7063 MB / 494 MB, free: 5.688 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001251/0.1466, allocations: 0.974 MB / 494.9 MB, free: 4.711 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002338/0.149, allocations: 1.489 MB / 496.4 MB, free: 3.215 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004925/0.1539, allocations: 3.887 MB / 0.4886 GB, free: 15.32 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.1539, allocations: 0 / 0.4886 GB, free: 15.32 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.154, allocations: 0 / 0.4886 GB, free: 15.32 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000178/0.1541, allocations: 0 / 0.4886 GB, free: 15.32 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.01086/0.165, allocations: 4.16 MB / 0.4926 GB, free: 11.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.1651, allocations: 8.031 kB / 0.4927 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009493/0.166, allocations: 460.3 kB / 0.4931 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000623/0.1667, allocations: 293.2 kB / 0.4934 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001735/0.1684, allocations: 1.135 MB / 0.4945 GB, free: 9.156 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001419/0.1686, allocations: 217.8 kB / 0.4947 GB, free: 8.941 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003738/0.1689, allocations: 295.8 kB / 0.495 GB, free: 8.652 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007601/0.1765, allocations: 4.74 MB / 0.4996 GB, free: 3.441 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-05/0.1767, allocations: 31.72 kB / 0.4996 GB, free: 3.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002366/0.1769, allocations: 128 kB / 0.4998 GB, free: 3.285 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005186/0.1774, allocations: 440.2 kB / 0.5002 GB, free: 2.852 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1933/0.3708, allocations: 3.366 MB / 0.5035 GB, free: 42.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02028/0.3911, allocations: 21.56 MB / 0.5245 GB, free: 26.59 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004808/0.3959, allocations: 1.911 MB / 0.5264 GB, free: 25.68 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009065/0.3968, allocations: 0.7033 MB / 0.5271 GB, free: 25.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005474/0.4023, allocations: 5.551 MB / 0.5325 GB, free: 21.12 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.859e-05/0.4024, allocations: 40.84 kB / 0.5325 GB, free: 21.08 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 2.345e-06/0.4024, allocations: 0 / 0.5325 GB, free: 21.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.01952/0.4219, allocations: 9.563 MB / 0.5419 GB, free: 15.89 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.927e-05/0.422, allocations: 67.44 kB / 0.5419 GB, free: 15.83 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001789/0.4238, allocations: 1.814 MB / 0.5437 GB, free: 14.46 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.495e-05/0.4239, allocations: 45.7 kB / 0.5437 GB, free: 14.41 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005787/0.4244, allocations: 1.728 MB / 0.5454 GB, free: 12.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002655/0.4247, allocations: 0.5245 MB / 0.5459 GB, free: 12.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006788/0.4254, allocations: 0.7463 MB / 0.5467 GB, free: 11.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.529e-05/0.4255, allocations: 357.9 kB / 0.547 GB, free: 11.05 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001358/0.4268, allocations: 1.225 MB / 0.5482 GB, free: 9.828 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002125/0.429, allocations: 3.405 MB / 0.5515 GB, free: 5.344 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004061/0.433, allocations: 5.12 MB / 0.5565 GB, free: 15.14 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.52e-05/0.4331, allocations: 24 kB / 0.5566 GB, free: 15.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.007197/0.4403, allocations: 4.817 MB / 0.5613 GB, free: 10.29 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.912e-05/0.4404, allocations: 36 kB / 0.5613 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.811e-05/0.4404, allocations: 80 kB / 0.5614 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008543/0.4413, allocations: 375.5 kB / 0.5617 GB, free: 9.812 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002607/0.4439, allocations: 0.8931 MB / 0.5626 GB, free: 8.918 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005108/0.449, allocations: 4.294 MB / 0.5668 GB, free: 4.484 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002274/0.4513, allocations: 215.5 kB / 0.567 GB, free: 4.273 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004175/0.4518, allocations: 236 kB / 0.5672 GB, free: 4.043 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.001647/0.4534, allocations: 0.9242 MB / 0.5681 GB, free: 3.105 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003644/0.4538, allocations: 189.6 kB / 0.5683 GB, free: 2.918 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004091/0.4579, allocations: 2.599 MB / 0.5708 GB, free: 308 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.47e-05/0.4579, allocations: 12 kB / 0.5709 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/0.4579, allocations: 4 kB / 0.5709 GB, free: 292 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.578e-05/0.458, allocations: 7.922 kB / 0.5709 GB, free: 288 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01106/0.469, allocations: 6.434 MB / 0.5772 GB, free: 9.762 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/0.4691, allocations: 4 kB / 0.5772 GB, free: 9.758 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001065/0.4701, allocations: 271.5 kB / 0.5774 GB, free: 9.492 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006541/0.4708, allocations: 252.6 kB / 0.5777 GB, free: 9.242 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001043/0.4709, allocations: 40.12 kB / 0.5777 GB, free: 9.203 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004/0.4749, allocations: 3.45 MB / 0.5811 GB, free: 5.613 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.475, allocations: 4 kB / 0.5811 GB, free: 5.609 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005027/0.48, allocations: 3.903 MB / 0.5849 GB, free: 1.648 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004326/0.4804, allocations: 249.2 kB / 0.5851 GB, free: 1.387 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002964/0.4807, allocations: 31.94 kB / 0.5851 GB, free: 1.355 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008441/0.4816, allocations: 103.8 kB / 0.5852 GB, free: 1.254 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001864/0.4818, allocations: 96.81 kB / 0.5853 GB, free: 1.156 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.392e-05/0.4819, allocations: 36 kB / 0.5854 GB, free: 1.121 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001569/0.4835, allocations: 1.096 MB / 0.5864 GB, free: 36 kB / 414.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4835, allocations: 0 / 0.5864 GB, free: 36 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.002582/0.4861, allocations: 0.6329 MB / 0.5871 GB, free: 15.4 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.005324/0.4914, allocations: 4.483 MB / 0.5914 GB, free: 10.84 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004936/0.4963, allocations: 3.33 MB / 0.5947 GB, free: 7.512 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.4964, allocations: 0 / 0.5947 GB, free: 7.512 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001706/0.4981, allocations: 1.276 MB / 0.5959 GB, free: 6.219 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002011/0.5001, allocations: 439.4 kB / 0.5964 GB, free: 5.816 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03559/0.5357, allocations: 24.47 MB / 0.6203 GB, free: 10.36 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002068/0.5378, allocations: 1.826 MB / 0.622 GB, free: 8.492 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002123/0.54, allocations: 0.8589 MB / 0.6229 GB, free: 7.629 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001461/0.5414, allocations: 1.054 MB / 0.6239 GB, free: 6.574 MB / 462.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5415, allocations: 3.938 kB / 0.6239 GB, free: 6.57 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08207/0.6235, allocations: 46.22 MB / 0.669 GB, free: 8.527 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.69/14.31, allocations: 6.875 kB / 0.669 GB, free: 8.523 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 & /home/hudson/saved_omc/OMSimulator/install/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)