Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.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.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",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.0008229/0.0008231, allocations: 91.38 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.0008142/0.0008143, 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.352/1.352, allocations: 223.2 MB / 240 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1861/0.1861, allocations: 9.111 MB / 300.2 MB, free: 2.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003582/0.0003582, allocations: 8 kB / 363.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1012, allocations: 52.44 MB / 415.6 MB, free: 8.477 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.1966/0.2978, allocations: 24.72 MB / 440.4 MB, free: 30.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009708/0.3076, allocations: 5.823 MB / 446.2 MB, free: 26.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003609/0.3112, allocations: 101.4 kB / 446.3 MB, free: 26.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002276/0.3135, allocations: 1.19 MB / 447.5 MB, free: 25.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008833/0.3224, allocations: 4.257 MB / 451.7 MB, free: 24.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006109/0.323, allocations: 134 kB / 451.9 MB, free: 23.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002361/0.3254, allocations: 2.777 MB / 454.6 MB, free: 22.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007079/0.3261, allocations: 0.8131 MB / 455.5 MB, free: 22.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005735/0.3267, allocations: 0.7949 MB / 456.2 MB, free: 22.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001048/0.3277, allocations: 1.288 MB / 457.5 MB, free: 21.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000202/0.328, allocations: 130.4 kB / 457.7 MB, free: 21.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009184/0.3289, allocations: 0.6687 MB / 458.3 MB, free: 21.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006661/0.3296, allocations: 1.099 MB / 459.4 MB, free: 21.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003575/0.3299, allocations: 0.6357 MB / 460.1 MB, free: 20.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002368/0.3323, allocations: 3.665 MB / 463.7 MB, free: 20.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3323, allocations: 0 / 463.7 MB, free: 20.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.624e-06/0.3323, allocations: 3.938 kB / 463.7 MB, free: 20.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.746e-05/0.3324, allocations: 0 / 463.7 MB, free: 20.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: 1155 * Number of variables: 1155 Notification: Performance of Generate backend data structure: time 0.006271/0.3387, allocations: 3.29 MB / 467 MB, free: 18.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.3387, allocations: 12.81 kB / 467 MB, free: 18.44 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001127/0.3399, allocations: 0.5405 MB / 467.6 MB, free: 18.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006658/0.3465, allocations: 1.811 MB / 469.4 MB, free: 17.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003062/0.3496, allocations: 1.342 MB / 470.7 MB, free: 17.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001397/0.3498, allocations: 149 kB / 470.9 MB, free: 16.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000451/0.3503, allocations: 201.4 kB / 471.1 MB, free: 16.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01063/0.3609, allocations: 7.954 MB / 479 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.346e-05/0.361, allocations: 26.77 kB / 479.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002631/0.3613, allocations: 92.52 kB / 479.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002733/0.364, allocations: 1.844 MB / 481 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01173/0.3757, allocations: 7.143 MB / 488.1 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03012/0.4059, allocations: 24.15 MB / 0.5003 GB, free: 2.473 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004923/0.4109, allocations: 2.375 MB / 0.5026 GB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001185/0.4121, allocations: 0.8288 MB / 0.5034 GB, free: 15.15 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006223/0.4183, allocations: 4.745 MB / 0.508 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.365e-05/0.4184, allocations: 39.56 kB / 0.5081 GB, free: 9.977 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 2.965e-06/0.4184, allocations: 4 kB / 0.5081 GB, free: 9.973 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01387/0.4322, allocations: 7.114 MB / 0.515 GB, free: 2.781 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.715e-05/0.4323, allocations: 68.67 kB / 0.5151 GB, free: 2.699 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003622/0.436, allocations: 2.609 MB / 0.5176 GB, free: 60 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.366e-05/0.436, allocations: 49.7 kB / 0.5177 GB, free: 4 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00129/0.4373, allocations: 2.081 MB / 0.5197 GB, free: 13.89 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000423/0.4378, allocations: 0.5628 MB / 0.5203 GB, free: 13.32 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001763/0.438, allocations: 84 kB / 0.5203 GB, free: 13.24 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002401/0.4382, allocations: 478.5 kB / 0.5208 GB, free: 12.76 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002074/0.4403, allocations: 1.3 MB / 0.5221 GB, free: 11.46 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003259/0.4436, allocations: 3.426 MB / 0.5254 GB, free: 6.973 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002994/0.4466, allocations: 2.116 MB / 0.5275 GB, free: 4.855 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.711e-05/0.4466, allocations: 20 kB / 0.5275 GB, free: 4.836 MB / 398.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.007509/0.4541, allocations: 4.8 MB / 0.5322 GB, free: 28 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.387e-05/0.4542, allocations: 36.05 kB / 0.5322 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001042/0.4543, allocations: 76.16 kB / 0.5323 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005111/0.4549, allocations: 212.7 kB / 0.5325 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002748/0.4576, allocations: 0.9125 MB / 0.5334 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002147/0.4598, allocations: 2.142 MB / 0.5355 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002547/0.4623, allocations: 211.9 kB / 0.5357 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003528/0.4627, allocations: 228 kB / 0.5359 GB, free: 12.08 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 338 * 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 (478): * Single equations (assignments): 473 * 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 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002443/0.4652, allocations: 1.558 MB / 0.5374 GB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003638/0.4655, allocations: 221.1 kB / 0.5376 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003244/0.4688, allocations: 1.967 MB / 0.5396 GB, free: 8.309 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.963e-05/0.4689, allocations: 23.98 kB / 0.5396 GB, free: 8.285 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.487e-06/0.4689, allocations: 4 kB / 0.5396 GB, free: 8.281 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.529e-05/0.4689, allocations: 11.92 kB / 0.5396 GB, free: 8.27 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008896/0.4778, allocations: 5.631 MB / 0.5451 GB, free: 2.508 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.4778, allocations: 0 / 0.5451 GB, free: 2.508 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000935/0.4788, allocations: 247.8 kB / 0.5453 GB, free: 2.266 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002694/0.4791, allocations: 108.6 kB / 0.5454 GB, free: 2.156 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.065e-05/0.4792, allocations: 24 kB / 0.5455 GB, free: 2.133 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001589/0.4808, allocations: 1.873 MB / 0.5473 GB, free: 120 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.4808, allocations: 4.031 kB / 0.5473 GB, free: 116 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004264/0.485, allocations: 3.047 MB / 0.5503 GB, free: 13.02 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006124/0.4857, allocations: 318.1 kB / 0.5506 GB, free: 12.69 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000387/0.4861, allocations: 28.06 kB / 0.5506 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008768/0.487, allocations: 79.91 kB / 0.5507 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/0.4871, allocations: 80.83 kB / 0.5507 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-05/0.4872, allocations: 47.98 kB / 0.5508 GB, free: 12.46 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002596/0.4898, allocations: 1.676 MB / 0.5524 GB, free: 10.77 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4898, allocations: 0 / 0.5524 GB, free: 10.77 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002733/0.4926, allocations: 0.6602 MB / 0.5531 GB, free: 10.11 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (revolute.phi,prismatic.s,prismatic.v) * 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 (124): * Single equations (assignments): 119 * 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 {(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004583/0.4972, allocations: 3.7 MB / 0.5567 GB, free: 6.355 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004861/0.502, allocations: 3.121 MB / 0.5597 GB, free: 3.242 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.502, allocations: 0.75 kB / 0.5597 GB, free: 3.242 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00135/0.5034, allocations: 0.9922 MB / 0.5607 GB, free: 2.234 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001902/0.5053, allocations: 369.7 kB / 0.5611 GB, free: 1.879 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2007/0.706, allocations: 20.68 MB / 0.5813 GB, free: 123.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00215/0.7082, allocations: 2.566 MB / 0.5838 GB, free: 122.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002579/0.7108, allocations: 1.21 MB / 0.5849 GB, free: 122.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001569/0.7124, allocations: 1.291 MB / 0.5862 GB, free: 122.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.012e-06/0.7124, allocations: 0 / 0.5862 GB, free: 122.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09099/0.8034, allocations: 51.17 MB / 0.6362 GB, free: 101.6 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000119/0.8036, allocations: 196.2 kB / 0.6364 GB, free: 101.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.621/3.425, allocations: 4.062 kB / 0.6364 GB, free: 101.3 MB / 446.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe 2>&1) Environment - environmentSimulation: