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.001146/0.001146, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 198.5 kB / 16.54 MB, free: 6.672 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.439/1.439, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.176/0.176, allocations: 9.114 MB / 299.5 MB, free: 1.715 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 63.91 kB / 362 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09857/0.09983, allocations: 51.43 MB / 413.5 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.009637/0.1095, allocations: 8.652 MB / 422.1 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2038/0.3133, allocations: 2.595 MB / 424.7 MB, free: 36.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001222/0.3146, allocations: 31.91 kB / 424.7 MB, free: 36.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008352/0.3155, allocations: 370.1 kB / 425.1 MB, free: 36.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003021/0.3185, allocations: 1.399 MB / 426.5 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003834/0.3189, allocations: 139.7 kB / 426.6 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002516/0.3214, allocations: 2.526 MB / 429.2 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001261/0.3227, allocations: 0.9442 MB / 430.1 MB, free: 35.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00141/0.3241, allocations: 0.8949 MB / 431 MB, free: 35.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001732/0.3259, allocations: 1.317 MB / 432.3 MB, free: 35.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000513/0.3264, allocations: 234.8 kB / 432.6 MB, free: 35.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001847/0.3282, allocations: 0.835 MB / 433.4 MB, free: 35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009314/0.3292, allocations: 1.222 MB / 434.6 MB, free: 34.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001229/0.3304, allocations: 1.561 MB / 436.2 MB, free: 33.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004934/0.3354, allocations: 4.751 MB / 440.9 MB, free: 31.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3354, allocations: 2.875 kB / 440.9 MB, free: 31.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3354, allocations: 4 kB / 440.9 MB, free: 31.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.036e-05/0.3355, allocations: 0 / 440.9 MB, free: 31.63 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.009391/0.3449, allocations: 3.878 MB / 444.8 MB, free: 29.69 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.345, allocations: 9.469 kB / 444.8 MB, free: 29.69 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007026/0.3457, allocations: 0.5345 MB / 445.4 MB, free: 29.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0062/0.3519, allocations: 1.777 MB / 447.1 MB, free: 29.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002353/0.3543, allocations: 1.36 MB / 448.5 MB, free: 28.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001051/0.3544, allocations: 149.1 kB / 448.6 MB, free: 28.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000462/0.3548, allocations: 201.1 kB / 448.8 MB, free: 28.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01098/0.3658, allocations: 7.962 MB / 456.8 MB, free: 24.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-05/0.366, allocations: 25.17 kB / 456.8 MB, free: 24.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003179/0.3663, allocations: 93.53 kB / 456.9 MB, free: 24.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00311/0.3694, allocations: 1.845 MB / 458.8 MB, free: 24.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01636/0.3858, allocations: 7.166 MB / 465.9 MB, free: 21.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04118/0.427, allocations: 24.16 MB / 490.1 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005169/0.4322, allocations: 2.368 MB / 492.4 MB, free: 3.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001334/0.4336, allocations: 0.8262 MB / 493.3 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008016/0.4416, allocations: 4.747 MB / 498 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.074e-05/0.4417, allocations: 47.55 kB / 498.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of pre-optimization done (n=128): time 4.719e-06/0.4417, allocations: 0 / 498.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=154): time 0.01644/0.4582, allocations: 7.048 MB / 0.4933 GB, free: 6.098 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.821e-05/0.4583, allocations: 64.72 kB / 0.4933 GB, free: 6.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00451/0.4628, allocations: 2.625 MB / 0.4959 GB, free: 3.363 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001121/0.4629, allocations: 48.44 kB / 0.4959 GB, free: 3.312 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001533/0.4645, allocations: 2.083 MB / 0.498 GB, free: 1.223 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005755/0.465, allocations: 0.5677 MB / 0.4985 GB, free: 0.6602 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001335/0.4664, allocations: 0.7857 MB / 0.4993 GB, free: 15.87 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.4665, allocations: 305.1 kB / 0.4996 GB, free: 15.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002378/0.4689, allocations: 1.304 MB / 0.5009 GB, free: 14.26 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004014/0.4729, allocations: 3.441 MB / 0.5042 GB, free: 9.762 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00653/0.4795, allocations: 5.093 MB / 0.5092 GB, free: 3.625 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-05/0.4796, allocations: 20 kB / 0.5092 GB, free: 3.605 MB / 382.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.00921/0.4888, allocations: 4.803 MB / 0.5139 GB, free: 14.8 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.92e-05/0.4889, allocations: 36 kB / 0.5139 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001121/0.489, allocations: 72 kB / 0.514 GB, free: 14.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004924/0.4895, allocations: 204.8 kB / 0.5142 GB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003287/0.4928, allocations: 0.9009 MB / 0.5151 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002561/0.4954, allocations: 2.338 MB / 0.5174 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003457/0.4989, allocations: 211.9 kB / 0.5176 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006946/0.4996, allocations: 235 kB / 0.5178 GB, free: 10.67 MB / 398.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.003322/0.5029, allocations: 1.543 MB / 0.5193 GB, free: 9.113 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005353/0.5035, allocations: 225.1 kB / 0.5195 GB, free: 8.891 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004103/0.5076, allocations: 1.949 MB / 0.5214 GB, free: 6.926 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001035/0.5077, allocations: 23.98 kB / 0.5214 GB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/0.5077, allocations: 4 kB / 0.5214 GB, free: 6.898 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.641e-05/0.5077, allocations: 11.97 kB / 0.5215 GB, free: 6.887 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01311/0.5208, allocations: 5.633 MB / 0.527 GB, free: 1.156 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.789e-06/0.5209, allocations: 3.984 kB / 0.527 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009924/0.5219, allocations: 243.8 kB / 0.5272 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003121/0.5222, allocations: 88.78 kB / 0.5273 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.877e-05/0.5223, allocations: 27.98 kB / 0.5273 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002182/0.5245, allocations: 2.068 MB / 0.5293 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.5245, allocations: 0 / 0.5293 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005027/0.5296, allocations: 3.035 MB / 0.5323 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008117/0.5304, allocations: 306.3 kB / 0.5326 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005537/0.531, allocations: 23.94 kB / 0.5326 GB, free: 11.17 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001125/0.5321, allocations: 75.91 kB / 0.5327 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002063/0.5323, allocations: 72.89 kB / 0.5327 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.289e-05/0.5324, allocations: 42.73 kB / 0.5328 GB, free: 10.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003603/0.536, allocations: 1.695 MB / 0.5344 GB, free: 9.273 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.655e-06/0.536, allocations: 4 kB / 0.5344 GB, free: 9.27 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00417/0.5402, allocations: 0.6679 MB / 0.5351 GB, free: 8.602 MB / 414.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.00526/0.5455, allocations: 3.669 MB / 0.5387 GB, free: 4.883 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.008299/0.5538, allocations: 4.565 MB / 0.5431 GB, free: 328 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/0.5538, allocations: 1.438 kB / 0.5431 GB, free: 328 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001514/0.5554, allocations: 0.99 MB / 0.5441 GB, free: 15.32 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002468/0.5578, allocations: 393.5 kB / 0.5445 GB, free: 14.96 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05097/0.6088, allocations: 29.73 MB / 0.5735 GB, free: 13.25 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003727/0.6126, allocations: 2.566 MB / 0.576 GB, free: 10.66 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003502/0.6161, allocations: 1.204 MB / 0.5772 GB, free: 9.449 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002278/0.6184, allocations: 1.292 MB / 0.5785 GB, free: 8.156 MB / 462.1 MB Notification: Performance of SimCode: time 1.232e-06/0.6184, allocations: 0 / 0.5785 GB, free: 8.156 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2915/0.91, allocations: 47.05 MB / 0.6244 GB, free: 133.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/11.58, allocations: 19.61 kB / 0.6244 GB, free: 133.3 MB / 462.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)