Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.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.WheelBasedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_WheelBasedCraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.WheelBasedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_WheelBasedCraneCrab",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.0008389/0.0008387, allocations: 97.56 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.005254/0.005254, allocations: 169.2 kB / 16.26 MB, free: 6.648 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.236/1.236, allocations: 223.3 MB / 240.3 MB, free: 5.246 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.146/0.146, allocations: 9.104 MB / 300.5 MB, free: 2.711 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002928/0.0002928, allocations: 8 kB / 363.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.087/0.08731, allocations: 52.43 MB / 416.2 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.WheelBasedCraneCrab): time 0.1897/0.277, allocations: 26.07 MB / 442.3 MB, free: 27.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01105/0.2881, allocations: 5.978 MB / 448.3 MB, free: 25.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004117/0.2923, allocations: 101.1 kB / 448.4 MB, free: 25.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008291/0.2931, allocations: 300.5 kB / 448.7 MB, free: 24.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003427/0.2966, allocations: 1.315 MB / 450 MB, free: 24.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003334/0.2969, allocations: 87.67 kB / 450.1 MB, free: 24.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002598/0.2995, allocations: 3.436 MB / 453.5 MB, free: 23.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001127/0.3007, allocations: 0.7466 MB / 454.3 MB, free: 22.83 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001088/0.3018, allocations: 0.716 MB / 455 MB, free: 22.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001269/0.303, allocations: 1.266 MB / 456.2 MB, free: 22.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002354/0.3033, allocations: 124.8 kB / 456.4 MB, free: 22.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001213/0.3045, allocations: 0.7606 MB / 457.1 MB, free: 21.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007436/0.3053, allocations: 1.131 MB / 458.2 MB, free: 21.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001038/0.3063, allocations: 1.466 MB / 459.7 MB, free: 20.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003388/0.3097, allocations: 4.468 MB / 464.2 MB, free: 19.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3097, allocations: 0 / 464.2 MB, free: 19.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3097, allocations: 3.156 kB / 464.2 MB, free: 19.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.026e-05/0.3098, allocations: 0 / 464.2 MB, free: 19.11 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: 1171 * Number of variables: 1171 Notification: Performance of Generate backend data structure: time 0.009329/0.3192, allocations: 4.083 MB / 468.3 MB, free: 17.44 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.3192, allocations: 9.781 kB / 468.3 MB, free: 17.44 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007432/0.32, allocations: 0.5408 MB / 468.8 MB, free: 17.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00652/0.3265, allocations: 1.794 MB / 470.6 MB, free: 16.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002278/0.3288, allocations: 1.328 MB / 471.9 MB, free: 16.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001122/0.3289, allocations: 146.4 kB / 472.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004583/0.3294, allocations: 198.7 kB / 472.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01209/0.3415, allocations: 8.345 MB / 480.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.559e-05/0.3416, allocations: 27.3 kB / 480.6 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000275/0.3419, allocations: 92.8 kB / 480.7 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003234/0.3451, allocations: 1.933 MB / 482.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01488/0.36, allocations: 7.552 MB / 490.2 MB, free: 8.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03209/0.3921, allocations: 26.38 MB / 0.5045 GB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006579/0.3988, allocations: 2.602 MB / 0.507 GB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001302/0.4001, allocations: 0.8649 MB / 0.5079 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006924/0.407, allocations: 5.766 MB / 0.5135 GB, free: 4.141 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.127e-05/0.4071, allocations: 43.56 kB / 0.5136 GB, free: 4.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=141): time 3.056e-06/0.4071, allocations: 3.938 kB / 0.5136 GB, free: 4.086 MB / 382.1 MB Notification: Performance of matching and sorting (n=156): time 0.01457/0.4217, allocations: 6.943 MB / 0.5203 GB, free: 13.05 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.011e-05/0.4218, allocations: 64.72 kB / 0.5204 GB, free: 12.97 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003522/0.4253, allocations: 2.614 MB / 0.523 GB, free: 10.33 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.141e-05/0.4254, allocations: 49.7 kB / 0.523 GB, free: 10.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001349/0.4267, allocations: 2.131 MB / 0.5251 GB, free: 8.109 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004784/0.4272, allocations: 0.5938 MB / 0.5257 GB, free: 7.508 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004045/0.4276, allocations: 347 kB / 0.526 GB, free: 7.16 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.638e-05/0.4277, allocations: 305.1 kB / 0.5263 GB, free: 6.859 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002006/0.4298, allocations: 1.304 MB / 0.5276 GB, free: 5.547 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003469/0.4332, allocations: 3.711 MB / 0.5312 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006103/0.4393, allocations: 5.449 MB / 0.5365 GB, free: 10.01 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.048e-05/0.4394, allocations: 31.94 kB / 0.5365 GB, free: 9.977 MB / 414.1 MB Notification: Performance of matching and sorting (n=550) (initialization): time 0.007787/0.4472, allocations: 5.096 MB / 0.5415 GB, free: 4.871 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.124e-05/0.4473, allocations: 44.25 kB / 0.5416 GB, free: 4.828 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.615e-05/0.4474, allocations: 87.94 kB / 0.5416 GB, free: 4.742 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006019/0.448, allocations: 272.7 kB / 0.5419 GB, free: 4.473 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002516/0.4505, allocations: 0.928 MB / 0.5428 GB, free: 3.543 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003417/0.454, allocations: 2.928 MB / 0.5457 GB, free: 488 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002279/0.4562, allocations: 199.8 kB / 0.5459 GB, free: 288 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003087/0.4566, allocations: 252 kB / 0.5461 GB, free: 36 kB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 384 * Number of states: 0 () * Number of discrete variables: 12 (body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (510): * Single equations (assignments): 505 * 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,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0023/0.4589, allocations: 1.624 MB / 0.5477 GB, free: 14.4 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002843/0.4592, allocations: 221.1 kB / 0.5479 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003198/0.4624, allocations: 1.975 MB / 0.5498 GB, free: 12.2 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.99e-05/0.4625, allocations: 27.98 kB / 0.5498 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.4625, allocations: 0 / 0.5498 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.342e-05/0.4625, allocations: 3.984 kB / 0.5499 GB, free: 12.16 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009005/0.4715, allocations: 5.966 MB / 0.5557 GB, free: 6.043 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-05/0.4716, allocations: 11.98 kB / 0.5557 GB, free: 6.031 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007907/0.4724, allocations: 215.7 kB / 0.5559 GB, free: 5.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004573/0.4728, allocations: 169.2 kB / 0.5561 GB, free: 5.652 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.876e-05/0.4729, allocations: 39.97 kB / 0.5561 GB, free: 5.613 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002717/0.4757, allocations: 2.413 MB / 0.5585 GB, free: 3.066 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.4757, allocations: 4 kB / 0.5585 GB, free: 3.062 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0043/0.48, allocations: 3.125 MB / 0.5615 GB, free: 15.85 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005959/0.4806, allocations: 314.1 kB / 0.5618 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002294/0.4808, allocations: 31.98 kB / 0.5618 GB, free: 15.49 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007484/0.4816, allocations: 63.94 kB / 0.5619 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001824/0.4818, allocations: 100.8 kB / 0.562 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.123e-05/0.4819, allocations: 48 kB / 0.562 GB, free: 15.28 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002599/0.4845, allocations: 1.676 MB / 0.5637 GB, free: 13.59 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4845, allocations: 0 / 0.5637 GB, free: 13.59 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002879/0.4874, allocations: 0.6797 MB / 0.5643 GB, free: 12.91 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 5 (idealRolling.w,body.r[1],body.phi,revolute.phi,revolute.w) * 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 (118): * Single equations (assignments): 113 * 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,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004611/0.492, allocations: 3.769 MB / 0.568 GB, free: 9.047 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005089/0.4971, allocations: 3.234 MB / 0.5712 GB, free: 5.816 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.4971, allocations: 0 / 0.5712 GB, free: 5.816 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001393/0.4985, allocations: 1.012 MB / 0.5722 GB, free: 4.797 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003124/0.5017, allocations: 372.6 kB / 0.5725 GB, free: 4.441 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2028/0.7044, allocations: 32.53 MB / 0.6043 GB, free: 89.37 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002146/0.7066, allocations: 2.585 MB / 0.6068 GB, free: 88.18 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002634/0.7093, allocations: 1.275 MB / 0.6081 GB, free: 88.09 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001191/0.7105, allocations: 1.28 MB / 0.6093 GB, free: 87.05 MB / 446.1 MB Notification: Performance of SimCode: time 8.11e-07/0.7105, allocations: 7.188 kB / 0.6093 GB, free: 87.05 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05925/0.7697, allocations: 46.44 MB / 0.6547 GB, free: 60.49 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001299/0.7699, allocations: 218.4 kB / 0.6549 GB, free: 60.23 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.687/3.457, allocations: 0 / 0.6549 GB, free: 60.23 MB / 446.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_WheelBasedCraneCrab_fmu --startTime=0 --stopTime=4.5 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_WheelBasedCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.pipe 2>&1)