Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.FreeBody.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.FreeBody,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_FreeBody",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.FreeBody,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_FreeBody",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.001002/0.001002, allocations: 183.4 kB / 7.462 MB, free: 488 kB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.176/1.176, allocations: 221.4 MB / 229.3 MB, free: 7.777 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009254/0.0009254, allocations: 105 kB / 280.1 MB, free: 5.145 MB / 222.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03886/0.03886, allocations: 8.823 MB / 339.7 MB, free: 9.617 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.1966/0.2356, allocations: 58.5 MB / 398.2 MB, free: 71.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08268/0.3182, allocations: 52.39 MB / 450.6 MB, free: 18.77 MB / 302.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.26/0.5782, allocations: 82.69 MB / 0.5208 GB, free: 1.215 MB / 334.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001723/0.5785, allocations: 72.47 kB / 0.5209 GB, free: 1.184 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 902 * Number of variables: 902 Notification: Performance of Generate backend data structure: time 0.123/0.7015, allocations: 48.26 MB / 0.568 GB, free: 8.219 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/0.7015, allocations: 11.94 kB / 0.568 GB, free: 8.207 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008624/0.7102, allocations: 1.51 MB / 0.5695 GB, free: 6.691 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002963/0.7131, allocations: 1.41 MB / 0.5709 GB, free: 5.238 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.075e-05/0.7132, allocations: 72 kB / 0.5709 GB, free: 5.168 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004542/0.7137, allocations: 127.9 kB / 0.5711 GB, free: 5.043 MB / 382.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006339/0.72, allocations: 4.478 MB / 0.5754 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007764/0.7278, allocations: 5.753 MB / 0.581 GB, free: 10.56 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.81e-05/0.7279, allocations: 15.88 kB / 0.5811 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002977/0.7282, allocations: 7.938 kB / 0.5811 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008591/0.7291, allocations: 0.7464 MB / 0.5818 GB, free: 9.789 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02193/0.751, allocations: 17.44 MB / 0.5988 GB, free: 7.973 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001691/0.7527, allocations: 1.547 MB / 0.6003 GB, free: 6.309 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006615/0.7534, allocations: 0.4989 MB / 0.6008 GB, free: 5.809 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003273/0.7567, allocations: 2.051 MB / 0.6028 GB, free: 3.629 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.492e-05/0.7567, allocations: 39 kB / 0.6029 GB, free: 3.582 MB / 414.1 MB Notification: Performance of pre-optimization done (n=80): time 3.086e-06/0.7567, allocations: 3.938 kB / 0.6029 GB, free: 3.578 MB / 414.1 MB Notification: Performance of matching and sorting (n=80): time 0.0018/0.7585, allocations: 1.009 MB / 0.6039 GB, free: 2.559 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.872e-05/0.7586, allocations: 59.84 kB / 0.6039 GB, free: 2.488 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001971/0.7606, allocations: 1.535 MB / 0.6054 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.474e-05/0.7606, allocations: 29.7 kB / 0.6054 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009875/0.7616, allocations: 1.665 MB / 0.6071 GB, free: 15.21 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002647/0.7619, allocations: 319.9 kB / 0.6074 GB, free: 14.89 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.563e-05/0.762, allocations: 0 / 0.6074 GB, free: 14.89 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002682/0.7623, allocations: 461 kB / 0.6078 GB, free: 14.43 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001229/0.7635, allocations: 0.9271 MB / 0.6087 GB, free: 13.5 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002274/0.7658, allocations: 2.696 MB / 0.6114 GB, free: 9.906 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00197/0.7678, allocations: 1.635 MB / 0.613 GB, free: 8.273 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.591e-05/0.7678, allocations: 20 kB / 0.613 GB, free: 8.254 MB / 430.1 MB Notification: Performance of matching and sorting (n=384) (initialization): time 0.004915/0.7727, allocations: 3.242 MB / 0.6161 GB, free: 5.008 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.7728, allocations: 4 kB / 0.6161 GB, free: 5.004 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.697e-05/0.7728, allocations: 68.16 kB / 0.6162 GB, free: 4.938 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.505e-05/0.7729, allocations: 92 kB / 0.6163 GB, free: 4.848 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002008/0.7749, allocations: 0.655 MB / 0.6169 GB, free: 4.191 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.058e-05/0.775, allocations: 123.5 kB / 0.6171 GB, free: 4.07 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001894/0.7769, allocations: 348 kB / 0.6174 GB, free: 3.727 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002423/0.7772, allocations: 184 kB / 0.6176 GB, free: 3.547 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 290 * Number of states: 0 () * Number of discrete variables: 3 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (358): * Single equations (assignments): 354 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003379/0.7775, allocations: 263.3 kB / 0.6178 GB, free: 3.281 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001697/0.7777, allocations: 126.3 kB / 0.6179 GB, free: 3.156 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001516/0.7792, allocations: 0.9856 MB / 0.6189 GB, free: 2.156 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001173/0.7794, allocations: 11.91 kB / 0.6189 GB, free: 2.145 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.7794, allocations: 0 / 0.6189 GB, free: 2.145 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.7794, allocations: 7.984 kB / 0.6189 GB, free: 2.137 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005107/0.7845, allocations: 2.842 MB / 0.6217 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.7845, allocations: 4 kB / 0.6217 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005168/0.7851, allocations: 100 kB / 0.6218 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.686e-06/0.7851, allocations: 8 kB / 0.6218 GB, free: 15.12 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.852e-05/0.7851, allocations: 8 kB / 0.6218 GB, free: 15.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.7851, allocations: 4 kB / 0.6218 GB, free: 15.11 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.7851, allocations: 3.938 kB / 0.6218 GB, free: 15.11 MB / 446.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001955/0.7871, allocations: 1.704 MB / 0.6235 GB, free: 13.34 MB / 446.1 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002701/0.7898, allocations: 2.671 MB / 0.6261 GB, free: 10.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003514/0.7902, allocations: 239.1 kB / 0.6263 GB, free: 10.34 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001879/0.7904, allocations: 4 kB / 0.6263 GB, free: 10.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005165/0.7909, allocations: 19.97 kB / 0.6263 GB, free: 10.32 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.147e-05/0.791, allocations: 32.39 kB / 0.6264 GB, free: 10.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.045e-05/0.7911, allocations: 27.98 kB / 0.6264 GB, free: 10.26 MB / 446.1 MB Notification: Performance of sort global known variables: time 0.001474/0.7925, allocations: 1.038 MB / 0.6274 GB, free: 9.223 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00308/0.7956, allocations: 0.6257 MB / 0.628 GB, free: 8.594 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (body.r[1],body.r[2],body.v[1],body.v[2],body.phi,body.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003159/0.796, allocations: 136 kB / 0.6281 GB, free: 8.449 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002961/0.7989, allocations: 1.986 MB / 0.6301 GB, free: 6.48 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.7989, allocations: 384 / 0.6301 GB, free: 6.48 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007455/0.7997, allocations: 473.6 kB / 0.6305 GB, free: 6.02 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007529/0.8005, allocations: 151.9 kB / 0.6307 GB, free: 5.875 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007368/0.8078, allocations: 4.062 MB / 0.6346 GB, free: 1.734 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1774/0.9853, allocations: 2.362 MB / 0.637 GB, free: 176.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.783e-06/0.9853, allocations: 0 / 0.637 GB, free: 176.7 MB / 446.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.FreeBody.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_FreeBody_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_FreeBody.fmu > PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe 2>&1)