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.001653/0.001653, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001913/0.001913, allocations: 190.7 kB / 16.25 MB, free: 6.633 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.364/1.364, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1532/0.1532, allocations: 9.1 MB / 299.2 MB, free: 1.844 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 67.89 kB / 361.5 MB, free: 13.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1081, allocations: 51.42 MB / 413 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.WheelBasedCraneCrab): time 0.2186/0.3267, allocations: 26.91 MB / 439.9 MB, free: 28.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01247/0.3393, allocations: 5.986 MB / 445.9 MB, free: 25.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005978/0.3453, allocations: 98.53 kB / 445.9 MB, free: 25.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001221/0.3466, allocations: 302.8 kB / 446.2 MB, free: 25.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003616/0.3502, allocations: 1.304 MB / 447.5 MB, free: 24.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000513/0.3508, allocations: 88.64 kB / 447.6 MB, free: 24.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002849/0.3536, allocations: 2.445 MB / 450.1 MB, free: 23.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001257/0.3549, allocations: 0.838 MB / 450.9 MB, free: 23.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001452/0.3564, allocations: 0.8605 MB / 451.8 MB, free: 22.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001834/0.3582, allocations: 1.378 MB / 453.2 MB, free: 22.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007166/0.359, allocations: 219.2 kB / 453.4 MB, free: 22.13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001761/0.3607, allocations: 0.8216 MB / 454.2 MB, free: 21.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001366/0.3621, allocations: 1.206 MB / 455.4 MB, free: 21.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002245/0.3644, allocations: 1.546 MB / 456.9 MB, free: 20.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004937/0.3693, allocations: 4.73 MB / 461.7 MB, free: 18.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3693, allocations: 0 / 461.7 MB, free: 18.49 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3694, allocations: 0 / 461.7 MB, free: 18.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001956/0.3696, allocations: 0 / 461.7 MB, free: 18.49 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.01202/0.3816, allocations: 4.732 MB / 466.4 MB, free: 16.44 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/0.3817, allocations: 11.59 kB / 466.4 MB, free: 16.44 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006269/0.3823, allocations: 0.5334 MB / 467 MB, free: 16.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005868/0.3882, allocations: 1.763 MB / 468.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002604/0.3908, allocations: 1.321 MB / 470 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001134/0.3909, allocations: 145.6 kB / 470.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004455/0.3914, allocations: 195.5 kB / 470.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01327/0.4047, allocations: 8.35 MB / 478.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.658e-05/0.4048, allocations: 26.92 kB / 478.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000272/0.405, allocations: 89.89 kB / 478.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003074/0.4081, allocations: 1.938 MB / 480.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01592/0.4241, allocations: 7.545 MB / 488.3 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03808/0.4622, allocations: 26.36 MB / 0.5026 GB, free: 13.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007223/0.4695, allocations: 2.61 MB / 0.5052 GB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001574/0.4711, allocations: 0.8649 MB / 0.506 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007793/0.4789, allocations: 5.77 MB / 0.5116 GB, free: 3.961 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.81e-05/0.479, allocations: 44.31 kB / 0.5117 GB, free: 3.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=141): time 4.178e-06/0.479, allocations: 0 / 0.5117 GB, free: 3.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=156): time 0.01576/0.4948, allocations: 6.945 MB / 0.5185 GB, free: 12.87 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.628e-05/0.4948, allocations: 64.72 kB / 0.5185 GB, free: 12.8 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004376/0.4992, allocations: 2.61 MB / 0.5211 GB, free: 10.16 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001706/0.4994, allocations: 45.7 kB / 0.5211 GB, free: 10.11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001544/0.501, allocations: 2.143 MB / 0.5232 GB, free: 7.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006681/0.5017, allocations: 0.5821 MB / 0.5238 GB, free: 7.34 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001372/0.503, allocations: 0.8374 MB / 0.5246 GB, free: 6.488 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.634e-05/0.5031, allocations: 301.1 kB / 0.5249 GB, free: 6.191 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002248/0.5054, allocations: 1.312 MB / 0.5262 GB, free: 4.871 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003789/0.5092, allocations: 3.722 MB / 0.5298 GB, free: 15.95 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006004/0.5152, allocations: 5.441 MB / 0.5351 GB, free: 9.328 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.026e-05/0.5153, allocations: 31.94 kB / 0.5351 GB, free: 9.297 MB / 414.1 MB Notification: Performance of matching and sorting (n=550) (initialization): time 0.008973/0.5243, allocations: 5.096 MB / 0.5401 GB, free: 4.191 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.446e-05/0.5244, allocations: 40 kB / 0.5402 GB, free: 4.152 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001212/0.5246, allocations: 90.23 kB / 0.5402 GB, free: 4.066 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007139/0.5253, allocations: 274.8 kB / 0.5405 GB, free: 3.797 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002848/0.5281, allocations: 0.9318 MB / 0.5414 GB, free: 2.863 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003716/0.5319, allocations: 3.202 MB / 0.5445 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002876/0.5348, allocations: 195.9 kB / 0.5447 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005904/0.5354, allocations: 256 kB / 0.545 GB, free: 15.07 MB / 430.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.002752/0.5381, allocations: 1.601 MB / 0.5465 GB, free: 13.46 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004531/0.5386, allocations: 228.2 kB / 0.5468 GB, free: 13.24 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003486/0.5421, allocations: 1.971 MB / 0.5487 GB, free: 11.25 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000106/0.5422, allocations: 23.98 kB / 0.5487 GB, free: 11.23 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.265e-05/0.5422, allocations: 7.984 kB / 0.5487 GB, free: 11.22 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.269e-05/0.5423, allocations: 3.984 kB / 0.5487 GB, free: 11.22 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01047/0.5527, allocations: 5.969 MB / 0.5545 GB, free: 5.098 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.321e-05/0.5528, allocations: 4 kB / 0.5545 GB, free: 5.094 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008447/0.5536, allocations: 216.3 kB / 0.5548 GB, free: 4.883 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004685/0.5541, allocations: 173.3 kB / 0.5549 GB, free: 4.711 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001081/0.5542, allocations: 39.91 kB / 0.555 GB, free: 4.672 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002756/0.557, allocations: 2.603 MB / 0.5575 GB, free: 1.93 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.543e-06/0.557, allocations: 11.94 kB / 0.5575 GB, free: 1.918 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004328/0.5614, allocations: 3.125 MB / 0.5606 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007729/0.5622, allocations: 302.3 kB / 0.5609 GB, free: 14.39 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004961/0.5627, allocations: 28 kB / 0.5609 GB, free: 14.36 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/0.5637, allocations: 67.91 kB / 0.5609 GB, free: 14.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002333/0.564, allocations: 96.77 kB / 0.561 GB, free: 14.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001034/0.5641, allocations: 51.98 kB / 0.5611 GB, free: 14.15 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002524/0.5666, allocations: 1.668 MB / 0.5627 GB, free: 12.46 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5666, allocations: 0 / 0.5627 GB, free: 12.46 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003101/0.5698, allocations: 0.6797 MB / 0.5634 GB, free: 11.79 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.004544/0.5743, allocations: 3.775 MB / 0.5671 GB, free: 7.918 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007574/0.5819, allocations: 4.461 MB / 0.5714 GB, free: 3.461 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/0.5819, allocations: 0 / 0.5714 GB, free: 3.461 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001474/0.5834, allocations: 1.009 MB / 0.5724 GB, free: 2.445 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002204/0.5856, allocations: 393.4 kB / 0.5728 GB, free: 2.082 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2137/0.7994, allocations: 32.44 MB / 0.6045 GB, free: 108 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002485/0.8019, allocations: 2.579 MB / 0.607 GB, free: 106.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002715/0.8046, allocations: 1.266 MB / 0.6082 GB, free: 106.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001442/0.8061, allocations: 1.285 MB / 0.6095 GB, free: 105.7 MB / 446.1 MB Notification: Performance of SimCode: time 6.01e-07/0.8061, allocations: 1.031 kB / 0.6095 GB, free: 105.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07233/0.8784, allocations: 47.72 MB / 0.6561 GB, free: 78.11 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001418/0.8786, allocations: 218.3 kB / 0.6563 GB, free: 77.86 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.929/3.808, allocations: 0 / 0.6563 GB, free: 77.86 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)