Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.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_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection",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.002712/0.002712, allocations: 180.7 kB / 7.456 MB, free: 2.238 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.219/1.219, 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.0009981/0.0009983, allocations: 95.66 kB / 280.1 MB, free: 1.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03956/0.03956, allocations: 8.848 MB / 339.7 MB, free: 5.691 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.184/0.2236, allocations: 58.48 MB / 398.2 MB, free: 67.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08399/0.3076, allocations: 52.39 MB / 450.6 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2762/0.5838, allocations: 88.1 MB / 0.5261 GB, free: 5.277 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001982/0.5841, allocations: 75.09 kB / 0.5262 GB, free: 5.246 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.1975/0.7816, allocations: 75.49 MB / 0.5999 GB, free: 0.6719 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.7816, allocations: 12 kB / 0.5999 GB, free: 0.6602 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00934/0.791, allocations: 1.676 MB / 0.6015 GB, free: 14.97 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005044/0.7961, allocations: 1.93 MB / 0.6034 GB, free: 13 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002118/0.7963, allocations: 112 kB / 0.6035 GB, free: 12.89 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00146/0.7978, allocations: 203.9 kB / 0.6037 GB, free: 12.69 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01044/0.8082, allocations: 6.125 MB / 0.6097 GB, free: 6.555 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01478/0.823, allocations: 8.171 MB / 0.6177 GB, free: 13.91 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000144/0.8232, allocations: 39.64 kB / 0.6177 GB, free: 13.87 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001004/0.8242, allocations: 20 kB / 0.6177 GB, free: 13.85 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001516/0.8257, allocations: 1.08 MB / 0.6188 GB, free: 12.77 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2204/1.046, allocations: 29.68 MB / 0.6478 GB, free: 97.4 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001781/1.048, allocations: 1.357 MB / 0.6491 GB, free: 97.38 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001138/1.049, allocations: 0.9711 MB / 0.65 GB, free: 97.36 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005554/1.055, allocations: 5.42 MB / 0.6553 GB, free: 94.42 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/1.055, allocations: 57.23 kB / 0.6554 GB, free: 94.38 MB / 458.7 MB Notification: Performance of pre-optimization done (n=179): time 4.268e-06/1.055, allocations: 0 / 0.6554 GB, free: 94.38 MB / 458.7 MB Notification: Performance of matching and sorting (n=239): time 0.01694/1.072, allocations: 9.498 MB / 0.6647 GB, free: 93.22 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.809e-05/1.072, allocations: 75.25 kB / 0.6647 GB, free: 93.16 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00255/1.074, allocations: 2.222 MB / 0.6669 GB, free: 92.88 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 9.801e-05/1.074, allocations: 29.61 kB / 0.6669 GB, free: 92.85 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008393/1.075, allocations: 2.39 MB / 0.6693 GB, free: 91.46 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004342/1.076, allocations: 0.8395 MB / 0.6701 GB, free: 90.94 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001748/1.076, allocations: 0 / 0.6701 GB, free: 90.94 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002405/1.076, allocations: 0.5727 MB / 0.6707 GB, free: 90.62 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001878/1.078, allocations: 1.658 MB / 0.6723 GB, free: 90.6 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002926/1.081, allocations: 4.376 MB / 0.6765 GB, free: 87.12 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002987/1.084, allocations: 2.767 MB / 0.6792 GB, free: 87.08 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.109e-05/1.084, allocations: 26.41 kB / 0.6793 GB, free: 87.08 MB / 458.7 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.008319/1.092, allocations: 6.121 MB / 0.6852 GB, free: 86.72 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/1.092, allocations: 8.094 kB / 0.6853 GB, free: 86.72 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.059e-05/1.093, allocations: 94.22 kB / 0.6853 GB, free: 86.72 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00155/1.094, allocations: 0.7123 MB / 0.686 GB, free: 86.67 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003066/1.097, allocations: 1.113 MB / 0.6871 GB, free: 86.57 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00953/1.107, allocations: 11.39 MB / 0.6982 GB, free: 80 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003781/1.111, allocations: 147.8 kB / 0.6984 GB, free: 80 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005489/1.111, allocations: 306.2 kB / 0.6987 GB, free: 80 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: fixedTranslation1.frame_b.phi:DUMMY_STATE(flow=false unit = "rad" ) "Angle (counter-clockwise)" type: Real fixedTranslation2.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 (618): * Single equations (assignments): 607 * Array equations: 6 * 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,(1,100.0%) 1,(2,100.0%) 10} * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.0006855/1.112, allocations: 361.8 kB / 0.699 GB, free: 79.73 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002957/1.112, allocations: 247 kB / 0.6993 GB, free: 79.59 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004639/1.117, allocations: 3.183 MB / 0.7024 GB, free: 79.41 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004519/1.121, allocations: 2.789 MB / 0.7051 GB, free: 79.27 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.427e-05/1.121, allocations: 7.344 kB / 0.7051 GB, free: 79.27 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.03e-05/1.121, allocations: 14.42 kB / 0.7051 GB, free: 79.27 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01613/1.137, allocations: 9.498 MB / 0.7144 GB, free: 75.78 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-05/1.138, allocations: 4 kB / 0.7144 GB, free: 75.78 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001134/1.139, allocations: 261.1 kB / 0.7146 GB, free: 75.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001803/1.14, allocations: 0.7109 MB / 0.7153 GB, free: 75.58 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000128/1.141, allocations: 14.23 kB / 0.7154 GB, free: 75.57 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01086/1.151, allocations: 11.45 MB / 0.7265 GB, free: 67.39 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004825/1.156, allocations: 5.293 MB / 0.7317 GB, free: 62.54 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005992/1.162, allocations: 4.897 MB / 0.7365 GB, free: 58.13 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007312/1.17, allocations: 6.888 MB / 0.7432 GB, free: 51.89 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008255/1.171, allocations: 324.2 kB / 0.7435 GB, free: 51.56 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003582/1.171, allocations: 4 kB / 0.7435 GB, free: 51.56 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/1.172, allocations: 48.53 kB / 0.7436 GB, free: 51.53 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001737/1.172, allocations: 104.8 kB / 0.7437 GB, free: 51.47 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001283/1.172, allocations: 74.66 kB / 0.7437 GB, free: 51.41 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.002073/1.174, allocations: 1.476 MB / 0.7452 GB, free: 50.09 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005265/1.18, allocations: 0.8455 MB / 0.746 GB, free: 49.25 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 ($STATESET2.x,$STATESET1.x[2],$STATESET1.x[1],revolute4.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (158): * Single equations (assignments): 149 * 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,(3,88.9%) 13} * Non-linear torn systems: 1 {2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004131/1.18, allocations: 157.7 kB / 0.7462 GB, free: 49.1 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005702/1.186, allocations: 4.565 MB / 0.7506 GB, free: 44.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/1.186, allocations: 4.031 kB / 0.7506 GB, free: 44.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002362/1.188, allocations: 1.944 MB / 0.7525 GB, free: 43.07 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001245/1.189, allocations: 234.7 kB / 0.7527 GB, free: 42.88 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01073/1.2, allocations: 6.644 MB / 0.7592 GB, free: 36.83 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003261/1.203, allocations: 3.251 MB / 0.7624 GB, free: 34.27 MB / 458.7 MB Notification: Performance of SimCode: time 8.62e-07/1.203, allocations: 0 / 0.7624 GB, free: 34.27 MB / 458.7 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection.fmu > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe 2>&1)