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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003053/0.003053, allocations: 183.6 kB / 7.46 MB, free: 2.512 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.175/1.175, allocations: 221.4 MB / 229.3 MB, free: 3.074 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.0008886/0.0008886, allocations: 87.34 kB / 280.1 MB, free: 1.309 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03839/0.03839, allocations: 8.831 MB / 339.7 MB, free: 5.762 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1776/0.216, allocations: 58.49 MB / 398.2 MB, free: 67.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07994/0.296, allocations: 52.4 MB / 450.6 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2606/0.5566, allocations: 95.98 MB / 0.5338 GB, free: 13.47 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002022/0.5569, allocations: 78.28 kB / 0.5339 GB, free: 13.44 MB / 362.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.2869/0.8438, allocations: 110.9 MB / 0.6422 GB, free: 4.934 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/0.8439, allocations: 8 kB / 0.6422 GB, free: 4.926 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01806/0.8619, allocations: 3.05 MB / 0.6451 GB, free: 1.863 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2408/1.103, allocations: 2.844 MB / 0.6479 GB, free: 84.75 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005509/1.103, allocations: 172 kB / 0.6481 GB, free: 84.75 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004356/1.108, allocations: 302 kB / 0.6484 GB, free: 84.75 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01579/1.124, allocations: 9.147 MB / 0.6573 GB, free: 84.71 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01899/1.143, allocations: 13.2 MB / 0.6702 GB, free: 81.56 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001414/1.143, allocations: 72.5 kB / 0.6703 GB, free: 81.56 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000758/1.144, allocations: 39.62 kB / 0.6703 GB, free: 81.56 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001571/1.145, allocations: 1.674 MB / 0.6719 GB, free: 81.55 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05595/1.201, allocations: 56.98 MB / 0.7276 GB, free: 46.14 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003391/1.205, allocations: 2.442 MB / 0.73 GB, free: 44.86 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00181/1.206, allocations: 1.236 MB / 0.7312 GB, free: 44.41 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00933/1.216, allocations: 5.56 MB / 0.7366 GB, free: 41.14 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.022e-05/1.216, allocations: 52.02 kB / 0.7367 GB, free: 41.08 MB / 458.7 MB Notification: Performance of pre-optimization done (n=208): time 5.34e-06/1.216, allocations: 0 / 0.7367 GB, free: 41.08 MB / 458.7 MB Notification: Performance of matching and sorting (n=230): time 0.01748/1.233, allocations: 10.16 MB / 0.7466 GB, free: 36.16 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.509e-05/1.233, allocations: 146.9 kB / 0.7467 GB, free: 36 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007421/1.241, allocations: 4.044 MB / 0.7507 GB, free: 34.43 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003476/1.241, allocations: 26.98 kB / 0.7507 GB, free: 34.4 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002145/1.243, allocations: 4.072 MB / 0.7547 GB, free: 31.24 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009472/1.244, allocations: 0.8858 MB / 0.7555 GB, free: 30.6 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006694/1.245, allocations: 3.969 kB / 0.7555 GB, free: 30.6 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006752/1.246, allocations: 0.6726 MB / 0.7562 GB, free: 30.14 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004748/1.25, allocations: 2.446 MB / 0.7586 GB, free: 29.27 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007366/1.258, allocations: 7.801 MB / 0.7662 GB, free: 21.03 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0072/1.265, allocations: 4.513 MB / 0.7706 GB, free: 19.3 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003349/1.265, allocations: 60.78 kB / 0.7707 GB, free: 19.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.01615/1.282, allocations: 9.102 MB / 0.7796 GB, free: 11.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/1.282, allocations: 11.69 kB / 0.7796 GB, free: 11.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004271/1.282, allocations: 196 kB / 0.7798 GB, free: 11 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001042/1.283, allocations: 486.3 kB / 0.7802 GB, free: 10.57 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006436/1.29, allocations: 1.944 MB / 0.7821 GB, free: 8.848 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00364/1.293, allocations: 3.295 MB / 0.7853 GB, free: 5.738 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00667/1.3, allocations: 224.9 kB / 0.7855 GB, free: 5.535 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001454/1.301, allocations: 0.5365 MB / 0.7861 GB, free: 5.012 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 (1063): * Single equations (assignments): 1054 * 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.001718/1.303, allocations: 0.5638 MB / 0.7866 GB, free: 4.441 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008365/1.304, allocations: 386.9 kB / 0.787 GB, free: 4.062 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003912/1.308, allocations: 2.329 MB / 0.7893 GB, free: 2.07 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001658/1.308, allocations: 35.56 kB / 0.7893 GB, free: 2.039 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-05/1.308, allocations: 4 kB / 0.7893 GB, free: 2.035 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.666e-05/1.308, allocations: 11.45 kB / 0.7893 GB, free: 2.031 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01517/1.323, allocations: 6.806 MB / 0.796 GB, free: 12.69 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.327e-05/1.323, allocations: 0 / 0.796 GB, free: 12.69 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00146/1.325, allocations: 299.3 kB / 0.7962 GB, free: 12.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006266/1.326, allocations: 200 kB / 0.7964 GB, free: 12.29 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001983/1.326, allocations: 18.91 kB / 0.7965 GB, free: 12.27 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003145/1.329, allocations: 2.515 MB / 0.7989 GB, free: 9.859 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/1.329, allocations: 4.547 kB / 0.7989 GB, free: 9.855 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006946/1.336, allocations: 5.133 MB / 0.8039 GB, free: 5.027 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009742/1.346, allocations: 7.245 MB / 0.811 GB, free: 14.48 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001407/1.347, allocations: 447.1 kB / 0.8114 GB, free: 14.04 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001008/1.348, allocations: 7.656 kB / 0.8114 GB, free: 14.03 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001977/1.35, allocations: 39.19 kB / 0.8115 GB, free: 14.01 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002229/1.35, allocations: 94.64 kB / 0.8116 GB, free: 13.95 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001793/1.351, allocations: 66.78 kB / 0.8116 GB, free: 13.89 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.005521/1.356, allocations: 2.667 MB / 0.8142 GB, free: 11.54 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009062/1.365, allocations: 1.032 MB / 0.8152 GB, free: 10.52 MB / 490.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 (164): * Single equations (assignments): 155 * 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.000749/1.366, allocations: 159 kB / 0.8154 GB, free: 10.36 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01039/1.376, allocations: 5.69 MB / 0.8209 GB, free: 5.184 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.326e-06/1.376, allocations: 0 / 0.8209 GB, free: 5.184 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002434/1.379, allocations: 1.409 MB / 0.8223 GB, free: 3.895 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002445/1.381, allocations: 363.3 kB / 0.8227 GB, free: 3.582 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1704/1.552, allocations: 9.345 MB / 0.8318 GB, free: 167.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006676/1.558, allocations: 4.542 MB / 0.8362 GB, free: 166.6 MB / 490.7 MB Notification: Performance of SimCode: time 1.092e-06/1.558, allocations: 2.406 kB / 0.8362 GB, free: 166.6 MB / 490.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)