Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CraneCrab.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.CraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.CraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrab",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.00097/0.00097, allocations: 180.9 kB / 7.651 MB, free: 1.422 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.544/1.544, allocations: 221.5 MB / 229.6 MB, free: 7.598 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.0008689/0.0008689, allocations: 83 kB / 280.4 MB, free: 5.355 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03739/0.03739, allocations: 8.828 MB / 340.1 MB, free: 6.43 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.953e-05/1.948e-05, allocations: 1.312 kB / 398.8 MB, free: 47.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1223, allocations: 52.4 MB / 451.2 MB, free: 4.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4178/0.5402, allocations: 87.44 MB / 0.526 GB, free: 27.64 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002423/0.5405, allocations: 78.09 kB / 0.5261 GB, free: 27.64 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1412/0.6817, allocations: 60.14 MB / 0.5848 GB, free: 12.45 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.6817, allocations: 4 kB / 0.5848 GB, free: 12.44 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000112/0.6818, allocations: 50.72 kB / 0.5849 GB, free: 12.44 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1144 * Number of variables: 1144 Notification: Performance of Generate backend data structure: time 0.01254/0.6944, allocations: 3.029 MB / 0.5878 GB, free: 10.61 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.57e-05/0.6945, allocations: 11.8 kB / 0.5878 GB, free: 10.6 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01003/0.7045, allocations: 1.927 MB / 0.5897 GB, free: 9.695 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005054/0.7096, allocations: 1.697 MB / 0.5914 GB, free: 9.027 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001504/0.7098, allocations: 95.66 kB / 0.5915 GB, free: 9.027 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001506/0.7113, allocations: 168.3 kB / 0.5916 GB, free: 9.023 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00888/0.7202, allocations: 5.227 MB / 0.5967 GB, free: 6.57 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01417/0.7344, allocations: 6.894 MB / 0.6034 GB, free: 0.6797 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001831/0.7347, allocations: 19.88 kB / 0.6035 GB, free: 0.6602 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009639/0.7356, allocations: 8 kB / 0.6035 GB, free: 0.6523 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001577/0.7372, allocations: 0.8686 MB / 0.6043 GB, free: 15.78 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03826/0.7755, allocations: 23.03 MB / 0.6268 GB, free: 8.23 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003371/0.7789, allocations: 2.248 MB / 0.629 GB, free: 5.867 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001098/0.7801, allocations: 0.7319 MB / 0.6297 GB, free: 5.137 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008064/0.7881, allocations: 4.133 MB / 0.6338 GB, free: 0.6719 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.07e-05/0.7882, allocations: 47.81 kB / 0.6338 GB, free: 0.6172 MB / 394.7 MB Notification: Performance of pre-optimization done (n=129): time 5.441e-06/0.7883, allocations: 0 / 0.6338 GB, free: 0.6172 MB / 394.7 MB Notification: Performance of matching and sorting (n=153): time 0.01137/0.7996, allocations: 5.62 MB / 0.6393 GB, free: 10.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.627e-05/0.7998, allocations: 72.72 kB / 0.6394 GB, free: 10.84 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003691/0.8035, allocations: 1.85 MB / 0.6412 GB, free: 8.992 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001761/0.8037, allocations: 33.7 kB / 0.6412 GB, free: 8.953 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00162/0.8053, allocations: 2.107 MB / 0.6433 GB, free: 6.812 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005784/0.8059, allocations: 0.5549 MB / 0.6438 GB, free: 6.25 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001425/0.806, allocations: 0 / 0.6438 GB, free: 6.25 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003335/0.8064, allocations: 0.5192 MB / 0.6443 GB, free: 5.719 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00182/0.8082, allocations: 1.199 MB / 0.6455 GB, free: 4.516 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00341/0.8116, allocations: 3.401 MB / 0.6488 GB, free: 16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003093/0.8147, allocations: 2.063 MB / 0.6508 GB, free: 13.94 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.999e-05/0.8148, allocations: 20 kB / 0.6508 GB, free: 13.92 MB / 426.7 MB Notification: Performance of matching and sorting (n=529) (initialization): time 0.008088/0.8229, allocations: 4.382 MB / 0.6551 GB, free: 9.531 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.421e-05/0.823, allocations: 40 kB / 0.6552 GB, free: 9.492 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.152e-05/0.8231, allocations: 76 kB / 0.6552 GB, free: 9.418 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007501/0.8238, allocations: 327.6 kB / 0.6555 GB, free: 9.098 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002797/0.8266, allocations: 0.889 MB / 0.6564 GB, free: 8.207 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004195/0.8308, allocations: 3.213 MB / 0.6595 GB, free: 4.875 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003248/0.8341, allocations: 115.9 kB / 0.6597 GB, free: 4.762 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006824/0.8348, allocations: 240 kB / 0.6599 GB, free: 4.527 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 357 * 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 (485): * Single equations (assignments): 480 * 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%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006743/0.8355, allocations: 302.9 kB / 0.6602 GB, free: 4.223 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002951/0.8385, allocations: 1.651 MB / 0.6618 GB, free: 2.562 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003458/0.8388, allocations: 189.5 kB / 0.662 GB, free: 2.375 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00304/0.8419, allocations: 1.807 MB / 0.6637 GB, free: 0.5508 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001118/0.842, allocations: 27.98 kB / 0.6638 GB, free: 0.5234 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.842, allocations: 0 / 0.6638 GB, free: 0.5234 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-05/0.8421, allocations: 11.94 kB / 0.6638 GB, free: 0.5117 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00933/0.8514, allocations: 4.727 MB / 0.6684 GB, free: 11.69 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.24e-05/0.8514, allocations: 4 kB / 0.6684 GB, free: 11.69 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000833/0.8523, allocations: 203.7 kB / 0.6686 GB, free: 11.49 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005493/0.8529, allocations: 205.2 kB / 0.6688 GB, free: 11.29 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.031e-05/0.8529, allocations: 8.125 kB / 0.6688 GB, free: 11.28 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002981/0.8559, allocations: 2.588 MB / 0.6713 GB, free: 8.57 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-05/0.856, allocations: 4 kB / 0.6713 GB, free: 8.566 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004131/0.8601, allocations: 3.046 MB / 0.6743 GB, free: 5.406 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006974/0.8608, allocations: 270.7 kB / 0.6746 GB, free: 5.121 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002296/0.8611, allocations: 7.953 kB / 0.6746 GB, free: 5.113 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007378/0.8618, allocations: 43.88 kB / 0.6746 GB, free: 5.07 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001662/0.862, allocations: 93.12 kB / 0.6747 GB, free: 4.98 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.871e-05/0.8621, allocations: 40 kB / 0.6747 GB, free: 4.941 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002031/0.8641, allocations: 1.244 MB / 0.6759 GB, free: 3.707 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.8641, allocations: 0 / 0.6759 GB, free: 3.707 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003502/0.8676, allocations: 0.5898 MB / 0.6765 GB, free: 3.117 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 4 (revolute.phi,revolute.w,damper1D.s_rel,damper1D.v_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 107 * 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%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005048/0.8727, allocations: 4.376 MB / 0.6808 GB, free: 14.63 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005418/0.8781, allocations: 2.915 MB / 0.6836 GB, free: 11.73 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/0.8782, allocations: 0 / 0.6836 GB, free: 11.73 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001473/0.8797, allocations: 0.9489 MB / 0.6846 GB, free: 10.77 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001466/0.8812, allocations: 204.6 kB / 0.6848 GB, free: 10.57 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01463/0.8958, allocations: 6.004 MB / 0.6906 GB, free: 4.473 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003212/0.8991, allocations: 2.622 MB / 0.6932 GB, free: 1.82 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003165/0.9023, allocations: 1.178 MB / 0.6943 GB, free: 0.6367 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2616/1.164, allocations: 1.274 MB / 0.6956 GB, free: 127.2 MB / 458.7 MB Notification: Performance of SimCode: time 1.472e-06/1.164, allocations: 4.578 kB / 0.6956 GB, free: 127.2 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08047/1.244, allocations: 45.26 MB / 0.7398 GB, free: 118.1 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001702/1.245, allocations: 131.3 kB / 0.7399 GB, free: 117.9 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.139/4.383, allocations: 0 / 0.7399 GB, free: 117.9 MB / 458.7 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CraneCrab.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_CraneCrab_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_CraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe 2>&1)