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.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.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.001467/0.001467, 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.001855/0.001855, allocations: 191 kB / 16.25 MB, free: 6.629 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.325/1.325, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.181/0.181, allocations: 9.106 MB / 299.2 MB, free: 1.859 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 59.91 kB / 361.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1194, allocations: 51.44 MB / 413 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.2093/0.3287, allocations: 27.35 MB / 440.3 MB, free: 28.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01053/0.3393, allocations: 6.069 MB / 446.4 MB, free: 24.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004123/0.3434, allocations: 101.1 kB / 446.5 MB, free: 24.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008104/0.3443, allocations: 306.5 kB / 446.8 MB, free: 24.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002598/0.3469, allocations: 1.304 MB / 448.1 MB, free: 24.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003407/0.3473, allocations: 124.8 kB / 448.2 MB, free: 24.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002059/0.3493, allocations: 2.537 MB / 450.7 MB, free: 23.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009037/0.3503, allocations: 0.9647 MB / 451.7 MB, free: 22.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007976/0.3511, allocations: 0.8979 MB / 452.6 MB, free: 22.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00116/0.3522, allocations: 1.42 MB / 454 MB, free: 21.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002712/0.3525, allocations: 234 kB / 454.3 MB, free: 21.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001097/0.3536, allocations: 0.8594 MB / 455.1 MB, free: 21.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007456/0.3544, allocations: 1.218 MB / 456.3 MB, free: 21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009569/0.3553, allocations: 1.578 MB / 457.9 MB, free: 19.85 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003697/0.3591, allocations: 4.777 MB / 462.7 MB, free: 17.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3591, allocations: 0 / 462.7 MB, free: 17.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3591, allocations: 0 / 462.7 MB, free: 17.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.828e-05/0.3592, allocations: 0 / 462.7 MB, free: 17.96 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.00732/0.3665, allocations: 3.888 MB / 466.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.3665, allocations: 9.25 kB / 466.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006101/0.3672, allocations: 0.5342 MB / 467.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006462/0.3736, allocations: 1.765 MB / 468.9 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002818/0.3765, allocations: 1.367 MB / 470.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001399/0.3766, allocations: 149.4 kB / 470.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004806/0.3771, allocations: 206.6 kB / 470.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01193/0.389, allocations: 7.962 MB / 478.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.167e-05/0.3891, allocations: 18.05 kB / 478.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002668/0.3894, allocations: 96.55 kB / 478.7 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002955/0.3924, allocations: 1.849 MB / 480.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01304/0.4054, allocations: 7.168 MB / 487.7 MB, free: 7.926 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03559/0.4411, allocations: 24.15 MB / 0.4998 GB, free: 1.012 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005485/0.4466, allocations: 2.37 MB / 0.5022 GB, free: 14.53 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00143/0.4481, allocations: 0.8268 MB / 0.503 GB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00747/0.4556, allocations: 4.741 MB / 0.5076 GB, free: 8.578 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.656e-05/0.4556, allocations: 51.55 kB / 0.5076 GB, free: 8.52 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 4.589e-06/0.4557, allocations: 0 / 0.5076 GB, free: 8.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01528/0.4709, allocations: 7.057 MB / 0.5145 GB, free: 1.391 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.822e-05/0.471, allocations: 64.72 kB / 0.5146 GB, free: 1.312 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004033/0.4751, allocations: 2.625 MB / 0.5172 GB, free: 14.65 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.834e-05/0.4752, allocations: 45.7 kB / 0.5172 GB, free: 14.6 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001361/0.4766, allocations: 2.081 MB / 0.5192 GB, free: 12.49 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005036/0.4771, allocations: 0.5783 MB / 0.5198 GB, free: 11.91 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001136/0.4782, allocations: 0.778 MB / 0.5206 GB, free: 11.12 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.28e-05/0.4783, allocations: 305.1 kB / 0.5208 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002167/0.4805, allocations: 1.308 MB / 0.5221 GB, free: 9.504 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003416/0.4839, allocations: 3.43 MB / 0.5255 GB, free: 5.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005828/0.4898, allocations: 5.093 MB / 0.5304 GB, free: 14.89 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.368e-05/0.4899, allocations: 20 kB / 0.5305 GB, free: 14.87 MB / 414.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.008863/0.4987, allocations: 4.807 MB / 0.5352 GB, free: 10.05 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.367e-05/0.4988, allocations: 36 kB / 0.5352 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001373/0.499, allocations: 80.16 kB / 0.5353 GB, free: 9.941 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005538/0.4996, allocations: 200.8 kB / 0.5355 GB, free: 9.742 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002908/0.5025, allocations: 0.8968 MB / 0.5363 GB, free: 8.844 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002474/0.505, allocations: 2.344 MB / 0.5386 GB, free: 6.352 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002837/0.5078, allocations: 203.9 kB / 0.5388 GB, free: 6.152 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004442/0.5083, allocations: 228 kB / 0.539 GB, free: 5.93 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 (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 {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002729/0.511, allocations: 1.566 MB / 0.5406 GB, free: 4.352 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004955/0.5115, allocations: 221.1 kB / 0.5408 GB, free: 4.133 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003542/0.5151, allocations: 1.944 MB / 0.5427 GB, free: 2.172 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001116/0.5152, allocations: 35.97 kB / 0.5427 GB, free: 2.137 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.5152, allocations: 0 / 0.5427 GB, free: 2.137 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.335e-05/0.5152, allocations: 3.984 kB / 0.5427 GB, free: 2.133 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01064/0.5259, allocations: 5.631 MB / 0.5482 GB, free: 12.37 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.5259, allocations: 3.938 kB / 0.5482 GB, free: 12.37 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009573/0.5269, allocations: 239.7 kB / 0.5484 GB, free: 12.13 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003012/0.5272, allocations: 92.97 kB / 0.5485 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001011/0.5273, allocations: 27.98 kB / 0.5486 GB, free: 12.01 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001865/0.5292, allocations: 2.071 MB / 0.5506 GB, free: 9.793 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.5292, allocations: 3.938 kB / 0.5506 GB, free: 9.789 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004434/0.5337, allocations: 3.031 MB / 0.5535 GB, free: 6.715 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000612/0.5343, allocations: 302.3 kB / 0.5538 GB, free: 6.398 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004287/0.5347, allocations: 27.94 kB / 0.5539 GB, free: 6.371 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.5357, allocations: 75.91 kB / 0.5539 GB, free: 6.297 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001746/0.5359, allocations: 80.83 kB / 0.554 GB, free: 6.219 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.812e-05/0.536, allocations: 40 kB / 0.5541 GB, free: 6.18 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002876/0.5389, allocations: 1.695 MB / 0.5557 GB, free: 4.469 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.5389, allocations: 0 / 0.5557 GB, free: 4.469 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003074/0.542, allocations: 0.6679 MB / 0.5564 GB, free: 3.801 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 (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 {(1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00494/0.5469, allocations: 3.669 MB / 0.5599 GB, free: 80 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008254/0.5552, allocations: 4.565 MB / 0.5644 GB, free: 11.52 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.5552, allocations: 3.938 kB / 0.5644 GB, free: 11.52 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00157/0.5568, allocations: 0.9855 MB / 0.5654 GB, free: 10.52 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002499/0.5593, allocations: 390 kB / 0.5657 GB, free: 10.15 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2137/0.773, allocations: 31.18 MB / 0.5962 GB, free: 112.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002129/0.7752, allocations: 2.569 MB / 0.5987 GB, free: 111.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002566/0.7778, allocations: 1.207 MB / 0.5999 GB, free: 111.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001361/0.7791, allocations: 1.286 MB / 0.6011 GB, free: 110 MB / 446.1 MB Notification: Performance of SimCode: time 5.91e-07/0.7792, allocations: 0 / 0.6011 GB, free: 110 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08797/0.8671, allocations: 46.9 MB / 0.6469 GB, free: 86.39 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002124/0.8674, allocations: 210.2 kB / 0.6471 GB, free: 86.14 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.079/3.947, allocations: 0 / 0.6471 GB, free: 86.14 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/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)