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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/PlanarMechanics 1.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008842/0.0008842, allocations: 98.27 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005218/0.005218, allocations: 169.9 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.204/1.204, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1425/0.1425, allocations: 9.102 MB / 300.5 MB, free: 2.691 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002814/0.0002814, allocations: 8.234 kB / 363.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08294/0.08323, allocations: 52.43 MB / 416.2 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.171/0.2542, allocations: 26.21 MB / 442.4 MB, free: 27.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009909/0.2642, allocations: 6.044 MB / 448.5 MB, free: 24.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00288/0.2671, allocations: 98.44 kB / 448.6 MB, free: 24.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006549/0.2678, allocations: 297.1 kB / 448.9 MB, free: 24.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002379/0.2702, allocations: 1.305 MB / 450.2 MB, free: 24.17 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003023/0.2705, allocations: 122.1 kB / 450.3 MB, free: 24.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002212/0.2727, allocations: 3.456 MB / 453.7 MB, free: 22.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007024/0.2734, allocations: 0.8062 MB / 454.6 MB, free: 22.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005408/0.274, allocations: 0.7419 MB / 455.3 MB, free: 22.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001059/0.275, allocations: 1.291 MB / 456.6 MB, free: 21.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001823/0.2752, allocations: 129.1 kB / 456.7 MB, free: 21.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009215/0.2761, allocations: 0.7801 MB / 457.5 MB, free: 21.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006245/0.2768, allocations: 1.126 MB / 458.6 MB, free: 21.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007273/0.2775, allocations: 1.47 MB / 460.1 MB, free: 20.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002559/0.2801, allocations: 4.466 MB / 464.6 MB, free: 18.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2801, allocations: 2.938 kB / 464.6 MB, free: 18.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2801, allocations: 0 / 464.6 MB, free: 18.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.186e-05/0.2801, allocations: 0 / 464.6 MB, free: 18.87 MB / 350.1 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.005815/0.286, allocations: 3.2 MB / 467.8 MB, free: 17.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.286, allocations: 9.906 kB / 467.8 MB, free: 17.24 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004993/0.2865, allocations: 0.5401 MB / 468.3 MB, free: 16.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006157/0.2927, allocations: 1.805 MB / 470.1 MB, free: 16.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001768/0.2945, allocations: 1.349 MB / 471.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.398e-05/0.2946, allocations: 147.2 kB / 471.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003733/0.295, allocations: 198 kB / 471.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01021/0.3052, allocations: 7.9 MB / 479.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.499e-05/0.3053, allocations: 25.92 kB / 479.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002557/0.3055, allocations: 93.48 kB / 479.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002802/0.3083, allocations: 1.857 MB / 481.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01125/0.3196, allocations: 7.113 MB / 488.8 MB, free: 9.285 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02666/0.3463, allocations: 23.92 MB / 0.5007 GB, free: 2.266 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004712/0.351, allocations: 2.379 MB / 0.503 GB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00116/0.3522, allocations: 0.8196 MB / 0.5038 GB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00591/0.3581, allocations: 4.597 MB / 0.5083 GB, free: 9.969 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.141e-05/0.3582, allocations: 47.55 kB / 0.5083 GB, free: 9.914 MB / 382.1 MB Notification: Performance of pre-optimization done (n=129): time 2.726e-06/0.3582, allocations: 0 / 0.5083 GB, free: 9.914 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01357/0.3718, allocations: 7.049 MB / 0.5152 GB, free: 2.773 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.799e-05/0.3718, allocations: 72.66 kB / 0.5153 GB, free: 2.688 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003486/0.3753, allocations: 2.6 MB / 0.5178 GB, free: 56 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.152e-05/0.3754, allocations: 45.7 kB / 0.5179 GB, free: 4 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001235/0.3766, allocations: 2.058 MB / 0.5199 GB, free: 13.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004225/0.3771, allocations: 0.5628 MB / 0.5204 GB, free: 13.34 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003771/0.3775, allocations: 326.2 kB / 0.5208 GB, free: 13.02 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 7.586e-05/0.3775, allocations: 301.1 kB / 0.521 GB, free: 12.72 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001998/0.3795, allocations: 1.28 MB / 0.5223 GB, free: 11.44 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003165/0.3827, allocations: 3.378 MB / 0.5256 GB, free: 7.043 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005233/0.388, allocations: 5.001 MB / 0.5305 GB, free: 1.023 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.952e-05/0.388, allocations: 24 kB / 0.5305 GB, free: 1 MB / 398.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.00748/0.3955, allocations: 4.824 MB / 0.5352 GB, free: 12.16 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.17e-05/0.3956, allocations: 36 kB / 0.5352 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001031/0.3957, allocations: 80.12 kB / 0.5353 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008416/0.3965, allocations: 336.6 kB / 0.5356 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002402/0.399, allocations: 0.85 MB / 0.5365 GB, free: 10.87 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004036/0.403, allocations: 3.347 MB / 0.5397 GB, free: 7.387 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002639/0.4057, allocations: 200 kB / 0.5399 GB, free: 7.191 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003161/0.406, allocations: 227.9 kB / 0.5401 GB, free: 6.969 MB / 414.1 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 (463): * Single equations (assignments): 458 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002224/0.4082, allocations: 1.55 MB / 0.5417 GB, free: 5.406 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003234/0.4086, allocations: 217.1 kB / 0.5419 GB, free: 5.191 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003246/0.4118, allocations: 2.001 MB / 0.5438 GB, free: 3.172 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.988e-05/0.4119, allocations: 27.98 kB / 0.5438 GB, free: 3.145 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.327e-05/0.4119, allocations: 11.92 kB / 0.5439 GB, free: 3.133 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/0.412, allocations: 7.922 kB / 0.5439 GB, free: 3.125 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008829/0.4208, allocations: 5.692 MB / 0.5494 GB, free: 13.31 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/0.4208, allocations: 4 kB / 0.5494 GB, free: 13.31 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007608/0.4216, allocations: 195.7 kB / 0.5496 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006299/0.4222, allocations: 241 kB / 0.5498 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.064e-05/0.4223, allocations: 31.98 kB / 0.5499 GB, free: 12.85 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003038/0.4254, allocations: 2.74 MB / 0.5526 GB, free: 9.98 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.4254, allocations: 4 kB / 0.5526 GB, free: 9.977 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004317/0.4297, allocations: 3.094 MB / 0.5556 GB, free: 6.82 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005997/0.4303, allocations: 310.3 kB / 0.5559 GB, free: 6.496 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003395/0.4307, allocations: 31.92 kB / 0.5559 GB, free: 6.465 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008286/0.4315, allocations: 59.94 kB / 0.556 GB, free: 6.406 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001555/0.4317, allocations: 88.81 kB / 0.556 GB, free: 6.32 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.889e-05/0.4318, allocations: 40 kB / 0.5561 GB, free: 6.281 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002469/0.4342, allocations: 1.683 MB / 0.5577 GB, free: 4.582 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4342, allocations: 0 / 0.5577 GB, free: 4.582 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002596/0.4368, allocations: 0.6796 MB / 0.5584 GB, free: 3.902 MB / 430.1 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 (113): * Single equations (assignments): 108 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004704/0.4416, allocations: 3.728 MB / 0.562 GB, free: 112 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004905/0.4465, allocations: 3.132 MB / 0.5651 GB, free: 12.99 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.4465, allocations: 0 / 0.5651 GB, free: 12.99 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001497/0.448, allocations: 1.024 MB / 0.5661 GB, free: 11.95 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002603/0.4506, allocations: 365.9 kB / 0.5664 GB, free: 11.59 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.203/0.6537, allocations: 31.17 MB / 0.5969 GB, free: 92.74 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001984/0.6557, allocations: 2.552 MB / 0.5994 GB, free: 91.58 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00242/0.6581, allocations: 1.18 MB / 0.6005 GB, free: 91.54 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001232/0.6594, allocations: 1.292 MB / 0.6018 GB, free: 90.48 MB / 446.1 MB Notification: Performance of SimCode: time 5.92e-07/0.6594, allocations: 4 kB / 0.6018 GB, free: 90.48 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05837/0.7177, allocations: 46.2 MB / 0.6469 GB, free: 66.64 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001256/0.7179, allocations: 219.1 kB / 0.6471 GB, free: 66.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.583/3.301, allocations: 0 / 0.6471 GB, free: 66.38 MB / 446.1 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/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)