Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",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 3.2.3+maint.om/package.mo): time 0.001038/0.001038, allocations: 183.8 kB / 8.48 MB, free: 1.785 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.131/1.131, allocations: 205.2 MB / 214.1 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009335/0.0009335, allocations: 87.3 kB / 262.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08882/0.08978, allocations: 52.99 MB / 315.1 MB, free: 8.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1726/0.2624, allocations: 47.56 MB / 362.6 MB, free: 45.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1002/0.3627, allocations: 98.87 MB / 461.5 MB, free: 2.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00021/0.363, allocations: 90.81 kB / 461.6 MB, free: 2.895 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.3221/0.6851, allocations: 76.54 MB / 0.5255 GB, free: 95.38 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.6852, allocations: 9.719 kB / 0.5255 GB, free: 95.38 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00831/0.6935, allocations: 1.867 MB / 0.5273 GB, free: 95.11 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008427/0.7019, allocations: 3.977 MB / 0.5312 GB, free: 94.55 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001227/0.7021, allocations: 119.9 kB / 0.5313 GB, free: 94.55 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007719/0.7028, allocations: 213.3 kB / 0.5315 GB, free: 94.55 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007487/0.7103, allocations: 5.776 MB / 0.5372 GB, free: 93.8 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01056/0.7209, allocations: 8.732 MB / 0.5457 GB, free: 88.97 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001498/0.7211, allocations: 48.66 kB / 0.5458 GB, free: 88.94 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005416/0.7216, allocations: 28.69 kB / 0.5458 GB, free: 88.94 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001394/0.723, allocations: 1.056 MB / 0.5468 GB, free: 88.77 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0364/0.7595, allocations: 44.54 MB / 0.5903 GB, free: 46.48 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002776/0.7623, allocations: 2.751 MB / 0.593 GB, free: 43.59 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001815/0.7641, allocations: 1.838 MB / 0.5948 GB, free: 41.74 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007705/0.7718, allocations: 6.017 MB / 0.6007 GB, free: 35.51 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.669e-05/0.7719, allocations: 55.27 kB / 0.6007 GB, free: 35.45 MB / 394.7 MB Notification: Performance of pre-optimization done (n=151): time 4.057e-06/0.7719, allocations: 0 / 0.6007 GB, free: 35.45 MB / 394.7 MB Notification: Performance of matching and sorting (n=166): time 0.03049/0.8024, allocations: 14.12 MB / 0.6145 GB, free: 21.21 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.153e-05/0.8025, allocations: 150.6 kB / 0.6147 GB, free: 21.03 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003354/0.8058, allocations: 2.65 MB / 0.6172 GB, free: 18.37 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001188/0.8059, allocations: 25.7 kB / 0.6173 GB, free: 18.34 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00102/0.807, allocations: 2.651 MB / 0.6199 GB, free: 15.64 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004119/0.8074, allocations: 0.6285 MB / 0.6205 GB, free: 15.01 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002413/0.8076, allocations: 0 / 0.6205 GB, free: 15.01 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002572/0.8079, allocations: 0.5458 MB / 0.621 GB, free: 14.45 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002201/0.8101, allocations: 1.85 MB / 0.6228 GB, free: 12.6 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003329/0.8135, allocations: 5.36 MB / 0.628 GB, free: 5.461 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003399/0.8169, allocations: 3.132 MB / 0.6311 GB, free: 2.328 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-05/0.8169, allocations: 36 kB / 0.6311 GB, free: 2.293 MB / 394.7 MB Notification: Performance of matching and sorting (n=746) (initialization): time 0.01335/0.8303, allocations: 7.32 MB / 0.6383 GB, free: 10.97 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.8303, allocations: 8 kB / 0.6383 GB, free: 10.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001718/0.8305, allocations: 126.7 kB / 0.6384 GB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004363/0.8349, allocations: 1.227 MB / 0.6396 GB, free: 9.609 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00424/0.8391, allocations: 1.298 MB / 0.6409 GB, free: 8.305 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009069/0.8482, allocations: 5.704 MB / 0.6465 GB, free: 2.492 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003684/0.8519, allocations: 207.6 kB / 0.6467 GB, free: 2.289 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000545/0.8525, allocations: 348 kB / 0.647 GB, free: 1.949 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 574 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (703): * Single equations (assignments): 699 * Array equations: 3 * 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%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007215/0.8532, allocations: 427.6 kB / 0.6474 GB, free: 1.523 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000499/0.8537, allocations: 280.3 kB / 0.6477 GB, free: 1.246 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.108/0.9617, allocations: 3.144 MB / 0.6507 GB, free: 137.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.747e-05/0.9618, allocations: 15.72 kB / 0.6507 GB, free: 137.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.505e-05/0.9618, allocations: 3.938 kB / 0.6507 GB, free: 137.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.101e-05/0.9619, allocations: 8.141 kB / 0.6508 GB, free: 137.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01265/0.9745, allocations: 6.719 MB / 0.6573 GB, free: 137.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.9745, allocations: 3.062 kB / 0.6573 GB, free: 137.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001166/0.9757, allocations: 227.6 kB / 0.6575 GB, free: 137.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003691/0.9794, allocations: 1.018 MB / 0.6585 GB, free: 137.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001218/0.9795, allocations: 12.19 kB / 0.6585 GB, free: 137.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007016/0.9866, allocations: 5.376 MB / 0.6638 GB, free: 136 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/0.9866, allocations: 6.281 kB / 0.6638 GB, free: 136 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008308/0.9949, allocations: 5.578 MB / 0.6692 GB, free: 135.5 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01024/1.005, allocations: 7.725 MB / 0.6768 GB, free: 134.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001046/1.006, allocations: 0.5444 MB / 0.6773 GB, free: 133.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005115/1.007, allocations: 1.875 kB / 0.6773 GB, free: 133.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001423/1.008, allocations: 57.95 kB / 0.6774 GB, free: 133.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001959/1.008, allocations: 75.62 kB / 0.6775 GB, free: 133.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001323/1.009, allocations: 44.41 kB / 0.6775 GB, free: 133.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.002275/1.011, allocations: 1.75 MB / 0.6792 GB, free: 133.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004392/1.015, allocations: 0.7871 MB / 0.68 GB, free: 133.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (129): * Single equations (assignments): 125 * Array equations: 3 * 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.0003801/1.016, allocations: 161.1 kB / 0.6801 GB, free: 133.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005938/1.022, allocations: 4.507 MB / 0.6845 GB, free: 131.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/1.022, allocations: 2.25 kB / 0.6845 GB, free: 131.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002242/1.024, allocations: 1.454 MB / 0.6859 GB, free: 131.4 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001398/1.025, allocations: 245.9 kB / 0.6862 GB, free: 131.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01355/1.039, allocations: 6.642 MB / 0.6927 GB, free: 129.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004245/1.043, allocations: 3.183 MB / 0.6958 GB, free: 127.9 MB / 410.7 MB Notification: Performance of SimCode: time 6.92e-07/1.043, allocations: 1.781 kB / 0.6958 GB, free: 127.9 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1)