Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.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.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004425/0.004425, allocations: 170.3 kB / 15.11 MB, free: 6.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.218/1.218, allocations: 223.2 MB / 239 MB, free: 60 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008288/0.0008288, allocations: 93.98 kB / 290.2 MB, free: 4.551 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03967/0.03967, allocations: 8.944 MB / 350.2 MB, free: 4.172 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002813/0.0002813, allocations: 8 kB / 413.2 MB, free: 5.148 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1963/0.1966, allocations: 52.39 MB / 465.6 MB, free: 69.24 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08742/0.2841, allocations: 89.08 MB / 0.5417 GB, free: 12.03 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001952/0.2843, allocations: 79.97 kB / 0.5418 GB, free: 11.95 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2923/0.5766, allocations: 62.38 MB / 0.6027 GB, free: 53.14 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.5766, allocations: 4 kB / 0.6027 GB, free: 53.13 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.435e-05/0.5767, allocations: 51.94 kB / 0.6027 GB, free: 53.08 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1155 * Number of variables: 1155 Notification: Performance of Generate backend data structure: time 0.008336/0.5851, allocations: 3.168 MB / 0.6058 GB, free: 49.85 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.5851, allocations: 8.031 kB / 0.6058 GB, free: 49.84 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001571/0.5867, allocations: 0.5854 MB / 0.6064 GB, free: 49.24 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007815/0.5945, allocations: 1.931 MB / 0.6083 GB, free: 47.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004235/0.5988, allocations: 1.715 MB / 0.61 GB, free: 45.54 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000163/0.599, allocations: 221.8 kB / 0.6102 GB, free: 45.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001166/0.6001, allocations: 299.8 kB / 0.6105 GB, free: 45.03 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01178/0.6119, allocations: 7.549 MB / 0.6178 GB, free: 37.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.363e-05/0.612, allocations: 15.88 kB / 0.6179 GB, free: 37.09 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004903/0.6125, allocations: 135.9 kB / 0.618 GB, free: 36.96 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00093/0.6135, allocations: 0.8687 MB / 0.6188 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009491/0.623, allocations: 7.071 MB / 0.6257 GB, free: 29 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02505/0.648, allocations: 24.09 MB / 0.6493 GB, free: 4.418 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004069/0.6521, allocations: 2.37 MB / 0.6516 GB, free: 1.934 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006898/0.6591, allocations: 4.749 MB / 0.6562 GB, free: 12.8 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.722e-05/0.6591, allocations: 43.56 kB / 0.6563 GB, free: 12.75 MB / 394.7 MB Notification: Performance of pre-optimization done (n=128): time 3.597e-06/0.6591, allocations: 4 kB / 0.6563 GB, free: 12.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=154): time 0.0138/0.6729, allocations: 7.359 MB / 0.6635 GB, free: 5.242 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.931e-05/0.673, allocations: 68.72 kB / 0.6635 GB, free: 5.16 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003092/0.6761, allocations: 2.301 MB / 0.6658 GB, free: 2.832 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.703e-05/0.6762, allocations: 49.69 kB / 0.6658 GB, free: 2.777 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001262/0.6775, allocations: 2.081 MB / 0.6678 GB, free: 0.6641 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004078/0.6779, allocations: 0.5589 MB / 0.6684 GB, free: 100 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001592/0.678, allocations: 76 kB / 0.6685 GB, free: 24 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000258/0.6783, allocations: 478.6 kB / 0.6689 GB, free: 15.55 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001964/0.6803, allocations: 1.284 MB / 0.6702 GB, free: 14.26 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003282/0.6836, allocations: 3.406 MB / 0.6735 GB, free: 9.82 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002819/0.6864, allocations: 2.096 MB / 0.6756 GB, free: 7.723 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.687e-05/0.6864, allocations: 24 kB / 0.6756 GB, free: 7.699 MB / 410.7 MB Notification: Performance of matching and sorting (n=510) (initialization): time 0.00728/0.6937, allocations: 4.741 MB / 0.6802 GB, free: 2.953 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.077e-05/0.6938, allocations: 40.09 kB / 0.6802 GB, free: 2.914 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.202e-05/0.6939, allocations: 79.88 kB / 0.6803 GB, free: 2.836 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003596/0.6942, allocations: 200.8 kB / 0.6805 GB, free: 2.637 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002587/0.6968, allocations: 0.9007 MB / 0.6814 GB, free: 1.734 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001832/0.6987, allocations: 2.196 MB / 0.6835 GB, free: 15.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002203/0.7009, allocations: 200 kB / 0.6837 GB, free: 15.18 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002683/0.7012, allocations: 228 kB / 0.6839 GB, free: 14.96 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 338 * Number of states: 0 () * Number of discrete variables: 15 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (476): * Single equations (assignments): 471 * 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 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002164/0.7034, allocations: 1.554 MB / 0.6855 GB, free: 13.39 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002707/0.7036, allocations: 233 kB / 0.6857 GB, free: 13.16 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003052/0.7067, allocations: 1.935 MB / 0.6876 GB, free: 11.21 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.876e-05/0.7068, allocations: 31.94 kB / 0.6876 GB, free: 11.18 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.758e-06/0.7068, allocations: 0 / 0.6876 GB, free: 11.18 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.7068, allocations: 7.984 kB / 0.6876 GB, free: 11.17 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008729/0.7156, allocations: 5.604 MB / 0.6931 GB, free: 5.434 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.79e-06/0.7156, allocations: 4 kB / 0.6931 GB, free: 5.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009765/0.7166, allocations: 239.7 kB / 0.6933 GB, free: 5.195 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002266/0.7168, allocations: 88.97 kB / 0.6934 GB, free: 5.105 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.323e-05/0.7169, allocations: 23.98 kB / 0.6934 GB, free: 5.082 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001607/0.7185, allocations: 1.927 MB / 0.6953 GB, free: 3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.7185, allocations: 7.953 kB / 0.6953 GB, free: 2.992 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004204/0.7227, allocations: 3.115 MB / 0.6984 GB, free: 15.79 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005566/0.7233, allocations: 314.4 kB / 0.6987 GB, free: 15.46 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002165/0.7235, allocations: 20 kB / 0.6987 GB, free: 15.44 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008063/0.7243, allocations: 84.09 kB / 0.6988 GB, free: 15.36 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001573/0.7245, allocations: 88.89 kB / 0.6988 GB, free: 15.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.619e-05/0.7246, allocations: 47.98 kB / 0.6989 GB, free: 15.22 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002261/0.7269, allocations: 1.64 MB / 0.7005 GB, free: 13.57 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7269, allocations: 0 / 0.7005 GB, free: 13.57 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002646/0.7295, allocations: 0.6718 MB / 0.7011 GB, free: 12.89 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (revolute.phi,prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 118 * 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 {(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004826/0.7344, allocations: 4.148 MB / 0.7052 GB, free: 8.676 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00495/0.7393, allocations: 3.092 MB / 0.7082 GB, free: 5.586 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.7394, allocations: 0 / 0.7082 GB, free: 5.586 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001392/0.7408, allocations: 0.9733 MB / 0.7092 GB, free: 4.598 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001392/0.7422, allocations: 345.1 kB / 0.7095 GB, free: 4.266 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.187/0.9292, allocations: 71.27 MB / 0.7791 GB, free: 59.62 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002044/0.9313, allocations: 2.632 MB / 0.7817 GB, free: 58.87 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002635/0.9339, allocations: 1.195 MB / 0.7828 GB, free: 58.84 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001373/0.9353, allocations: 1.298 MB / 0.7841 GB, free: 58.83 MB / 442.7 MB Notification: Performance of SimCode: time 8.72e-07/0.9353, allocations: 0 / 0.7841 GB, free: 58.83 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05672/0.992, allocations: 50.98 MB / 0.8339 GB, free: 26.18 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001403/0.9922, allocations: 188.6 kB / 0.8341 GB, free: 25.93 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.891/3.883, allocations: 0 / 0.8341 GB, free: 25.93 MB / 442.7 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe 2>&1)