Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.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.SpringDamperDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.SpringDamperDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo",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.003513/0.003513, allocations: 180.3 kB / 7.455 MB, free: 2.523 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.222/1.222, allocations: 221.4 MB / 229.3 MB, free: 3.137 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.000937/0.0009369, allocations: 94.16 kB / 280.1 MB, free: 1.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03963/0.03963, allocations: 8.841 MB / 339.7 MB, free: 5.727 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2127/0.2524, allocations: 58.49 MB / 398.2 MB, free: 67.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.3557, allocations: 52.38 MB / 450.6 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2919/0.6477, allocations: 88.14 MB / 0.5261 GB, free: 5.266 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002388/0.648, allocations: 70.41 kB / 0.5262 GB, free: 5.234 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1172 * Number of variables: 1172 Notification: Performance of Generate backend data structure: time 0.1567/0.8047, allocations: 63.03 MB / 0.5877 GB, free: 13.18 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.8048, allocations: 12 kB / 0.5878 GB, free: 13.17 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009257/0.8141, allocations: 1.634 MB / 0.5893 GB, free: 11.53 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004296/0.8184, allocations: 1.661 MB / 0.591 GB, free: 9.82 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001848/0.8186, allocations: 100 kB / 0.5911 GB, free: 9.723 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001705/0.8203, allocations: 172 kB / 0.5912 GB, free: 9.555 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009707/0.83, allocations: 5.435 MB / 0.5965 GB, free: 4.109 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01328/0.8433, allocations: 7.08 MB / 0.6035 GB, free: 12.66 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001121/0.8435, allocations: 19.78 kB / 0.6035 GB, free: 12.64 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008702/0.8444, allocations: 11.94 kB / 0.6035 GB, free: 12.63 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001327/0.8457, allocations: 0.935 MB / 0.6044 GB, free: 11.69 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03618/0.8819, allocations: 23.64 MB / 0.6275 GB, free: 3.445 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001621/0.8836, allocations: 0.9257 MB / 0.6284 GB, free: 2.504 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001003/0.8846, allocations: 0.6261 MB / 0.629 GB, free: 1.875 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005322/0.8899, allocations: 3.512 MB / 0.6324 GB, free: 14.07 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.765e-05/0.89, allocations: 47.33 kB / 0.6325 GB, free: 14.02 MB / 458.7 MB Notification: Performance of pre-optimization done (n=117): time 4.379e-06/0.89, allocations: 0 / 0.6325 GB, free: 14.02 MB / 458.7 MB Notification: Performance of matching and sorting (n=120): time 0.006917/0.8969, allocations: 3.533 MB / 0.6359 GB, free: 10.43 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.876e-05/0.897, allocations: 64.19 kB / 0.636 GB, free: 10.35 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002894/0.8999, allocations: 1.945 MB / 0.6379 GB, free: 8.41 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.022e-05/0.9, allocations: 25.7 kB / 0.6379 GB, free: 8.379 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001145/0.9012, allocations: 2.118 MB / 0.64 GB, free: 6.227 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003581/0.9015, allocations: 461.9 kB / 0.6404 GB, free: 5.77 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.9017, allocations: 0 / 0.6404 GB, free: 5.77 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003199/0.902, allocations: 0.5034 MB / 0.6409 GB, free: 5.254 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001625/0.9036, allocations: 1.175 MB / 0.6421 GB, free: 4.074 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.139/1.043, allocations: 3.434 MB / 0.6454 GB, free: 175.7 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002784/1.045, allocations: 2.064 MB / 0.6474 GB, free: 175.7 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-05/1.045, allocations: 24.06 kB / 0.6474 GB, free: 175.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.005359/1.051, allocations: 4.154 MB / 0.6515 GB, free: 175.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/1.051, allocations: 7.875 kB / 0.6515 GB, free: 175.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-05/1.051, allocations: 82.38 kB / 0.6516 GB, free: 175.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.304e-05/1.051, allocations: 118.6 kB / 0.6517 GB, free: 175.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002575/1.054, allocations: 0.892 MB / 0.6526 GB, free: 175.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.402e-05/1.054, allocations: 158.1 kB / 0.6527 GB, free: 175.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002109/1.056, allocations: 99.44 kB / 0.6528 GB, free: 175.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000264/1.056, allocations: 241.8 kB / 0.653 GB, free: 175.4 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 368 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],springDamper.color_b[3],springDamper.color_b[2],springDamper.color_b[1],springDamper.color_a[3],springDamper.color_a[2],springDamper.color_a[1],springDamper.color[3],springDamper.color[2],springDamper.color[1],springDamper.colorConnector_b[3],springDamper.colorConnector_b[2],springDamper.colorConnector_b[1],springDamper.colorConnector_a[3],springDamper.colorConnector_a[2],springDamper.colorConnector_a[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (488): * Single equations (assignments): 483 * Array equations: 5 * 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.0003539/1.056, allocations: 314.2 kB / 0.6533 GB, free: 175.2 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002058/1.057, allocations: 181.8 kB / 0.6535 GB, free: 175.2 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001716/1.058, allocations: 1.326 MB / 0.6548 GB, free: 175.2 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001418/1.059, allocations: 26.94 kB / 0.6548 GB, free: 175.2 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/1.059, allocations: 0 / 0.6548 GB, free: 175.2 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/1.059, allocations: 3.797 kB / 0.6548 GB, free: 175.2 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005567/1.064, allocations: 3.791 MB / 0.6585 GB, free: 174.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.197e-06/1.064, allocations: 7.938 kB / 0.6586 GB, free: 174.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008664/1.065, allocations: 177.5 kB / 0.6587 GB, free: 174.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.33e-05/1.065, allocations: 7.531 kB / 0.6587 GB, free: 174.6 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.896e-05/1.065, allocations: 23.06 kB / 0.6588 GB, free: 174.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.203e-06/1.065, allocations: 7.281 kB / 0.6588 GB, free: 174.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.702e-06/1.065, allocations: 10.56 kB / 0.6588 GB, free: 174.6 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002393/1.068, allocations: 2.596 MB / 0.6613 GB, free: 173.9 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002998/1.071, allocations: 3.766 MB / 0.665 GB, free: 172.9 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003888/1.071, allocations: 270.2 kB / 0.6652 GB, free: 172.7 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002526/1.071, allocations: 13.92 kB / 0.6653 GB, free: 172.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007604/1.072, allocations: 32.58 kB / 0.6653 GB, free: 172.7 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.377e-05/1.072, allocations: 56.3 kB / 0.6653 GB, free: 172.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.718e-05/1.072, allocations: 46.06 kB / 0.6654 GB, free: 172.7 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0016/1.074, allocations: 1.31 MB / 0.6667 GB, free: 172.6 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003211/1.077, allocations: 0.5621 MB / 0.6672 GB, free: 172.6 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 (93): * Single equations (assignments): 88 * Array equations: 5 * 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.0003216/1.077, allocations: 149.9 kB / 0.6674 GB, free: 172.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003257/1.081, allocations: 2.597 MB / 0.6699 GB, free: 172.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/1.081, allocations: 3.75 kB / 0.6699 GB, free: 172.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008609/1.082, allocations: 0.6368 MB / 0.6705 GB, free: 172.3 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008971/1.082, allocations: 201.4 kB / 0.6707 GB, free: 172.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008663/1.091, allocations: 5.228 MB / 0.6758 GB, free: 171.1 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002871/1.094, allocations: 2.828 MB / 0.6786 GB, free: 170.2 MB / 458.7 MB Notification: Performance of SimCode: time 1.042e-06/1.094, allocations: 0 / 0.6786 GB, free: 170.2 MB / 458.7 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe 2>&1)