Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.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.KinematicLoop,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop",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.002634/0.002634, allocations: 184.1 kB / 7.462 MB, free: 2.5 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.149/1.149, allocations: 221.4 MB / 229.3 MB, free: 3.125 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.0009637/0.0009637, allocations: 98.92 kB / 280.1 MB, free: 1.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03889/0.03889, allocations: 8.842 MB / 339.7 MB, free: 5.707 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2076/0.2465, allocations: 58.49 MB / 398.2 MB, free: 67.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.3508, allocations: 52.39 MB / 450.6 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2988/0.6496, allocations: 88.12 MB / 0.5261 GB, free: 5.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002222/0.6499, allocations: 72.91 kB / 0.5262 GB, free: 5.199 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: 1368 * Number of variables: 1368 Notification: Performance of Generate backend data structure: time 0.2034/0.8533, allocations: 75.54 MB / 0.5999 GB, free: 0.5781 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/0.8533, allocations: 8 kB / 0.6 GB, free: 0.5703 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00992/0.8633, allocations: 1.676 MB / 0.6016 GB, free: 14.89 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005502/0.8688, allocations: 1.93 MB / 0.6035 GB, free: 12.91 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002355/0.8691, allocations: 112 kB / 0.6036 GB, free: 12.8 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001778/0.8709, allocations: 203.9 kB / 0.6038 GB, free: 12.6 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01176/0.8827, allocations: 6.121 MB / 0.6098 GB, free: 6.477 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01802/0.9007, allocations: 8.191 MB / 0.6178 GB, free: 13.82 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001817/0.9009, allocations: 27.72 kB / 0.6178 GB, free: 13.79 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001573/0.9025, allocations: 16 kB / 0.6178 GB, free: 13.77 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001781/0.9043, allocations: 1.084 MB / 0.6189 GB, free: 12.69 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1828/1.087, allocations: 29.68 MB / 0.6478 GB, free: 167.3 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001741/1.089, allocations: 1.367 MB / 0.6492 GB, free: 167.3 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001166/1.09, allocations: 0.9711 MB / 0.6501 GB, free: 167.3 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00607/1.096, allocations: 5.422 MB / 0.6554 GB, free: 164.4 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.835e-05/1.096, allocations: 46.47 kB / 0.6555 GB, free: 164.3 MB / 458.7 MB Notification: Performance of pre-optimization done (n=179): time 4.698e-06/1.096, allocations: 0 / 0.6555 GB, free: 164.3 MB / 458.7 MB Notification: Performance of matching and sorting (n=233): time 0.01163/1.108, allocations: 5.782 MB / 0.6611 GB, free: 163.8 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.392e-05/1.108, allocations: 76.41 kB / 0.6612 GB, free: 163.7 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00296/1.111, allocations: 2.224 MB / 0.6633 GB, free: 163.4 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001296/1.111, allocations: 25.7 kB / 0.6634 GB, free: 163.4 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009554/1.112, allocations: 2.391 MB / 0.6657 GB, free: 162 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005356/1.113, allocations: 0.816 MB / 0.6665 GB, free: 161.5 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001716/1.113, allocations: 3.969 kB / 0.6665 GB, free: 161.5 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002719/1.113, allocations: 0.5754 MB / 0.6671 GB, free: 161.2 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002049/1.115, allocations: 1.6 MB / 0.6686 GB, free: 161.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003042/1.118, allocations: 4.311 MB / 0.6728 GB, free: 157.7 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00311/1.121, allocations: 2.693 MB / 0.6755 GB, free: 157.6 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.09e-05/1.121, allocations: 25.59 kB / 0.6755 GB, free: 157.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=687) (initialization): time 0.008936/1.13, allocations: 5.973 MB / 0.6813 GB, free: 157.3 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/1.13, allocations: 6.406 kB / 0.6813 GB, free: 157.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.761e-05/1.13, allocations: 95.44 kB / 0.6814 GB, free: 157.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001621/1.132, allocations: 0.709 MB / 0.6821 GB, free: 157.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003441/1.136, allocations: 1.097 MB / 0.6832 GB, free: 157.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01049/1.146, allocations: 11.41 MB / 0.6943 GB, free: 149.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003837/1.15, allocations: 135.8 kB / 0.6945 GB, free: 149.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008984/1.151, allocations: 304.8 kB / 0.6948 GB, free: 149.9 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: fixedTranslation2.frame_b.phi:DUMMY_STATE(flow=false unit = "rad" ) "Angle (counter-clockwise)" type: Real fixedTranslation1.frame_b.phi:DUMMY_STATE(flow=false unit = "rad" ) "Angle (counter-clockwise)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 437 * Number of states: 0 () * Number of discrete variables: 27 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (611): * Single equations (assignments): 602 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 9,(2,100.0%) 17,(2,100.0%) 10,(1,100.0%) 1} * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.001257/1.152, allocations: 353.5 kB / 0.6951 GB, free: 149.6 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000593/1.153, allocations: 251.6 kB / 0.6953 GB, free: 149.4 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00501/1.158, allocations: 2.9 MB / 0.6982 GB, free: 148.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001262/1.158, allocations: 34.02 kB / 0.6982 GB, free: 148.4 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-05/1.158, allocations: 7.562 kB / 0.6982 GB, free: 148.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.155e-05/1.158, allocations: 11.48 kB / 0.6982 GB, free: 148.4 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01423/1.172, allocations: 7.057 MB / 0.7051 GB, free: 145.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-05/1.172, allocations: 2.375 kB / 0.7051 GB, free: 145.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001304/1.174, allocations: 289.7 kB / 0.7054 GB, free: 145.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001292/1.175, allocations: 0.5077 MB / 0.7059 GB, free: 145.5 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001707/1.175, allocations: 13.83 kB / 0.7059 GB, free: 145.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008519/1.184, allocations: 9.986 MB / 0.7156 GB, free: 136.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/1.184, allocations: 3.906 kB / 0.7156 GB, free: 136.8 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005895/1.189, allocations: 4.653 MB / 0.7202 GB, free: 132.5 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007223/1.197, allocations: 6.559 MB / 0.7266 GB, free: 126.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000751/1.198, allocations: 317.4 kB / 0.7269 GB, free: 126.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006164/1.198, allocations: 7.328 kB / 0.7269 GB, free: 126.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00119/1.199, allocations: 36.94 kB / 0.7269 GB, free: 126.1 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000172/1.2, allocations: 111.7 kB / 0.727 GB, free: 126.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001182/1.2, allocations: 63.7 kB / 0.7271 GB, free: 126 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.002383/1.202, allocations: 1.481 MB / 0.7286 GB, free: 124.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005/1.207, allocations: 0.7696 MB / 0.7293 GB, free: 123.9 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (revolute1.phi,revolute1.w,revolute4.phi,revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (169): * Single equations (assignments): 160 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 7,(2,100.0%) 15,(1,100.0%) 1,(1,100.0%) 7} * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004384/1.207, allocations: 156.4 kB / 0.7295 GB, free: 123.8 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005905/1.213, allocations: 4.407 MB / 0.7338 GB, free: 119.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/1.213, allocations: 0 / 0.7338 GB, free: 119.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002197/1.216, allocations: 1.803 MB / 0.7355 GB, free: 118 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0015/1.217, allocations: 241.2 kB / 0.7357 GB, free: 117.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01396/1.231, allocations: 6.446 MB / 0.742 GB, free: 112 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005719/1.237, allocations: 3.226 MB / 0.7452 GB, free: 109.5 MB / 458.7 MB Notification: Performance of SimCode: time 1.362e-06/1.237, allocations: 0 / 0.7452 GB, free: 109.5 MB / 458.7 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_KinematicLoop.fmu > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe 2>&1)