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.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.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.0008344/0.0008343, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008409/0.000841, allocations: 168.7 kB / 15.95 MB, free: 204 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.321/1.321, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1596/0.1596, allocations: 9.113 MB / 300.2 MB, free: 2.781 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003481/0.0003481, allocations: 12 kB / 363.2 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1072, allocations: 52.43 MB / 415.6 MB, free: 8.465 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.2198/0.327, allocations: 24.43 MB / 440.1 MB, free: 30.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01149/0.3386, allocations: 5.794 MB / 445.9 MB, free: 26.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004387/0.343, allocations: 99.44 kB / 446 MB, free: 26.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002804/0.3458, allocations: 1.184 MB / 447.1 MB, free: 26.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009784/0.3556, allocations: 4.255 MB / 451.4 MB, free: 24.37 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008918/0.3565, allocations: 121.8 kB / 451.5 MB, free: 24.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003228/0.3598, allocations: 2.755 MB / 454.3 MB, free: 23.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00135/0.3611, allocations: 0.7898 MB / 455.1 MB, free: 22.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001303/0.3624, allocations: 0.782 MB / 455.8 MB, free: 22.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001499/0.3639, allocations: 1.274 MB / 457.1 MB, free: 22.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000269/0.3642, allocations: 130.8 kB / 457.2 MB, free: 22.26 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001174/0.3654, allocations: 0.6725 MB / 457.9 MB, free: 22.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007761/0.3662, allocations: 1.084 MB / 459 MB, free: 21.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000444/0.3667, allocations: 0.6322 MB / 459.6 MB, free: 21.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002505/0.3692, allocations: 3.633 MB / 463.3 MB, free: 20.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.3692, allocations: 0 / 463.3 MB, free: 20.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3692, allocations: 7.188 kB / 463.3 MB, free: 20.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.083e-05/0.3693, allocations: 0 / 463.3 MB, free: 20.46 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.006239/0.3755, allocations: 3.229 MB / 466.5 MB, free: 18.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.3756, allocations: 11.53 kB / 466.5 MB, free: 18.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007053/0.3763, allocations: 0.5359 MB / 467 MB, free: 18.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00639/0.3827, allocations: 1.805 MB / 468.9 MB, free: 18.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002615/0.3853, allocations: 1.336 MB / 470.2 MB, free: 17.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001326/0.3855, allocations: 143.8 kB / 470.3 MB, free: 17.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003894/0.3859, allocations: 192.3 kB / 470.5 MB, free: 17.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01299/0.3989, allocations: 7.892 MB / 478.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-05/0.399, allocations: 26.53 kB / 478.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003068/0.3993, allocations: 92.77 kB / 478.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003922/0.4032, allocations: 1.849 MB / 480.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01475/0.418, allocations: 7.093 MB / 487.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03556/0.4536, allocations: 23.9 MB / 0.4994 GB, free: 3.383 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005085/0.4587, allocations: 2.36 MB / 0.5017 GB, free: 0.9102 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001333/0.4601, allocations: 0.8253 MB / 0.5025 GB, free: 84 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007016/0.4671, allocations: 4.597 MB / 0.507 GB, free: 11.1 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.595e-05/0.4672, allocations: 47.5 kB / 0.507 GB, free: 11.05 MB / 382.1 MB Notification: Performance of pre-optimization done (n=129): time 3.527e-06/0.4672, allocations: 0 / 0.507 GB, free: 11.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.0145/0.4817, allocations: 7.037 MB / 0.5139 GB, free: 3.918 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.042e-05/0.4818, allocations: 64.72 kB / 0.514 GB, free: 3.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004463/0.4862, allocations: 2.58 MB / 0.5165 GB, free: 1.227 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.257e-05/0.4864, allocations: 49.69 kB / 0.5165 GB, free: 1.172 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001549/0.4879, allocations: 2.05 MB / 0.5185 GB, free: 15.09 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005184/0.4884, allocations: 0.5706 MB / 0.5191 GB, free: 14.51 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002174/0.4887, allocations: 76 kB / 0.5192 GB, free: 14.44 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003051/0.489, allocations: 482.4 kB / 0.5196 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002178/0.4912, allocations: 1.261 MB / 0.5209 GB, free: 12.7 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00352/0.4947, allocations: 3.362 MB / 0.5241 GB, free: 8.316 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003271/0.498, allocations: 2.078 MB / 0.5262 GB, free: 6.242 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.233e-05/0.4981, allocations: 20 kB / 0.5262 GB, free: 6.223 MB / 398.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.008286/0.5064, allocations: 4.794 MB / 0.5309 GB, free: 1.414 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.689e-05/0.5065, allocations: 36 kB / 0.5309 GB, free: 1.379 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001114/0.5066, allocations: 72 kB / 0.531 GB, free: 1.309 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008398/0.5074, allocations: 346.7 kB / 0.5313 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002428/0.5099, allocations: 0.8539 MB / 0.5321 GB, free: 116 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004128/0.514, allocations: 3.35 MB / 0.5354 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00248/0.5165, allocations: 200 kB / 0.5356 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004094/0.5169, allocations: 228 kB / 0.5358 GB, free: 12.21 MB / 414.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 (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 {(2,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002567/0.5195, allocations: 1.55 MB / 0.5373 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000353/0.5199, allocations: 213.2 kB / 0.5375 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003319/0.5232, allocations: 1.99 MB / 0.5395 GB, free: 8.43 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.136e-05/0.5233, allocations: 27.97 kB / 0.5395 GB, free: 8.402 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.22e-05/0.5233, allocations: 7.984 kB / 0.5395 GB, free: 8.395 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.373e-05/0.5233, allocations: 11.92 kB / 0.5395 GB, free: 8.383 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009466/0.5328, allocations: 5.684 MB / 0.5451 GB, free: 2.578 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.877e-06/0.5328, allocations: 4 kB / 0.5451 GB, free: 2.574 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007778/0.5336, allocations: 204 kB / 0.5453 GB, free: 2.375 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006166/0.5343, allocations: 236.6 kB / 0.5455 GB, free: 2.141 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.093e-05/0.5344, allocations: 31.98 kB / 0.5455 GB, free: 2.109 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003037/0.5374, allocations: 2.718 MB / 0.5482 GB, free: 15.26 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.5374, allocations: 4 kB / 0.5482 GB, free: 15.26 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00429/0.5417, allocations: 3.071 MB / 0.5512 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007647/0.5425, allocations: 318.2 kB / 0.5515 GB, free: 11.79 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000459/0.543, allocations: 31.97 kB / 0.5515 GB, free: 11.76 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009301/0.5439, allocations: 59.94 kB / 0.5516 GB, free: 11.7 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001503/0.5441, allocations: 88.81 kB / 0.5517 GB, free: 11.62 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.47e-05/0.5442, allocations: 40 kB / 0.5517 GB, free: 11.58 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002902/0.5471, allocations: 1.667 MB / 0.5533 GB, free: 9.895 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5471, allocations: 0 / 0.5533 GB, free: 9.895 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002994/0.5501, allocations: 0.6758 MB / 0.554 GB, free: 9.219 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 (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 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005147/0.5553, allocations: 3.722 MB / 0.5576 GB, free: 5.43 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005222/0.5605, allocations: 3.113 MB / 0.5607 GB, free: 2.328 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.5605, allocations: 0 / 0.5607 GB, free: 2.328 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001558/0.5621, allocations: 1.025 MB / 0.5617 GB, free: 1.285 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002686/0.5648, allocations: 360.8 kB / 0.562 GB, free: 0.9375 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2399/0.8047, allocations: 20.6 MB / 0.5821 GB, free: 105 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003106/0.8079, allocations: 2.553 MB / 0.5846 GB, free: 104.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002809/0.8107, allocations: 1.181 MB / 0.5858 GB, free: 104.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001403/0.8121, allocations: 1.29 MB / 0.587 GB, free: 104.2 MB / 446.1 MB Notification: Performance of SimCode: time 5.82e-07/0.8121, allocations: 3.938 kB / 0.587 GB, free: 104.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0807/0.8928, allocations: 51.74 MB / 0.6376 GB, free: 81.2 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001382/0.893, allocations: 189.8 kB / 0.6377 GB, free: 80.96 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.6/3.493, allocations: 0 / 0.6377 GB, free: 80.96 MB / 446.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/linux/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) Environment - environmentSimulation: