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.00132/0.00132, allocations: 175.2 kB / 12.73 MB, free: 2.59 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.48/1.48, allocations: 221.4 MB / 234.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 90.5 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04077/0.04077, allocations: 8.846 MB / 345.3 MB, free: 1.289 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.904e-05/3.905e-05, allocations: 8 kB / 405.7 MB, free: 61.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1115, allocations: 52.39 MB / 458 MB, free: 8.953 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5161/0.6277, allocations: 89.04 MB / 0.5343 GB, free: 12.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002681/0.628, allocations: 73.53 kB / 0.5343 GB, free: 12.71 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1569/0.7849, allocations: 62.44 MB / 0.5953 GB, free: 4.348 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.785, allocations: 0 / 0.5953 GB, free: 4.348 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.784e-05/0.7851, allocations: 52 kB / 0.5954 GB, free: 4.297 MB / 410.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.01162/0.7967, allocations: 3.079 MB / 0.5984 GB, free: 1.156 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.7968, allocations: 8.031 kB / 0.5984 GB, free: 1.148 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00214/0.7989, allocations: 0.5816 MB / 0.5989 GB, free: 0.5547 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009821/0.8088, allocations: 1.935 MB / 0.6008 GB, free: 14.61 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00529/0.8141, allocations: 1.715 MB / 0.6025 GB, free: 12.85 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002664/0.8144, allocations: 229.7 kB / 0.6027 GB, free: 12.62 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001532/0.816, allocations: 283.9 kB / 0.603 GB, free: 12.34 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01666/0.8326, allocations: 7.46 MB / 0.6103 GB, free: 4.512 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000189/0.8329, allocations: 23.72 kB / 0.6103 GB, free: 4.488 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001228/0.8341, allocations: 143.9 kB / 0.6104 GB, free: 4.348 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001561/0.8357, allocations: 0.8609 MB / 0.6113 GB, free: 3.484 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01647/0.8522, allocations: 6.931 MB / 0.6181 GB, free: 12.54 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04526/0.8975, allocations: 24.08 MB / 0.6416 GB, free: 3.969 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005738/0.9033, allocations: 2.318 MB / 0.6438 GB, free: 1.539 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00145/0.9048, allocations: 0.7858 MB / 0.6446 GB, free: 0.7539 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2911/1.196, allocations: 4.737 MB / 0.6492 GB, free: 123.1 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.71e-05/1.196, allocations: 41.81 kB / 0.6493 GB, free: 123 MB / 458.7 MB Notification: Performance of pre-optimization done (n=128): time 4.91e-06/1.196, allocations: 4.75 kB / 0.6493 GB, free: 123 MB / 458.7 MB Notification: Performance of matching and sorting (n=154): time 0.01414/1.21, allocations: 6.123 MB / 0.6552 GB, free: 122 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.944e-05/1.21, allocations: 65.06 kB / 0.6553 GB, free: 121.9 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004297/1.215, allocations: 2.273 MB / 0.6575 GB, free: 121.7 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001228/1.215, allocations: 47.45 kB / 0.6576 GB, free: 121.6 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001781/1.216, allocations: 2.078 MB / 0.6596 GB, free: 120.6 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007485/1.217, allocations: 0.5657 MB / 0.6602 GB, free: 120.2 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001838/1.217, allocations: 84.97 kB / 0.6602 GB, free: 120.2 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003355/1.218, allocations: 475.7 kB / 0.6607 GB, free: 119.9 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002291/1.22, allocations: 1.204 MB / 0.6619 GB, free: 119.9 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003827/1.224, allocations: 3.325 MB / 0.6651 GB, free: 117.2 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003478/1.227, allocations: 2.04 MB / 0.6671 GB, free: 117.2 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.412e-05/1.228, allocations: 21.62 kB / 0.6671 GB, free: 117.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=510) (initialization): time 0.006942/1.234, allocations: 4.6 MB / 0.6716 GB, free: 116.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.459e-05/1.235, allocations: 36.66 kB / 0.6717 GB, free: 116.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.155e-05/1.235, allocations: 72.91 kB / 0.6717 GB, free: 116.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003515/1.235, allocations: 198.6 kB / 0.6719 GB, free: 116.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002585/1.238, allocations: 0.8966 MB / 0.6728 GB, free: 116.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001715/1.239, allocations: 2.171 MB / 0.6749 GB, free: 115.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002799/1.242, allocations: 205.6 kB / 0.6751 GB, free: 115.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003289/1.242, allocations: 228 kB / 0.6753 GB, free: 115.2 MB / 458.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 () * 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.0004542/1.243, allocations: 387.5 kB / 0.6757 GB, free: 115 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000307/1.243, allocations: 220.8 kB / 0.6759 GB, free: 114.9 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002634/1.246, allocations: 1.836 MB / 0.6777 GB, free: 114.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.547e-05/1.246, allocations: 31.27 kB / 0.6777 GB, free: 114.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/1.246, allocations: 0 / 0.6777 GB, free: 114.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.368e-05/1.246, allocations: 13.73 kB / 0.6777 GB, free: 114.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007623/1.254, allocations: 5.5 MB / 0.6831 GB, free: 112.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.776e-06/1.254, allocations: 3.781 kB / 0.6831 GB, free: 112.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009081/1.255, allocations: 248 kB / 0.6834 GB, free: 112.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002163/1.255, allocations: 80.73 kB / 0.6834 GB, free: 112.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.3e-05/1.255, allocations: 26.17 kB / 0.6835 GB, free: 112.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001283/1.256, allocations: 1.898 MB / 0.6853 GB, free: 110.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/1.256, allocations: 4.344 kB / 0.6853 GB, free: 110.6 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00327/1.26, allocations: 2.98 MB / 0.6882 GB, free: 109.3 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006368/1.26, allocations: 309.8 kB / 0.6885 GB, free: 109 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000228/1.26, allocations: 26.98 kB / 0.6885 GB, free: 109 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008045/1.261, allocations: 76.62 kB / 0.6886 GB, free: 109 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001548/1.261, allocations: 76.58 kB / 0.6887 GB, free: 109 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.797e-05/1.261, allocations: 43.05 kB / 0.6887 GB, free: 109 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002094/1.264, allocations: 1.614 MB / 0.6903 GB, free: 108.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.3e-07/1.264, allocations: 0 / 0.6903 GB, free: 108.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003224/1.267, allocations: 0.6662 MB / 0.691 GB, free: 108.2 MB / 458.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 () * 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.003757/1.271, allocations: 4.009 MB / 0.6949 GB, free: 106 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004631/1.275, allocations: 2.961 MB / 0.6978 GB, free: 104.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/1.275, allocations: 0 / 0.6978 GB, free: 104.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001058/1.276, allocations: 0.9168 MB / 0.6987 GB, free: 104.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001994/1.278, allocations: 344.7 kB / 0.699 GB, free: 104.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01278/1.291, allocations: 6.148 MB / 0.705 GB, free: 102.1 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002154/1.293, allocations: 2.628 MB / 0.7076 GB, free: 100.9 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00276/1.296, allocations: 1.201 MB / 0.7087 GB, free: 100.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001472/1.298, allocations: 1.291 MB / 0.71 GB, free: 99.46 MB / 458.7 MB Notification: Performance of SimCode: time 1.162e-06/1.298, allocations: 0 / 0.71 GB, free: 99.46 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07078/1.368, allocations: 51.32 MB / 0.7601 GB, free: 55.98 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001351/1.369, allocations: 167.8 kB / 0.7603 GB, free: 55.75 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.612/4.981, allocations: 0 / 0.7603 GB, free: 55.75 MB / 458.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)