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.001063/0.001063, allocations: 172.5 kB / 7.646 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 221.5 MB / 229.6 MB, free: 7.555 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.0008974/0.0008974, allocations: 98.14 kB / 280.5 MB, free: 5.301 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03805/0.03805, allocations: 8.837 MB / 340.1 MB, free: 6.387 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.68e-05/1.681e-05, allocations: 1 kB / 398.8 MB, free: 47.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09726/0.0973, allocations: 52.4 MB / 451.2 MB, free: 4.41 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.394/0.4914, allocations: 95.71 MB / 0.5341 GB, free: 23.78 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002555/0.4917, allocations: 75.81 kB / 0.5341 GB, free: 23.78 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2466/0.7382, allocations: 106.6 MB / 0.6383 GB, free: 10.36 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.7383, allocations: 0 / 0.6383 GB, free: 10.36 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.00018/0.7385, allocations: 92 kB / 0.6384 GB, free: 10.27 MB / 410.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.01922/0.7577, allocations: 4.775 MB / 0.643 GB, free: 5.434 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.918e-05/0.7578, allocations: 16.02 kB / 0.643 GB, free: 5.418 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01837/0.7762, allocations: 3.702 MB / 0.6467 GB, free: 1.703 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008203/0.7845, allocations: 2.855 MB / 0.6495 GB, free: 14.82 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002926/0.7848, allocations: 172 kB / 0.6496 GB, free: 14.65 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00317/0.788, allocations: 299.9 kB / 0.6499 GB, free: 14.36 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01961/0.8076, allocations: 9.003 MB / 0.6587 GB, free: 5.348 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02791/0.8356, allocations: 13.06 MB / 0.6714 GB, free: 7.094 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001809/0.8358, allocations: 67.38 kB / 0.6715 GB, free: 7.027 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000871/0.8367, allocations: 36 kB / 0.6715 GB, free: 6.992 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002214/0.8389, allocations: 1.583 MB / 0.6731 GB, free: 5.414 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.369/1.208, allocations: 56.18 MB / 0.728 GB, free: 65.33 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005337/1.213, allocations: 3.635 MB / 0.7315 GB, free: 64.1 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001767/1.215, allocations: 1.237 MB / 0.7327 GB, free: 64.06 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01093/1.226, allocations: 5.541 MB / 0.7381 GB, free: 61.77 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.229e-05/1.226, allocations: 54.94 kB / 0.7382 GB, free: 61.73 MB / 458.7 MB Notification: Performance of pre-optimization done (n=202): time 9.739e-06/1.226, allocations: 0 / 0.7382 GB, free: 61.73 MB / 458.7 MB Notification: Performance of matching and sorting (n=224): time 0.01806/1.244, allocations: 9.846 MB / 0.7478 GB, free: 58.23 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5e-05/1.244, allocations: 147.9 kB / 0.7479 GB, free: 58.08 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006108/1.25, allocations: 3.983 MB / 0.7518 GB, free: 57.66 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004427/1.251, allocations: 35.14 kB / 0.7519 GB, free: 57.63 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002208/1.253, allocations: 4.211 MB / 0.756 GB, free: 55.16 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008604/1.254, allocations: 0.8652 MB / 0.7568 GB, free: 54.68 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003393/1.254, allocations: 2.906 kB / 0.7568 GB, free: 54.68 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003778/1.255, allocations: 0.6719 MB / 0.7575 GB, free: 54.35 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003187/1.258, allocations: 2.339 MB / 0.7598 GB, free: 54.33 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007198/1.265, allocations: 7.7 MB / 0.7673 GB, free: 47.34 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006801/1.272, allocations: 4.35 MB / 0.7715 GB, free: 47.29 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001357/1.272, allocations: 56.31 kB / 0.7716 GB, free: 47.29 MB / 458.7 MB Notification: Performance of matching and sorting (n=1126) (initialization): time 0.01691/1.289, allocations: 8.948 MB / 0.7803 GB, free: 44.77 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001208/1.289, allocations: 88.75 kB / 0.7804 GB, free: 44.77 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002133/1.29, allocations: 191.8 kB / 0.7806 GB, free: 44.77 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007984/1.29, allocations: 489.7 kB / 0.7811 GB, free: 44.71 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005936/1.296, allocations: 1.937 MB / 0.7829 GB, free: 44.47 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004306/1.301, allocations: 3.463 MB / 0.7863 GB, free: 42.36 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007284/1.308, allocations: 262.7 kB / 0.7866 GB, free: 42.34 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001699/1.31, allocations: 0.5262 MB / 0.7871 GB, free: 42.27 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 880 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1057): * Single equations (assignments): 1048 * 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 {(3,88.9%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00154/1.311, allocations: 0.5711 MB / 0.7876 GB, free: 41.8 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0041/1.315, allocations: 2.55 MB / 0.7901 GB, free: 40.84 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009614/1.316, allocations: 379.2 kB / 0.7905 GB, free: 40.63 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004276/1.321, allocations: 2.202 MB / 0.7927 GB, free: 39.83 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001708/1.321, allocations: 40.02 kB / 0.7927 GB, free: 39.83 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.397e-05/1.321, allocations: 3.969 kB / 0.7927 GB, free: 39.83 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.041e-05/1.321, allocations: 10.41 kB / 0.7927 GB, free: 39.83 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01408/1.335, allocations: 6.542 MB / 0.7991 GB, free: 37.38 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.842e-05/1.335, allocations: 2.875 kB / 0.7991 GB, free: 37.38 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00131/1.336, allocations: 285.7 kB / 0.7994 GB, free: 37.36 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000543/1.337, allocations: 199.2 kB / 0.7996 GB, free: 37.32 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001238/1.337, allocations: 25.09 kB / 0.7996 GB, free: 37.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002544/1.34, allocations: 2.597 MB / 0.8021 GB, free: 34.97 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.47e-05/1.34, allocations: 4 kB / 0.8021 GB, free: 34.97 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005381/1.345, allocations: 4.874 MB / 0.8069 GB, free: 30.38 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00116/1.346, allocations: 446.8 kB / 0.8073 GB, free: 29.94 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004039/1.347, allocations: 8 kB / 0.8073 GB, free: 29.93 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001393/1.348, allocations: 61.02 kB / 0.8074 GB, free: 29.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002231/1.348, allocations: 114.7 kB / 0.8075 GB, free: 29.82 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001302/1.348, allocations: 64.89 kB / 0.8075 GB, free: 29.77 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004414/1.353, allocations: 2.612 MB / 0.8101 GB, free: 27.47 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.4e-07/1.353, allocations: 0 / 0.8101 GB, free: 27.47 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008345/1.361, allocations: 1.027 MB / 0.8111 GB, free: 26.45 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (158): * Single equations (assignments): 149 * 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.00648/1.368, allocations: 6.186 MB / 0.8171 GB, free: 20.63 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01073/1.379, allocations: 5.476 MB / 0.8225 GB, free: 15.65 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.16e-05/1.379, allocations: 0 / 0.8225 GB, free: 15.65 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002213/1.381, allocations: 1.358 MB / 0.8238 GB, free: 14.4 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002965/1.384, allocations: 366.9 kB / 0.8242 GB, free: 14.09 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02965/1.414, allocations: 10.73 MB / 0.8346 GB, free: 4.684 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004658/1.418, allocations: 4.173 MB / 0.8387 GB, free: 1.504 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.006688/1.425, allocations: 2.604 MB / 0.8413 GB, free: 0 / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01151/1.436, allocations: 3.036 MB / 0.8442 GB, free: 15.75 MB / 474.7 MB Notification: Performance of SimCode: time 1.563e-06/1.437, allocations: 0 / 0.8442 GB, free: 15.75 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4407/1.877, allocations: 83.43 MB / 0.9257 GB, free: 99.45 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001489/1.877, allocations: 133.9 kB / 0.9258 GB, free: 99.26 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.716/6.594, allocations: 0 / 0.9258 GB, free: 99.26 MB / 474.7 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/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)