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.006274/0.006274, allocations: 100.1 kB / 15.73 MB, free: 6.039 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.001395/0.001395, allocations: 187.4 kB / 16.67 MB, free: 5.965 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1589/0.1589, allocations: 9.101 MB / 299.6 MB, free: 1.738 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 68.12 kB / 414.1 MB, free: 8.887 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2294/0.2308, allocations: 51.43 MB / 465.6 MB, free: 17.8 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.WheelBasedCraneCrab): time 0.00815/0.239, allocations: 8.182 MB / 473.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005768/0.2448, allocations: 2.528 MB / 476.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002203/0.2471, allocations: 33.53 kB / 476.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001567/0.2488, allocations: 354 kB / 476.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005441/0.2542, allocations: 1.44 MB / 478.1 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009469/0.2552, allocations: 101.7 kB / 478.2 MB, free: 9.355 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004763/0.26, allocations: 2.428 MB / 480.6 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001864/0.2619, allocations: 0.8211 MB / 481.4 MB, free: 7.395 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002454/0.2644, allocations: 0.8688 MB / 482.3 MB, free: 6.883 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002328/0.2668, allocations: 1.255 MB / 483.6 MB, free: 6.117 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009762/0.2678, allocations: 220.5 kB / 483.8 MB, free: 6.117 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00228/0.2701, allocations: 0.8161 MB / 484.6 MB, free: 5.781 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001639/0.2718, allocations: 1.197 MB / 485.8 MB, free: 5.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002592/0.2744, allocations: 1.537 MB / 487.3 MB, free: 3.879 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00639/0.2808, allocations: 4.946 MB / 492.3 MB, free: 488 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.2809, allocations: 4 kB / 492.3 MB, free: 484 kB / 350.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.2809, allocations: 0 / 492.3 MB, free: 484 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001683/0.2811, allocations: 3.938 kB / 492.3 MB, free: 480 kB / 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.01442/0.2955, allocations: 4.721 MB / 497 MB, free: 12.67 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.912e-05/0.2956, allocations: 12.03 kB / 497 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002413/0.298, allocations: 0.5352 MB / 497.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007706/0.3057, allocations: 1.755 MB / 499.3 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004033/0.3098, allocations: 1.33 MB / 0.4889 GB, free: 8.973 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003069/0.3102, allocations: 143.9 kB / 0.489 GB, free: 8.832 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001649/0.3119, allocations: 195.9 kB / 0.4892 GB, free: 8.641 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01993/0.3318, allocations: 8.353 MB / 0.4974 GB, free: 15.87 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001565/0.3321, allocations: 35.7 kB / 0.4974 GB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009919/0.3331, allocations: 91.86 kB / 0.4975 GB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003699/0.3368, allocations: 1.934 MB / 0.4994 GB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02047/0.3573, allocations: 7.55 MB / 0.5068 GB, free: 6.246 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05174/0.4091, allocations: 26.28 MB / 0.5324 GB, free: 11.38 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007712/0.4169, allocations: 2.615 MB / 0.535 GB, free: 8.641 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001823/0.4188, allocations: 0.8649 MB / 0.5358 GB, free: 7.773 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009175/0.428, allocations: 5.759 MB / 0.5415 GB, free: 1.371 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.242e-05/0.4281, allocations: 43.56 kB / 0.5415 GB, free: 1.32 MB / 414.1 MB Notification: Performance of pre-optimization done (n=141): time 6.222e-06/0.4281, allocations: 4 kB / 0.5415 GB, free: 1.316 MB / 414.1 MB Notification: Performance of matching and sorting (n=156): time 0.02082/0.4489, allocations: 6.939 MB / 0.5483 GB, free: 10.29 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.814e-05/0.449, allocations: 72.7 kB / 0.5483 GB, free: 10.2 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005678/0.4547, allocations: 2.614 MB / 0.5509 GB, free: 7.559 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002814/0.4551, allocations: 45.7 kB / 0.5509 GB, free: 7.508 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001872/0.457, allocations: 2.146 MB / 0.553 GB, free: 5.328 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008707/0.4579, allocations: 0.5821 MB / 0.5536 GB, free: 4.738 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002372/0.4602, allocations: 0.8297 MB / 0.5544 GB, free: 3.895 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.4604, allocations: 301.1 kB / 0.5547 GB, free: 3.598 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00291/0.4633, allocations: 1.312 MB / 0.556 GB, free: 2.277 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004985/0.4683, allocations: 3.715 MB / 0.5596 GB, free: 13.36 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007101/0.4755, allocations: 5.455 MB / 0.5649 GB, free: 6.727 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.141e-05/0.4756, allocations: 31.88 kB / 0.565 GB, free: 6.695 MB / 446.1 MB Notification: Performance of matching and sorting (n=550) (initialization): time 0.01088/0.4865, allocations: 5.096 MB / 0.5699 GB, free: 1.59 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.775e-05/0.4866, allocations: 40 kB / 0.57 GB, free: 1.551 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001359/0.4868, allocations: 91.94 kB / 0.5701 GB, free: 1.461 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008117/0.4876, allocations: 272.7 kB / 0.5703 GB, free: 1.191 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003252/0.4909, allocations: 0.9244 MB / 0.5712 GB, free: 272 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004256/0.4952, allocations: 3.205 MB / 0.5744 GB, free: 12.91 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003193/0.4984, allocations: 200 kB / 0.5746 GB, free: 12.72 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007488/0.4992, allocations: 256 kB / 0.5748 GB, free: 12.47 MB / 462.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.003228/0.5024, allocations: 1.605 MB / 0.5764 GB, free: 10.85 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000511/0.503, allocations: 221.1 kB / 0.5766 GB, free: 10.63 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004407/0.5074, allocations: 1.967 MB / 0.5785 GB, free: 8.652 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001286/0.5076, allocations: 27.98 kB / 0.5785 GB, free: 8.625 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/0.5076, allocations: 0 / 0.5785 GB, free: 8.625 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-05/0.5076, allocations: 7.969 kB / 0.5785 GB, free: 8.617 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01338/0.521, allocations: 5.936 MB / 0.5843 GB, free: 2.512 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-05/0.5211, allocations: 4 kB / 0.5843 GB, free: 2.508 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009902/0.5221, allocations: 219.6 kB / 0.5845 GB, free: 2.293 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005279/0.5226, allocations: 172.3 kB / 0.5847 GB, free: 2.125 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001858/0.5228, allocations: 35.98 kB / 0.5847 GB, free: 2.09 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2255/0.7483, allocations: 2.596 MB / 0.5873 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.227e-06/0.7484, allocations: 9.219 kB / 0.5873 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005698/0.7541, allocations: 3.129 MB / 0.5903 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007409/0.7549, allocations: 298.4 kB / 0.5906 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005474/0.7554, allocations: 29.77 kB / 0.5907 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00113/0.7566, allocations: 59.72 kB / 0.5907 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002784/0.7569, allocations: 95.59 kB / 0.5908 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001291/0.757, allocations: 51.23 kB / 0.5909 GB, free: 109.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003727/0.7607, allocations: 1.666 MB / 0.5925 GB, free: 108.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.7608, allocations: 0 / 0.5925 GB, free: 108.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004368/0.7651, allocations: 0.6842 MB / 0.5931 GB, free: 108.7 MB / 462.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.006914/0.7721, allocations: 3.777 MB / 0.5968 GB, free: 106.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007074/0.7792, allocations: 3.256 MB / 0.6 GB, free: 105.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.165e-05/0.7793, allocations: 0 / 0.6 GB, free: 105.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001922/0.7812, allocations: 1.022 MB / 0.601 GB, free: 105.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003242/0.7845, allocations: 384.9 kB / 0.6014 GB, free: 105.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05014/0.8347, allocations: 28.66 MB / 0.6294 GB, free: 85.64 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004647/0.8394, allocations: 2.585 MB / 0.6319 GB, free: 83.54 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003266/0.8427, allocations: 1.257 MB / 0.6331 GB, free: 82.62 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002499/0.8452, allocations: 1.288 MB / 0.6344 GB, free: 81.34 MB / 462.1 MB Notification: Performance of SimCode: time 1.262e-06/0.8452, allocations: 2.516 kB / 0.6344 GB, free: 81.34 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07486/0.9201, allocations: 45.25 MB / 0.6786 GB, free: 36.35 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.92/16.84, allocations: 18.66 kB / 0.6786 GB, free: 36.34 MB / 462.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)