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.001454/0.001454, 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.001725/0.001725, allocations: 192 kB / 16.53 MB, free: 6.391 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.349/1.349, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1862/0.1862, allocations: 9.105 MB / 299.5 MB, free: 1.699 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 75.88 kB / 362 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1141, allocations: 51.43 MB / 413.5 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.01808/0.1323, allocations: 8.329 MB / 421.8 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.218/0.3503, allocations: 2.574 MB / 424.4 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006534/0.351, allocations: 32.12 kB / 424.4 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006245/0.3516, allocations: 360.9 kB / 424.8 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002106/0.3538, allocations: 1.391 MB / 426.2 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002632/0.3541, allocations: 132.9 kB / 426.3 MB, free: 36.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001756/0.3558, allocations: 2.486 MB / 428.8 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008146/0.3567, allocations: 0.9007 MB / 429.7 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006822/0.3574, allocations: 0.8835 MB / 430.6 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001018/0.3584, allocations: 1.293 MB / 431.8 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002723/0.3587, allocations: 228.8 kB / 432.1 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001112/0.3598, allocations: 0.8394 MB / 432.9 MB, free: 35.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007004/0.3605, allocations: 1.205 MB / 434.1 MB, free: 34.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009067/0.3614, allocations: 1.548 MB / 435.7 MB, free: 33.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003071/0.3645, allocations: 4.715 MB / 440.4 MB, free: 31.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3645, allocations: 0 / 440.4 MB, free: 31.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3645, allocations: 3.219 kB / 440.4 MB, free: 31.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.012e-05/0.3646, allocations: 0 / 440.4 MB, free: 31.84 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: 1144 * Number of variables: 1144 Notification: Performance of Generate backend data structure: time 0.00733/0.3719, allocations: 3.831 MB / 444.2 MB, free: 29.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.372, allocations: 9.656 kB / 444.2 MB, free: 29.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005747/0.3726, allocations: 0.5315 MB / 444.8 MB, free: 29.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006433/0.379, allocations: 1.764 MB / 446.5 MB, free: 29.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003707/0.3828, allocations: 1.342 MB / 447.9 MB, free: 28.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000176/0.383, allocations: 149.2 kB / 448 MB, free: 28.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008876/0.3839, allocations: 195.3 kB / 448.2 MB, free: 28.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01466/0.3985, allocations: 7.909 MB / 456.1 MB, free: 25.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.823e-05/0.3987, allocations: 29.27 kB / 456.1 MB, free: 25.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003224/0.399, allocations: 91.91 kB / 456.2 MB, free: 25.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003056/0.4021, allocations: 1.837 MB / 458.1 MB, free: 24.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0135/0.4156, allocations: 7.128 MB / 465.2 MB, free: 22.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02957/0.4452, allocations: 23.91 MB / 489.1 MB, free: 6.207 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004354/0.4496, allocations: 2.376 MB / 491.5 MB, free: 4.031 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009591/0.4506, allocations: 0.819 MB / 492.3 MB, free: 3.211 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005888/0.4565, allocations: 4.599 MB / 496.9 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.638e-05/0.4566, allocations: 43.56 kB / 496.9 MB, free: 14.2 MB / 366.1 MB Notification: Performance of pre-optimization done (n=129): time 3.476e-06/0.4566, allocations: 0 / 496.9 MB, free: 14.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=153): time 0.01547/0.4721, allocations: 7.055 MB / 0.4922 GB, free: 7.078 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.635e-05/0.4721, allocations: 64.72 kB / 0.4922 GB, free: 7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003417/0.4756, allocations: 2.604 MB / 0.4948 GB, free: 4.363 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.63e-05/0.4757, allocations: 41.7 kB / 0.4948 GB, free: 4.316 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001216/0.4769, allocations: 2.052 MB / 0.4968 GB, free: 2.258 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004527/0.4774, allocations: 0.5753 MB / 0.4974 GB, free: 1.688 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009538/0.4783, allocations: 0.7726 MB / 0.4981 GB, free: 0.9102 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.4784, allocations: 305.1 kB / 0.4984 GB, free: 0.6094 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002075/0.4805, allocations: 1.277 MB / 0.4997 GB, free: 15.33 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003486/0.484, allocations: 3.374 MB / 0.503 GB, free: 10.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006011/0.4901, allocations: 4.997 MB / 0.5079 GB, free: 4.918 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-05/0.4901, allocations: 28 kB / 0.5079 GB, free: 4.891 MB / 382.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.007937/0.4981, allocations: 4.823 MB / 0.5126 GB, free: 64 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.609e-05/0.4982, allocations: 44.03 kB / 0.5126 GB, free: 20 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.651e-05/0.4983, allocations: 72.33 kB / 0.5127 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008026/0.4991, allocations: 339.2 kB / 0.513 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002381/0.5015, allocations: 0.8538 MB / 0.5139 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004164/0.5056, allocations: 3.651 MB / 0.5174 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00242/0.5081, allocations: 195.9 kB / 0.5176 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003158/0.5084, allocations: 224 kB / 0.5178 GB, free: 10.57 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.002192/0.5106, allocations: 1.55 MB / 0.5193 GB, free: 9.012 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003501/0.511, allocations: 221.1 kB / 0.5196 GB, free: 8.793 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003295/0.5143, allocations: 2.012 MB / 0.5215 GB, free: 6.766 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001025/0.5144, allocations: 23.98 kB / 0.5215 GB, free: 6.742 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.5144, allocations: 7.984 kB / 0.5216 GB, free: 6.734 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.322e-05/0.5144, allocations: 7.984 kB / 0.5216 GB, free: 6.727 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01171/0.5261, allocations: 5.68 MB / 0.5271 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.64e-05/0.5263, allocations: 4 kB / 0.5271 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000852/0.5271, allocations: 204 kB / 0.5273 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006683/0.5278, allocations: 244.6 kB / 0.5275 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.899e-05/0.5279, allocations: 31.98 kB / 0.5276 GB, free: 492 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004076/0.532, allocations: 2.957 MB / 0.5305 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/0.532, allocations: 4 kB / 0.5305 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004864/0.5369, allocations: 3.083 MB / 0.5335 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007837/0.5377, allocations: 298.4 kB / 0.5338 GB, free: 9.934 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004579/0.5382, allocations: 26.58 kB / 0.5338 GB, free: 9.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009749/0.5392, allocations: 67.92 kB / 0.5338 GB, free: 9.844 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001764/0.5393, allocations: 84.77 kB / 0.5339 GB, free: 9.758 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.406e-05/0.5395, allocations: 43.98 kB / 0.534 GB, free: 9.715 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002636/0.5421, allocations: 1.679 MB / 0.5356 GB, free: 8.02 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5421, allocations: 0 / 0.5356 GB, free: 8.02 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002808/0.5449, allocations: 0.6821 MB / 0.5363 GB, free: 7.34 MB / 414.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.004726/0.5497, allocations: 3.725 MB / 0.5399 GB, free: 3.555 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00721/0.5569, allocations: 4.372 MB / 0.5442 GB, free: 15.18 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.5569, allocations: 0 / 0.5442 GB, free: 15.18 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001541/0.5585, allocations: 1.029 MB / 0.5452 GB, free: 14.14 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002135/0.5606, allocations: 391.8 kB / 0.5456 GB, free: 13.78 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04963/0.6103, allocations: 29.63 MB / 0.5745 GB, free: 12.23 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002882/0.6132, allocations: 2.558 MB / 0.577 GB, free: 9.645 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002738/0.6159, allocations: 1.18 MB / 0.5781 GB, free: 8.457 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001608/0.6175, allocations: 1.284 MB / 0.5794 GB, free: 7.172 MB / 462.1 MB Notification: Performance of SimCode: time 5.11e-07/0.6176, allocations: 7.875 kB / 0.5794 GB, free: 7.164 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2603/0.8779, allocations: 47.62 MB / 0.6259 GB, free: 133.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.88, allocations: 4.281 kB / 0.6259 GB, free: 133.1 MB / 462.1 MB (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)