Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CraneCrab.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.CraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.CraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrab",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.008272/0.008272, allocations: 101.1 kB / 15.73 MB, free: 6.02 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.001981/0.001981, allocations: 195.6 kB / 16.68 MB, free: 5.934 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04664/0.04664, allocations: 9.124 MB / 299.7 MB, free: 5.816 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001777, allocations: 59.91 kB / 414.1 MB, free: 21.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09225/0.09404, allocations: 51.45 MB / 465.6 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.009825/0.1039, allocations: 8.308 MB / 473.9 MB, free: 9.824 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005491/0.1094, allocations: 2.589 MB / 476.5 MB, free: 7.227 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001199/0.1107, allocations: 39.88 kB / 476.5 MB, free: 7.188 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009464/0.1117, allocations: 361.6 kB / 476.9 MB, free: 6.832 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003593/0.1153, allocations: 1.393 MB / 478.3 MB, free: 5.434 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004212/0.1157, allocations: 135.8 kB / 478.4 MB, free: 5.301 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003559/0.1193, allocations: 2.496 MB / 480.9 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001371/0.1207, allocations: 0.9009 MB / 481.8 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001406/0.1221, allocations: 0.8832 MB / 482.7 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001913/0.124, allocations: 1.296 MB / 484 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004455/0.1245, allocations: 228 kB / 484.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001712/0.1262, allocations: 0.8387 MB / 485 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001529/0.1277, allocations: 1.204 MB / 486.2 MB, free: 13.42 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001923/0.1297, allocations: 1.542 MB / 487.8 MB, free: 11.87 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006866/0.1365, allocations: 4.972 MB / 492.8 MB, free: 6.875 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1366, allocations: 3.938 kB / 492.8 MB, free: 6.871 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1366, allocations: 0 / 492.8 MB, free: 6.871 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001305/0.1367, allocations: 0 / 492.8 MB, free: 6.871 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1144 * Number of variables: 1144 Notification: Performance of Generate backend data structure: time 0.009832/0.1466, allocations: 3.922 MB / 496.7 MB, free: 2.879 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.1466, allocations: 8.031 kB / 496.7 MB, free: 2.871 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007262/0.1474, allocations: 0.5306 MB / 497.2 MB, free: 2.328 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006968/0.1543, allocations: 1.781 MB / 499 MB, free: 0.543 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002892/0.1573, allocations: 1.369 MB / 0.4886 GB, free: 15.13 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001363/0.1574, allocations: 144 kB / 0.4888 GB, free: 14.99 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004859/0.1579, allocations: 191.8 kB / 0.489 GB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01291/0.1708, allocations: 7.909 MB / 0.4967 GB, free: 6.543 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.865e-05/0.171, allocations: 19.83 kB / 0.4967 GB, free: 6.523 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002858/0.1712, allocations: 91.88 kB / 0.4968 GB, free: 6.434 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00321/0.1745, allocations: 1.848 MB / 0.4986 GB, free: 4.582 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2212/0.3956, allocations: 7.115 MB / 0.5055 GB, free: 39.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0288/0.4245, allocations: 23.88 MB / 0.5289 GB, free: 23.88 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00445/0.429, allocations: 2.372 MB / 0.5312 GB, free: 22.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009966/0.43, allocations: 0.8194 MB / 0.532 GB, free: 22.01 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005111/0.4351, allocations: 4.598 MB / 0.5365 GB, free: 18.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.675e-05/0.4352, allocations: 50.09 kB / 0.5365 GB, free: 18.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=129): time 3.056e-06/0.4352, allocations: 0 / 0.5365 GB, free: 18.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.0118/0.447, allocations: 7.109 MB / 0.5435 GB, free: 14.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.527e-05/0.447, allocations: 64.72 kB / 0.5435 GB, free: 14.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0025/0.4496, allocations: 2.598 MB / 0.5461 GB, free: 11.53 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.847e-05/0.4496, allocations: 49.7 kB / 0.5461 GB, free: 11.47 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007004/0.4503, allocations: 2.141 MB / 0.5482 GB, free: 9.336 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002663/0.4506, allocations: 0.5925 MB / 0.5488 GB, free: 8.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007153/0.4513, allocations: 0.7784 MB / 0.5495 GB, free: 7.969 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.842e-05/0.4514, allocations: 303 kB / 0.5498 GB, free: 7.672 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001499/0.4529, allocations: 1.276 MB / 0.5511 GB, free: 6.395 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002169/0.4551, allocations: 3.382 MB / 0.5544 GB, free: 1.988 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005457/0.4605, allocations: 5 MB / 0.5593 GB, free: 11.97 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.289e-05/0.4606, allocations: 28 kB / 0.5593 GB, free: 11.94 MB / 398.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.008474/0.4691, allocations: 4.834 MB / 0.564 GB, free: 7.102 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.489e-05/0.4692, allocations: 40 kB / 0.564 GB, free: 7.062 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.509e-05/0.4693, allocations: 76.06 kB / 0.5641 GB, free: 6.988 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008604/0.4701, allocations: 343.8 kB / 0.5644 GB, free: 6.652 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002617/0.4728, allocations: 0.8422 MB / 0.5653 GB, free: 5.809 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004892/0.4777, allocations: 3.653 MB / 0.5688 GB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002563/0.4803, allocations: 191.9 kB / 0.569 GB, free: 1.832 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003765/0.4806, allocations: 231.8 kB / 0.5692 GB, free: 1.609 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 333 * 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 (463): * Single equations (assignments): 458 * 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,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002386/0.483, allocations: 1.557 MB / 0.5708 GB, free: 44 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003844/0.4834, allocations: 234.4 kB / 0.571 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003529/0.487, allocations: 1.997 MB / 0.5729 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001111/0.4871, allocations: 27.81 kB / 0.573 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.899e-06/0.4871, allocations: 4 kB / 0.573 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.056e-05/0.4871, allocations: 11.91 kB / 0.573 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01001/0.4972, allocations: 5.64 MB / 0.5785 GB, free: 8.027 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.003e-05/0.4972, allocations: 4 kB / 0.5785 GB, free: 8.023 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008108/0.498, allocations: 208 kB / 0.5787 GB, free: 7.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007/0.4987, allocations: 236.6 kB / 0.5789 GB, free: 7.586 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.143e-05/0.4988, allocations: 33.39 kB / 0.5789 GB, free: 7.555 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003793/0.5026, allocations: 2.959 MB / 0.5818 GB, free: 4.465 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.5027, allocations: 4 kB / 0.5818 GB, free: 4.461 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005226/0.5079, allocations: 3.109 MB / 0.5849 GB, free: 1.297 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007445/0.5087, allocations: 303.6 kB / 0.5852 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002544/0.5089, allocations: 27.98 kB / 0.5852 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007846/0.5097, allocations: 67.92 kB / 0.5853 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002061/0.5099, allocations: 89.94 kB / 0.5853 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.184e-05/0.51, allocations: 43.98 kB / 0.5854 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002873/0.5129, allocations: 1.68 MB / 0.587 GB, free: 15.06 MB / 430.1 MB Notification: Performance of sort global known variables: time 4e-07/0.5129, allocations: 0 / 0.587 GB, free: 15.06 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002988/0.5159, allocations: 0.6795 MB / 0.5877 GB, free: 14.39 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 4 (revolute.phi,revolute.w,damper1D.s_rel,damper1D.v_rel) * 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 (113): * Single equations (assignments): 108 * 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,15,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.5212, allocations: 3.739 MB / 0.5913 GB, free: 10.58 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005734/0.527, allocations: 3.149 MB / 0.5944 GB, free: 7.441 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.527, allocations: 0 / 0.5944 GB, free: 7.441 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001691/0.5287, allocations: 1.037 MB / 0.5954 GB, free: 6.395 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002129/0.5308, allocations: 388.7 kB / 0.5958 GB, free: 6.027 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04147/0.5723, allocations: 27.42 MB / 0.6226 GB, free: 7.867 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002973/0.5753, allocations: 2.554 MB / 0.6251 GB, free: 5.281 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002703/0.578, allocations: 1.18 MB / 0.6262 GB, free: 4.094 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001821/0.5799, allocations: 1.292 MB / 0.6275 GB, free: 2.801 MB / 462.1 MB Notification: Performance of SimCode: time 8.02e-07/0.5799, allocations: 3.938 kB / 0.6275 GB, free: 2.797 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09777/0.6777, allocations: 46.77 MB / 0.6732 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.87/16.55, allocations: 15.5 kB / 0.6732 GB, free: 4.23 MB / 0.4981 GB (rm -f PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CraneCrab.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_CraneCrab_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_CraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe 2>&1)