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/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/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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.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/Complex 4.0.0+maint.om/package.mo): time 0.004873/0.004873, allocations: 172 kB / 15.12 MB, free: 5.992 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.23/1.23, allocations: 223.2 MB / 239 MB, free: 1.801 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000917/0.0009171, allocations: 92.5 kB / 290.2 MB, free: 13.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04076/0.04076, allocations: 8.94 MB / 350.3 MB, free: 2.094 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003/0.0003001, allocations: 8.094 kB / 413.2 MB, free: 88.57 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08196/0.08227, allocations: 52.4 MB / 465.6 MB, free: 41.63 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2777/0.36, allocations: 96.44 MB / 0.5489 GB, free: 16.06 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002208/0.3603, allocations: 81.72 kB / 0.5489 GB, free: 16.06 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2413/0.6016, allocations: 109.2 MB / 0.6556 GB, free: 9.812 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.6017, allocations: 0 / 0.6556 GB, free: 9.812 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002311/0.6019, allocations: 92 kB / 0.6557 GB, free: 9.723 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2088 * Number of variables: 2088 Notification: Performance of Generate backend data structure: time 0.01545/0.6174, allocations: 4.93 MB / 0.6605 GB, free: 4.723 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.6174, allocations: 12.02 kB / 0.6605 GB, free: 4.711 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004129/0.6216, allocations: 1.027 MB / 0.6615 GB, free: 3.676 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01653/0.6381, allocations: 3.71 MB / 0.6652 GB, free: 15.95 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008764/0.6469, allocations: 2.841 MB / 0.6679 GB, free: 13.06 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004639/0.6474, allocations: 410.3 kB / 0.6683 GB, free: 12.66 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003265/0.6507, allocations: 0.5036 MB / 0.6688 GB, free: 12.16 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02973/0.6804, allocations: 14.11 MB / 0.6826 GB, free: 12.86 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002382/0.6807, allocations: 59.5 kB / 0.6827 GB, free: 12.8 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002099/0.6828, allocations: 251.8 kB / 0.6829 GB, free: 12.55 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002358/0.6852, allocations: 1.595 MB / 0.6845 GB, free: 10.95 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2034/0.8886, allocations: 12.35 MB / 0.6965 GB, free: 85.31 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06153/0.9502, allocations: 57.78 MB / 0.7529 GB, free: 52.16 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007154/0.9574, allocations: 3.89 MB / 0.7567 GB, free: 50.92 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009811/0.9672, allocations: 6.833 MB / 0.7634 GB, free: 47.75 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.073e-05/0.9673, allocations: 58.61 kB / 0.7635 GB, free: 47.71 MB / 458.7 MB Notification: Performance of pre-optimization done (n=206): time 5.33e-06/0.9673, allocations: 0 / 0.7635 GB, free: 47.71 MB / 458.7 MB Notification: Performance of matching and sorting (n=228): time 0.0196/0.9869, allocations: 12.33 MB / 0.7755 GB, free: 42.51 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.519e-05/0.987, allocations: 160.8 kB / 0.7757 GB, free: 42.34 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006993/0.994, allocations: 4.768 MB / 0.7803 GB, free: 40.56 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004115/0.9945, allocations: 62.09 kB / 0.7804 GB, free: 40.51 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002134/0.9966, allocations: 4.099 MB / 0.7844 GB, free: 37.36 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008501/0.9975, allocations: 0.8931 MB / 0.7853 GB, free: 36.72 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003537/0.9978, allocations: 162.4 kB / 0.7854 GB, free: 36.59 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003389/0.9982, allocations: 0.6534 MB / 0.786 GB, free: 36.14 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00336/1.002, allocations: 2.445 MB / 0.7884 GB, free: 35.33 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005084/1.007, allocations: 7.561 MB / 0.7958 GB, free: 27.61 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005515/1.012, allocations: 4.341 MB / 0.8001 GB, free: 26.04 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001413/1.012, allocations: 54.91 kB / 0.8001 GB, free: 26.04 MB / 458.7 MB Notification: Performance of matching and sorting (n=1076) (initialization): time 0.01531/1.028, allocations: 9.844 MB / 0.8097 GB, free: 22.16 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001603/1.028, allocations: 85.66 kB / 0.8098 GB, free: 22.16 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002449/1.028, allocations: 180.2 kB / 0.81 GB, free: 22.16 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000831/1.029, allocations: 483.7 kB / 0.8104 GB, free: 22.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005396/1.034, allocations: 1.847 MB / 0.8122 GB, free: 21.87 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003914/1.038, allocations: 3.613 MB / 0.8158 GB, free: 19.64 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006359/1.045, allocations: 405.3 kB / 0.8162 GB, free: 19.49 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001543/1.046, allocations: 0.4979 MB / 0.8166 GB, free: 19.43 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 832 * Number of states: 0 () * Number of discrete variables: 44 (distance.arrow.arrowLine.twoHeadedArrow,distance.arrow.headAtOrigin,distance.arrowColor[3],distance.arrowColor[2],distance.arrowColor[1],distance.world.gravityArrowColor[3],distance.world.gravityArrowColor[2],distance.world.gravityArrowColor[1],distance.world.axisColor_x[3],distance.world.axisColor_x[2],distance.world.axisColor_x[1],distance.world.groundColor[3],distance.world.groundColor[2],distance.world.groundColor[1],distance.world.gravitySphereColor[3],distance.world.gravitySphereColor[2],distance.world.gravitySphereColor[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 (1007): * Single equations (assignments): 998 * Array equations: 8 * 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%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006445/1.053, allocations: 2.906 MB / 0.8195 GB, free: 18 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001017/1.054, allocations: 425.6 kB / 0.8199 GB, free: 17.76 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004622/1.058, allocations: 2.437 MB / 0.8223 GB, free: 16.75 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001415/1.059, allocations: 44.23 kB / 0.8223 GB, free: 16.71 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.775e-05/1.059, allocations: 4 kB / 0.8223 GB, free: 16.71 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.933e-05/1.059, allocations: 22.95 kB / 0.8223 GB, free: 16.7 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01675/1.075, allocations: 8.111 MB / 0.8303 GB, free: 10.01 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.801e-05/1.075, allocations: 4 kB / 0.8303 GB, free: 10.01 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001321/1.077, allocations: 294.8 kB / 0.8305 GB, free: 9.766 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005661/1.077, allocations: 212.2 kB / 0.8307 GB, free: 9.605 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002775/1.078, allocations: 48.81 kB / 0.8308 GB, free: 9.562 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002609/1.08, allocations: 2.78 MB / 0.8335 GB, free: 6.922 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/1.08, allocations: 11.55 kB / 0.8335 GB, free: 6.914 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006502/1.087, allocations: 5.433 MB / 0.8388 GB, free: 1.816 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001571/1.088, allocations: 0.5069 MB / 0.8393 GB, free: 1.312 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001159/1.09, allocations: 33.88 kB / 0.8393 GB, free: 1.281 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002123/1.092, allocations: 91.69 kB / 0.8394 GB, free: 1.219 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003161/1.092, allocations: 120.2 kB / 0.8396 GB, free: 1.137 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001955/1.092, allocations: 73 kB / 0.8396 GB, free: 1.074 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01173/1.104, allocations: 3.741 MB / 0.8433 GB, free: 15.37 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.01e-07/1.104, allocations: 4 kB / 0.8433 GB, free: 15.36 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007883/1.112, allocations: 1.213 MB / 0.8445 GB, free: 14.16 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (162): * Single equations (assignments): 153 * Array equations: 8 * 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%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008375/1.12, allocations: 7.041 MB / 0.8513 GB, free: 7.504 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009732/1.13, allocations: 5.804 MB / 0.857 GB, free: 2.367 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.596e-06/1.13, allocations: 3.172 kB / 0.857 GB, free: 2.367 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002324/1.133, allocations: 1.449 MB / 0.8584 GB, free: 1.066 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003147/1.136, allocations: 0.5275 MB / 0.8589 GB, free: 0.6211 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2885/1.424, allocations: 168.3 MB / 1.023 GB, free: 40.51 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004238/1.429, allocations: 4.178 MB / 1.027 GB, free: 39.68 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.005914/1.434, allocations: 2.531 MB / 1.03 GB, free: 39.48 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002846/1.437, allocations: 2.494 MB / 1.032 GB, free: 39.47 MB / 0.5417 GB Notification: Performance of SimCode: time 6.01e-07/1.437, allocations: 2.188 kB / 1.032 GB, free: 39.47 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3041/1.741, allocations: 92.97 MB / 1.123 GB, free: 157.5 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001518/1.742, allocations: 192.2 kB / 1.123 GB, free: 157.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.059/5.801, allocations: 0 / 1.123 GB, free: 157.2 MB / 0.5417 GB (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/linux/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)