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.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/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.0007277/0.0007277, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.0008762/0.0008762, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 223.2 MB / 240 MB, free: 5.234 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1795/0.1795, allocations: 9.117 MB / 300.2 MB, free: 2.789 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000313/0.000313, allocations: 15.98 kB / 363.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1052, allocations: 52.43 MB / 415.6 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.WheelBasedCraneCrab): time 0.1931/0.2984, allocations: 24.3 MB / 439.9 MB, free: 31.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01052/0.3089, allocations: 5.743 MB / 445.7 MB, free: 27.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004619/0.3136, allocations: 98.91 kB / 445.8 MB, free: 27.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002662/0.3163, allocations: 1.184 MB / 446.9 MB, free: 26.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01041/0.3267, allocations: 4.253 MB / 451.2 MB, free: 24.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007052/0.3274, allocations: 102 kB / 451.3 MB, free: 24.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002494/0.3299, allocations: 2.709 MB / 454 MB, free: 23.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006882/0.3306, allocations: 0.7401 MB / 454.8 MB, free: 23.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006333/0.3313, allocations: 0.7751 MB / 455.5 MB, free: 23.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001095/0.3324, allocations: 1.253 MB / 456.8 MB, free: 22.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001741/0.3326, allocations: 122.7 kB / 456.9 MB, free: 22.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009547/0.3335, allocations: 0.657 MB / 457.6 MB, free: 22.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006661/0.3342, allocations: 1.087 MB / 458.6 MB, free: 22.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003615/0.3346, allocations: 0.6407 MB / 459.3 MB, free: 21.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002395/0.337, allocations: 3.629 MB / 462.9 MB, free: 20.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.337, allocations: 0 / 462.9 MB, free: 20.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.337, allocations: 3 kB / 462.9 MB, free: 20.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.185e-05/0.3371, allocations: 0 / 462.9 MB, free: 20.98 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.008564/0.3456, allocations: 4.114 MB / 467 MB, free: 19.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.3457, allocations: 9.781 kB / 467 MB, free: 19.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006359/0.3463, allocations: 0.5388 MB / 467.6 MB, free: 19.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006065/0.3524, allocations: 1.805 MB / 469.4 MB, free: 18.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002047/0.3545, allocations: 1.312 MB / 470.7 MB, free: 17.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.877e-05/0.3546, allocations: 140.8 kB / 470.8 MB, free: 17.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003704/0.355, allocations: 188.5 kB / 471 MB, free: 17.78 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01332/0.3683, allocations: 8.343 MB / 479.4 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.718e-05/0.3684, allocations: 27.7 kB / 479.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002587/0.3686, allocations: 91.33 kB / 479.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003098/0.3717, allocations: 1.941 MB / 481.4 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01424/0.386, allocations: 7.508 MB / 488.9 MB, free: 9.898 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0323/0.4183, allocations: 26.35 MB / 0.5032 GB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006347/0.4247, allocations: 2.6 MB / 0.5057 GB, free: 12.74 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001386/0.4261, allocations: 0.8689 MB / 0.5066 GB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007304/0.4335, allocations: 5.773 MB / 0.5122 GB, free: 5.445 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.325e-05/0.4335, allocations: 43.56 kB / 0.5123 GB, free: 5.395 MB / 382.1 MB Notification: Performance of pre-optimization done (n=141): time 3.407e-06/0.4335, allocations: 0 / 0.5123 GB, free: 5.395 MB / 382.1 MB Notification: Performance of matching and sorting (n=156): time 0.01497/0.4485, allocations: 6.928 MB / 0.519 GB, free: 14.37 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.059e-05/0.4486, allocations: 64.72 kB / 0.5191 GB, free: 14.29 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004793/0.4534, allocations: 2.594 MB / 0.5216 GB, free: 11.67 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.122e-05/0.4535, allocations: 49.7 kB / 0.5217 GB, free: 11.61 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001809/0.4553, allocations: 2.135 MB / 0.5238 GB, free: 9.449 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000517/0.4559, allocations: 0.586 MB / 0.5243 GB, free: 8.855 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002428/0.4561, allocations: 84 kB / 0.5244 GB, free: 8.773 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003457/0.4565, allocations: 487.3 kB / 0.5249 GB, free: 8.289 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002337/0.4588, allocations: 1.296 MB / 0.5261 GB, free: 6.984 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004/0.4628, allocations: 3.691 MB / 0.5297 GB, free: 2.09 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003319/0.4662, allocations: 2.197 MB / 0.5319 GB, free: 15.89 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.948e-05/0.4662, allocations: 28 kB / 0.5319 GB, free: 15.87 MB / 414.1 MB Notification: Performance of matching and sorting (n=550) (initialization): time 0.008248/0.4745, allocations: 5.061 MB / 0.5369 GB, free: 10.8 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.732e-05/0.4746, allocations: 40 kB / 0.5369 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001261/0.4747, allocations: 92.02 kB / 0.537 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006545/0.4754, allocations: 285.8 kB / 0.5373 GB, free: 10.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002568/0.478, allocations: 0.9319 MB / 0.5382 GB, free: 9.457 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003371/0.4813, allocations: 2.934 MB / 0.541 GB, free: 6.387 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00247/0.4838, allocations: 200 kB / 0.5412 GB, free: 6.191 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003837/0.4842, allocations: 252 kB / 0.5415 GB, free: 5.945 MB / 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 (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%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002746/0.487, allocations: 1.605 MB / 0.543 GB, free: 4.328 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003824/0.4874, allocations: 225.1 kB / 0.5432 GB, free: 4.105 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003443/0.4908, allocations: 1.967 MB / 0.5452 GB, free: 2.125 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000101/0.4909, allocations: 31.92 kB / 0.5452 GB, free: 2.094 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.451e-05/0.491, allocations: 4 kB / 0.5452 GB, free: 2.09 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.547e-05/0.491, allocations: 7.969 kB / 0.5452 GB, free: 2.082 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01038/0.5014, allocations: 5.947 MB / 0.551 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-05/0.5014, allocations: 8.656 kB / 0.551 GB, free: 11.97 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000794/0.5022, allocations: 219.7 kB / 0.5512 GB, free: 11.75 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004301/0.5026, allocations: 169.3 kB / 0.5514 GB, free: 11.59 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.948e-05/0.5027, allocations: 35.98 kB / 0.5514 GB, free: 11.55 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002597/0.5054, allocations: 2.405 MB / 0.5538 GB, free: 9.016 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.5054, allocations: 4 kB / 0.5538 GB, free: 9.012 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004162/0.5095, allocations: 3.113 MB / 0.5568 GB, free: 5.812 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006685/0.5102, allocations: 314.2 kB / 0.5571 GB, free: 5.484 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000441/0.5107, allocations: 28 kB / 0.5571 GB, free: 5.457 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009161/0.5116, allocations: 59.92 kB / 0.5572 GB, free: 5.398 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001537/0.5118, allocations: 96.78 kB / 0.5573 GB, free: 5.305 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-05/0.5119, allocations: 59.98 kB / 0.5574 GB, free: 5.246 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002799/0.5147, allocations: 1.653 MB / 0.559 GB, free: 3.578 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5147, allocations: 0 / 0.559 GB, free: 3.578 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003211/0.5179, allocations: 0.6874 MB / 0.5596 GB, free: 2.891 MB / 430.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 (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%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004798/0.5227, allocations: 3.762 MB / 0.5633 GB, free: 15.03 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006057/0.5288, allocations: 3.211 MB / 0.5665 GB, free: 11.82 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.5288, allocations: 0 / 0.5665 GB, free: 11.82 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001472/0.5303, allocations: 1.009 MB / 0.5674 GB, free: 10.81 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002288/0.5326, allocations: 374.8 kB / 0.5678 GB, free: 10.45 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2216/0.7542, allocations: 21.25 MB / 0.5885 GB, free: 99.92 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002203/0.7564, allocations: 2.578 MB / 0.5911 GB, free: 99.17 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002899/0.7593, allocations: 1.276 MB / 0.5923 GB, free: 99.14 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001465/0.7608, allocations: 1.288 MB / 0.5936 GB, free: 99.14 MB / 446.1 MB Notification: Performance of SimCode: time 9.32e-07/0.7608, allocations: 0 / 0.5936 GB, free: 99.14 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07447/0.8353, allocations: 51.99 MB / 0.6443 GB, free: 72.56 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001379/0.8354, allocations: 202.5 kB / 0.6445 GB, free: 72.32 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.645/3.48, allocations: 4 kB / 0.6445 GB, free: 72.31 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/linux/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) Environment - environmentSimulation: