Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.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.DoublePendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.DoublePendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_DoublePendulum",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.003151/0.003151, allocations: 178.7 kB / 7.455 MB, free: 2.508 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.159/1.159, allocations: 221.4 MB / 229.3 MB, free: 3.012 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.0009409/0.0009409, allocations: 89.7 kB / 280.1 MB, free: 1.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.0388/0.0388, allocations: 8.841 MB / 339.7 MB, free: 5.707 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1886/0.2274, allocations: 58.49 MB / 398.2 MB, free: 67.35 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08431/0.3117, allocations: 52.39 MB / 450.6 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2945/0.6062, allocations: 85.61 MB / 0.5236 GB, free: 7.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002529/0.6065, allocations: 70.34 kB / 0.5237 GB, free: 7.719 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: 1179 * Number of variables: 1179 Notification: Performance of Generate backend data structure: time 0.1711/0.7777, allocations: 64.49 MB / 0.5867 GB, free: 14.24 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/0.7777, allocations: 16 kB / 0.5867 GB, free: 14.23 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00998/0.7877, allocations: 1.602 MB / 0.5883 GB, free: 12.62 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005691/0.7935, allocations: 1.696 MB / 0.5899 GB, free: 10.88 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002295/0.7937, allocations: 96 kB / 0.59 GB, free: 10.78 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002096/0.7958, allocations: 171.9 kB / 0.5902 GB, free: 10.61 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01143/0.8073, allocations: 5.505 MB / 0.5956 GB, free: 5.102 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01842/0.8257, allocations: 7.285 MB / 0.6027 GB, free: 13.41 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002283/0.826, allocations: 31.66 kB / 0.6027 GB, free: 13.38 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001668/0.8277, allocations: 16 kB / 0.6027 GB, free: 13.36 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001646/0.8294, allocations: 0.9661 MB / 0.6037 GB, free: 12.39 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04483/0.8742, allocations: 25.31 MB / 0.6284 GB, free: 2.422 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00232/0.8766, allocations: 1.049 MB / 0.6294 GB, free: 1.371 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001495/0.8781, allocations: 0.7869 MB / 0.6302 GB, free: 0.5859 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007822/0.886, allocations: 4.259 MB / 0.6343 GB, free: 11.92 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.374e-05/0.8861, allocations: 55.47 kB / 0.6344 GB, free: 11.86 MB / 458.7 MB Notification: Performance of pre-optimization done (n=148): time 6.462e-06/0.8861, allocations: 0 / 0.6344 GB, free: 11.86 MB / 458.7 MB Notification: Performance of matching and sorting (n=176): time 0.01209/0.8982, allocations: 4.271 MB / 0.6386 GB, free: 7.59 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.852e-05/0.8983, allocations: 68.72 kB / 0.6386 GB, free: 7.512 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004405/0.9027, allocations: 1.955 MB / 0.6405 GB, free: 5.516 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001954/0.9029, allocations: 29.7 kB / 0.6406 GB, free: 5.48 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001531/0.9045, allocations: 2.103 MB / 0.6426 GB, free: 3.344 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006975/0.9052, allocations: 0.632 MB / 0.6432 GB, free: 2.703 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003063/0.9055, allocations: 0 / 0.6432 GB, free: 2.703 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003709/0.9059, allocations: 0.5317 MB / 0.6437 GB, free: 2.16 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002051/0.908, allocations: 1.375 MB / 0.6451 GB, free: 0.7773 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1595/1.067, allocations: 3.725 MB / 0.6487 GB, free: 174.2 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003458/1.071, allocations: 2.334 MB / 0.651 GB, free: 174.2 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.786e-05/1.071, allocations: 23.59 kB / 0.651 GB, free: 174.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=575) (initialization): time 0.007648/1.079, allocations: 4.906 MB / 0.6558 GB, free: 174.1 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/1.079, allocations: 3.344 kB / 0.6558 GB, free: 174.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.073e-05/1.079, allocations: 83.72 kB / 0.6559 GB, free: 174.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008488/1.08, allocations: 373.4 kB / 0.6563 GB, free: 174 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002946/1.083, allocations: 0.9598 MB / 0.6572 GB, free: 174 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003958/1.087, allocations: 3.495 MB / 0.6606 GB, free: 172.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003155/1.09, allocations: 112.4 kB / 0.6607 GB, free: 172.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005664/1.09, allocations: 259.5 kB / 0.661 GB, free: 172.6 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 382 * Number of states: 0 () * Number of discrete variables: 18 (revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[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 (528): * Single equations (assignments): 523 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006314/1.091, allocations: 318.4 kB / 0.6613 GB, free: 172.4 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003004/1.091, allocations: 201.8 kB / 0.6615 GB, free: 172.4 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00319/1.094, allocations: 2.201 MB / 0.6636 GB, free: 172.3 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001183/1.095, allocations: 18.09 kB / 0.6636 GB, free: 172.3 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.29e-05/1.095, allocations: 3.469 kB / 0.6636 GB, free: 172.3 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.581e-05/1.095, allocations: 7.547 kB / 0.6636 GB, free: 172.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009381/1.104, allocations: 5.413 MB / 0.6689 GB, free: 171.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.767e-06/1.104, allocations: 6.438 kB / 0.6689 GB, free: 171.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009726/1.105, allocations: 235.8 kB / 0.6692 GB, free: 171.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006574/1.106, allocations: 256.3 kB / 0.6694 GB, free: 171.7 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.519e-05/1.106, allocations: 8.375 kB / 0.6694 GB, free: 171.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002901/1.109, allocations: 2.9 MB / 0.6722 GB, free: 170.5 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.531e-06/1.109, allocations: 3.594 kB / 0.6722 GB, free: 170.5 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004135/1.113, allocations: 3.607 MB / 0.6758 GB, free: 170 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005529/1.118, allocations: 5.21 MB / 0.6809 GB, free: 168.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000621/1.119, allocations: 279.8 kB / 0.6811 GB, free: 168 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002811/1.119, allocations: 8.438 kB / 0.6811 GB, free: 168 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008007/1.12, allocations: 37.25 kB / 0.6812 GB, free: 168 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001362/1.12, allocations: 75.78 kB / 0.6812 GB, free: 168 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001015/1.12, allocations: 46.69 kB / 0.6813 GB, free: 168 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.00184/1.122, allocations: 1.314 MB / 0.6826 GB, free: 167.4 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003706/1.126, allocations: 0.6327 MB / 0.6832 GB, free: 167.4 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (131): * Single equations (assignments): 126 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004425/1.127, allocations: 152.7 kB / 0.6833 GB, free: 167.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004817/1.131, allocations: 3.305 MB / 0.6866 GB, free: 166.2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/1.131, allocations: 0 / 0.6866 GB, free: 166.2 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001481/1.133, allocations: 1.096 MB / 0.6876 GB, free: 165.7 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001255/1.134, allocations: 205.7 kB / 0.6878 GB, free: 165.6 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01343/1.148, allocations: 5.517 MB / 0.6932 GB, free: 163.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003568/1.151, allocations: 2.898 MB / 0.696 GB, free: 161 MB / 458.7 MB Notification: Performance of SimCode: time 1.233e-06/1.151, allocations: 0 / 0.696 GB, free: 161 MB / 458.7 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_DoublePendulum_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_DoublePendulum.fmu > PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe 2>&1)