Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.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.PowerDistanceDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PowerDistanceDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo",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.001498/0.001498, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001369/0.001369, allocations: 191 kB / 16.14 MB, free: 6.707 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.36/1.36, allocations: 222.9 MB / 239.8 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1477/0.1477, allocations: 9.097 MB / 299 MB, free: 1.91 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 60.12 kB / 361.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08723/0.08841, allocations: 51.44 MB / 412.8 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.1868/0.2753, allocations: 44.37 MB / 457.2 MB, free: 16.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01844/0.2938, allocations: 9.284 MB / 466.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008168/0.302, allocations: 165.8 kB / 466.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001295/0.3033, allocations: 373.5 kB / 467 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003383/0.3067, allocations: 1.553 MB / 468.5 MB, free: 9.633 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004595/0.3072, allocations: 151.3 kB / 468.7 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0036/0.3108, allocations: 4.315 MB / 473 MB, free: 8.055 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001143/0.312, allocations: 1.044 MB / 474 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001119/0.3131, allocations: 0.9589 MB / 475 MB, free: 7.273 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001633/0.3147, allocations: 1.642 MB / 476.6 MB, free: 6.688 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005424/0.3153, allocations: 175.4 kB / 476.8 MB, free: 6.688 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001904/0.3172, allocations: 0.806 MB / 477.6 MB, free: 6.496 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001335/0.3186, allocations: 1.416 MB / 479 MB, free: 6.008 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001409/0.32, allocations: 1.844 MB / 480.9 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006046/0.326, allocations: 5.601 MB / 486.5 MB, free: 2.477 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.3261, allocations: 0 / 486.5 MB, free: 2.477 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3261, allocations: 1.375 kB / 486.5 MB, free: 2.477 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001834/0.3263, allocations: 0 / 486.5 MB, free: 2.477 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: 1467 * Number of variables: 1467 Notification: Performance of Generate backend data structure: time 0.0116/0.3379, allocations: 4.569 MB / 491 MB, free: 56 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.3379, allocations: 15.62 kB / 491.1 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001199/0.3391, allocations: 0.6723 MB / 491.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00755/0.3467, allocations: 1.907 MB / 493.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00326/0.35, allocations: 1.588 MB / 495.2 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000135/0.3501, allocations: 195.8 kB / 495.4 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004749/0.3506, allocations: 255.4 kB / 495.7 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01393/0.3645, allocations: 9.786 MB / 0.4936 GB, free: 7.598 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-05/0.3646, allocations: 27.75 kB / 0.4936 GB, free: 7.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003477/0.365, allocations: 119.8 kB / 0.4937 GB, free: 7.453 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003386/0.3684, allocations: 2.303 MB / 0.496 GB, free: 5.148 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0176/0.386, allocations: 8.483 MB / 0.5043 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04637/0.4324, allocations: 30.7 MB / 0.5343 GB, free: 13.31 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007109/0.4396, allocations: 2.795 MB / 0.537 GB, free: 10.4 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002016/0.4416, allocations: 1.056 MB / 0.538 GB, free: 9.344 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009208/0.4509, allocations: 5.832 MB / 0.5437 GB, free: 3.02 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.158e-05/0.4509, allocations: 55.86 kB / 0.5438 GB, free: 2.953 MB / 414.1 MB Notification: Performance of pre-optimization done (n=159): time 3.907e-06/0.4509, allocations: 0 / 0.5438 GB, free: 2.953 MB / 414.1 MB Notification: Performance of matching and sorting (n=181): time 0.01669/0.4676, allocations: 8.261 MB / 0.5518 GB, free: 10.62 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.262e-05/0.4677, allocations: 64.72 kB / 0.5519 GB, free: 10.54 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004179/0.4719, allocations: 3.202 MB / 0.555 GB, free: 7.32 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001296/0.472, allocations: 57.7 kB / 0.5551 GB, free: 7.258 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001558/0.4736, allocations: 2.59 MB / 0.5576 GB, free: 4.633 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005533/0.4742, allocations: 0.6786 MB / 0.5583 GB, free: 3.945 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001229/0.4754, allocations: 0.984 MB / 0.5592 GB, free: 2.949 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.519e-05/0.4755, allocations: 309 kB / 0.5595 GB, free: 2.645 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00243/0.4779, allocations: 1.567 MB / 0.5611 GB, free: 1.07 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004093/0.482, allocations: 4.361 MB / 0.5653 GB, free: 11.32 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00703/0.4891, allocations: 6.376 MB / 0.5715 GB, free: 3.582 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.184e-05/0.4892, allocations: 28 kB / 0.5716 GB, free: 3.555 MB / 446.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.159/0.6481, allocations: 6.03 MB / 0.5775 GB, free: 123.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.821e-05/0.6482, allocations: 47.84 kB / 0.5775 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.47e-05/0.6483, allocations: 95.91 kB / 0.5776 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007968/0.6491, allocations: 378.8 kB / 0.5779 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003012/0.6521, allocations: 1.098 MB / 0.579 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003358/0.6555, allocations: 3.397 MB / 0.5823 GB, free: 121.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003222/0.6588, allocations: 252 kB / 0.5826 GB, free: 121.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003682/0.6591, allocations: 297.7 kB / 0.5829 GB, free: 121.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 446 * Number of states: 0 () * Number of discrete variables: 30 (distance.arrowColor[3],distance.arrowColor[2],distance.arrowColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[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 (597): * Single equations (assignments): 591 * Array equations: 5 * 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,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00273/0.6619, allocations: 1.887 MB / 0.5847 GB, free: 121.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003727/0.6623, allocations: 272.7 kB / 0.585 GB, free: 121.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003519/0.6658, allocations: 2.425 MB / 0.5873 GB, free: 120.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001728/0.666, allocations: 41.73 kB / 0.5874 GB, free: 120.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.134e-06/0.666, allocations: 3.188 kB / 0.5874 GB, free: 120.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.379e-05/0.666, allocations: 6.703 kB / 0.5874 GB, free: 120.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01044/0.6764, allocations: 6.901 MB / 0.5941 GB, free: 118.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.646e-06/0.6765, allocations: 3 kB / 0.5941 GB, free: 118.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009448/0.6774, allocations: 265.3 kB / 0.5944 GB, free: 118.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005918/0.678, allocations: 239.7 kB / 0.5946 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.746e-05/0.6781, allocations: 39.48 kB / 0.5946 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002413/0.6806, allocations: 2.72 MB / 0.5973 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.6806, allocations: 6.625 kB / 0.5973 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004448/0.685, allocations: 3.74 MB / 0.601 GB, free: 114.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005799/0.6856, allocations: 349.4 kB / 0.6013 GB, free: 114.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003084/0.6859, allocations: 35.77 kB / 0.6013 GB, free: 114.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009447/0.6869, allocations: 74.47 kB / 0.6014 GB, free: 114.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001716/0.6871, allocations: 105 kB / 0.6015 GB, free: 114.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.891e-05/0.6872, allocations: 65.42 kB / 0.6016 GB, free: 114.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002381/0.6896, allocations: 2.036 MB / 0.6035 GB, free: 114 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6896, allocations: 0 / 0.6035 GB, free: 114 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003233/0.6928, allocations: 0.8414 MB / 0.6044 GB, free: 113.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (143): * Single equations (assignments): 137 * Array equations: 5 * 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,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005214/0.698, allocations: 4.388 MB / 0.6087 GB, free: 111.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006186/0.7042, allocations: 3.844 MB / 0.6124 GB, free: 110.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.136e-06/0.7043, allocations: 0 / 0.6124 GB, free: 110.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001806/0.7061, allocations: 1.205 MB / 0.6136 GB, free: 110 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002274/0.7084, allocations: 443 kB / 0.614 GB, free: 109.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04731/0.7557, allocations: 39.87 MB / 0.6529 GB, free: 74.82 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002445/0.7582, allocations: 3.004 MB / 0.6559 GB, free: 72.42 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00325/0.7614, allocations: 1.44 MB / 0.6573 GB, free: 71.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001648/0.7631, allocations: 1.687 MB / 0.6589 GB, free: 69.96 MB / 446.1 MB Notification: Performance of SimCode: time 1.793e-06/0.7631, allocations: 0 / 0.6589 GB, free: 69.96 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06864/0.8318, allocations: 56.31 MB / 0.7139 GB, free: 14.06 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000254/0.8321, allocations: 227.8 kB / 0.7141 GB, free: 13.79 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.997/3.829, allocations: 0 / 0.7141 GB, free: 13.79 MB / 446.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe 2>&1)