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.004576/0.004576, allocations: 171.9 kB / 15.11 MB, free: 5.969 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.211/1.211, allocations: 223.2 MB / 239 MB, free: 1.77 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.0008034/0.0008033, allocations: 102.5 kB / 290.2 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04101/0.04101, allocations: 8.951 MB / 350.3 MB, free: 2.059 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003069/0.0003069, allocations: 7.812 kB / 413.2 MB, free: 88.52 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0788/0.07913, allocations: 52.4 MB / 465.6 MB, free: 41.6 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2669/0.346, allocations: 88.18 MB / 0.5408 GB, free: 16.2 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000198/0.3463, allocations: 75.23 kB / 0.5409 GB, free: 16.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1309/0.4772, allocations: 61.55 MB / 0.601 GB, free: 13.63 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4773, allocations: 0 / 0.601 GB, free: 13.63 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001009/0.4774, allocations: 52.2 kB / 0.601 GB, free: 13.63 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: 1144 * Number of variables: 1144 Notification: Performance of Generate backend data structure: time 0.01044/0.4878, allocations: 3.131 MB / 0.6041 GB, free: 11.12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.4879, allocations: 11.97 kB / 0.6041 GB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002225/0.4901, allocations: 0.5665 MB / 0.6047 GB, free: 10.76 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008846/0.499, allocations: 1.934 MB / 0.6066 GB, free: 8.824 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004875/0.5039, allocations: 1.693 MB / 0.6082 GB, free: 7.543 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002128/0.5041, allocations: 218.4 kB / 0.6084 GB, free: 7.422 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001521/0.5057, allocations: 293.5 kB / 0.6087 GB, free: 7.234 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01492/0.5206, allocations: 7.491 MB / 0.616 GB, free: 1.707 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001683/0.5208, allocations: 19.81 kB / 0.616 GB, free: 1.688 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001056/0.5218, allocations: 133.5 kB / 0.6162 GB, free: 1.652 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001441/0.5233, allocations: 0.8725 MB / 0.617 GB, free: 0.9336 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01297/0.5363, allocations: 7.015 MB / 0.6239 GB, free: 10.06 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03044/0.5667, allocations: 23.83 MB / 0.6471 GB, free: 1.906 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004496/0.5713, allocations: 2.367 MB / 0.6494 GB, free: 15.43 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006491/0.5778, allocations: 4.608 MB / 0.6539 GB, free: 10.46 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.579e-05/0.5778, allocations: 43.56 kB / 0.654 GB, free: 10.41 MB / 426.7 MB Notification: Performance of pre-optimization done (n=129): time 2.905e-06/0.5778, allocations: 0 / 0.654 GB, free: 10.41 MB / 426.7 MB Notification: Performance of matching and sorting (n=153): time 0.01295/0.5908, allocations: 7.179 MB / 0.661 GB, free: 3.105 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.095e-05/0.5908, allocations: 76.64 kB / 0.6611 GB, free: 3.016 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00318/0.594, allocations: 2.28 MB / 0.6633 GB, free: 0.707 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.315e-05/0.5941, allocations: 45.7 kB / 0.6633 GB, free: 0.6562 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001252/0.5954, allocations: 2.045 MB / 0.6653 GB, free: 14.61 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004023/0.5958, allocations: 0.5651 MB / 0.6659 GB, free: 14.04 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001709/0.596, allocations: 79.2 kB / 0.666 GB, free: 13.97 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002461/0.5962, allocations: 470.5 kB / 0.6664 GB, free: 13.5 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001881/0.5981, allocations: 1.245 MB / 0.6676 GB, free: 12.26 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003084/0.6012, allocations: 3.323 MB / 0.6709 GB, free: 7.914 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002752/0.604, allocations: 2.052 MB / 0.6729 GB, free: 5.863 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.195e-05/0.604, allocations: 20 kB / 0.6729 GB, free: 5.844 MB / 442.7 MB Notification: Performance of matching and sorting (n=505) (initialization): time 0.007026/0.611, allocations: 4.753 MB / 0.6775 GB, free: 1.086 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.061e-05/0.6111, allocations: 36 kB / 0.6776 GB, free: 1.051 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.988e-05/0.6112, allocations: 76 kB / 0.6776 GB, free: 0.9766 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006974/0.6119, allocations: 325.1 kB / 0.678 GB, free: 0.6562 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002398/0.6143, allocations: 0.8383 MB / 0.6788 GB, free: 15.82 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003894/0.6182, allocations: 3.415 MB / 0.6821 GB, free: 12.27 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002155/0.6204, allocations: 183.9 kB / 0.6823 GB, free: 12.09 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003054/0.6207, allocations: 228 kB / 0.6825 GB, free: 11.87 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 333 * 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 (461): * Single equations (assignments): 456 * 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.002237/0.623, allocations: 1.546 MB / 0.684 GB, free: 10.32 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002959/0.6233, allocations: 225.2 kB / 0.6842 GB, free: 10.09 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003071/0.6263, allocations: 1.962 MB / 0.6861 GB, free: 8.113 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001063/0.6265, allocations: 31.94 kB / 0.6862 GB, free: 8.082 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.6265, allocations: 4 kB / 0.6862 GB, free: 8.078 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.263e-05/0.6265, allocations: 7.969 kB / 0.6862 GB, free: 8.07 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009225/0.6357, allocations: 5.646 MB / 0.6917 GB, free: 2.312 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/0.6357, allocations: 4.344 kB / 0.6917 GB, free: 2.309 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007743/0.6365, allocations: 207.7 kB / 0.6919 GB, free: 2.105 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005158/0.6371, allocations: 208.6 kB / 0.6921 GB, free: 1.898 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.348e-05/0.6372, allocations: 28 kB / 0.6921 GB, free: 1.871 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1713/0.8085, allocations: 2.786 MB / 0.6948 GB, free: 115.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/0.8085, allocations: 3.75 kB / 0.6948 GB, free: 115.2 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003876/0.8124, allocations: 3.246 MB / 0.698 GB, free: 114.7 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005369/0.813, allocations: 307.9 kB / 0.6983 GB, free: 114.6 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000212/0.8132, allocations: 28.83 kB / 0.6983 GB, free: 114.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007278/0.8139, allocations: 65.64 kB / 0.6984 GB, free: 114.6 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000122/0.8141, allocations: 88.2 kB / 0.6985 GB, free: 114.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.424e-05/0.8141, allocations: 43.95 kB / 0.6985 GB, free: 114.6 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001999/0.8161, allocations: 1.622 MB / 0.7001 GB, free: 114.4 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.8161, allocations: 0 / 0.7001 GB, free: 114.4 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002272/0.8184, allocations: 0.6811 MB / 0.7008 GB, free: 114.4 MB / 458.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 () * Number of clocked 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.003579/0.822, allocations: 4.583 MB / 0.7053 GB, free: 112.7 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003768/0.8258, allocations: 3.07 MB / 0.7083 GB, free: 112.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.8258, allocations: 1 kB / 0.7083 GB, free: 112.6 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00125/0.8271, allocations: 1.011 MB / 0.7092 GB, free: 112.4 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.8283, allocations: 340 kB / 0.7096 GB, free: 112.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03833/0.8666, allocations: 70.42 MB / 0.7783 GB, free: 53.49 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003521/0.8702, allocations: 2.62 MB / 0.7809 GB, free: 52.72 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002891/0.8731, allocations: 1.172 MB / 0.782 GB, free: 52.63 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001617/0.8747, allocations: 1.294 MB / 0.7833 GB, free: 52.11 MB / 458.7 MB Notification: Performance of SimCode: time 9.057e-06/0.8748, allocations: 0 / 0.7833 GB, free: 52.11 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06831/0.9431, allocations: 51.57 MB / 0.8337 GB, free: 22.83 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001328/0.9433, allocations: 191.9 kB / 0.8338 GB, free: 22.58 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.834/3.777, allocations: 0 / 0.8338 GB, free: 22.58 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)