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.001468/0.001467, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001756/0.001757, allocations: 194.2 kB / 16.14 MB, free: 6.664 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.292/1.292, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1449/0.1449, allocations: 9.105 MB / 299 MB, free: 1.938 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 59.91 kB / 361.3 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08327/0.08444, allocations: 51.43 MB / 412.8 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.1707/0.2551, allocations: 27.36 MB / 440.1 MB, free: 28.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01125/0.2664, allocations: 6.105 MB / 446.2 MB, free: 24.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004255/0.2707, allocations: 99.56 kB / 446.3 MB, free: 24.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008133/0.2716, allocations: 306.6 kB / 446.6 MB, free: 24.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002533/0.2741, allocations: 1.305 MB / 447.9 MB, free: 24.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003152/0.2745, allocations: 125.1 kB / 448.1 MB, free: 24.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002261/0.2767, allocations: 3.5 MB / 451.6 MB, free: 23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008379/0.2776, allocations: 0.8467 MB / 452.4 MB, free: 22.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006663/0.2783, allocations: 0.7692 MB / 453.2 MB, free: 22.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001164/0.2794, allocations: 1.326 MB / 454.5 MB, free: 21.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002616/0.2797, allocations: 137.9 kB / 454.6 MB, free: 21.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001112/0.2808, allocations: 0.7845 MB / 455.4 MB, free: 21.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007104/0.2816, allocations: 1.129 MB / 456.5 MB, free: 21.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008857/0.2824, allocations: 1.478 MB / 458 MB, free: 20.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002945/0.2854, allocations: 4.612 MB / 462.6 MB, free: 18.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2854, allocations: 0 / 462.6 MB, free: 18.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2854, allocations: 0 / 462.6 MB, free: 18.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.354e-05/0.2855, allocations: 6.969 kB / 462.6 MB, free: 18.47 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.007039/0.2925, allocations: 3.886 MB / 466.5 MB, free: 16.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.2926, allocations: 10.22 kB / 466.5 MB, free: 16.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000497/0.2931, allocations: 0.5335 MB / 467.1 MB, free: 16.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006074/0.2992, allocations: 1.765 MB / 468.8 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00213/0.3013, allocations: 1.366 MB / 470.2 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001064/0.3015, allocations: 149.1 kB / 470.4 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003816/0.3018, allocations: 200.8 kB / 470.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01095/0.3128, allocations: 7.967 MB / 478.5 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.715e-05/0.3129, allocations: 23.38 kB / 478.5 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002747/0.3132, allocations: 92.86 kB / 478.6 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002766/0.316, allocations: 1.845 MB / 480.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01255/0.3285, allocations: 7.162 MB / 487.6 MB, free: 8.438 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02699/0.3555, allocations: 24.16 MB / 0.4998 GB, free: 1.023 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004874/0.3604, allocations: 2.369 MB / 0.5021 GB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001235/0.3617, allocations: 0.8231 MB / 0.5029 GB, free: 13.72 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006398/0.3681, allocations: 4.753 MB / 0.5076 GB, free: 8.586 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/0.3681, allocations: 43.56 kB / 0.5076 GB, free: 8.535 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 2.795e-06/0.3682, allocations: 0 / 0.5076 GB, free: 8.535 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01393/0.3821, allocations: 7.056 MB / 0.5145 GB, free: 1.406 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.861e-05/0.3822, allocations: 64.72 kB / 0.5146 GB, free: 1.328 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003171/0.3853, allocations: 2.625 MB / 0.5171 GB, free: 14.67 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.291e-05/0.3854, allocations: 45.7 kB / 0.5172 GB, free: 14.62 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001181/0.3866, allocations: 2.081 MB / 0.5192 GB, free: 12.51 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004018/0.387, allocations: 0.5667 MB / 0.5197 GB, free: 11.93 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009382/0.388, allocations: 0.778 MB / 0.5205 GB, free: 11.14 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.271e-05/0.3881, allocations: 309.1 kB / 0.5208 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002029/0.3901, allocations: 1.308 MB / 0.5221 GB, free: 9.527 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003225/0.3933, allocations: 3.433 MB / 0.5254 GB, free: 5.039 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005378/0.3987, allocations: 5.083 MB / 0.5304 GB, free: 14.92 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.789e-05/0.3988, allocations: 24 kB / 0.5304 GB, free: 14.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.007062/0.4058, allocations: 4.811 MB / 0.5351 GB, free: 10.07 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.515e-05/0.4059, allocations: 38.5 kB / 0.5351 GB, free: 10.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.358e-05/0.406, allocations: 76.08 kB / 0.5352 GB, free: 9.965 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004138/0.4064, allocations: 205.4 kB / 0.5354 GB, free: 9.762 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002578/0.409, allocations: 0.9007 MB / 0.5363 GB, free: 8.859 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00191/0.4109, allocations: 2.134 MB / 0.5384 GB, free: 6.582 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002229/0.4131, allocations: 207.9 kB / 0.5386 GB, free: 6.379 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002838/0.4134, allocations: 236 kB / 0.5388 GB, free: 6.148 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.001992/0.4154, allocations: 1.564 MB / 0.5403 GB, free: 4.574 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002938/0.4157, allocations: 221.1 kB / 0.5405 GB, free: 4.355 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003136/0.4189, allocations: 1.947 MB / 0.5424 GB, free: 2.395 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001024/0.419, allocations: 27.98 kB / 0.5425 GB, free: 2.367 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.419, allocations: 480 / 0.5425 GB, free: 2.367 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.123e-05/0.419, allocations: 3.984 kB / 0.5425 GB, free: 2.363 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008164/0.4272, allocations: 5.628 MB / 0.548 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.858e-06/0.4272, allocations: 7.938 kB / 0.548 GB, free: 12.6 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009491/0.4282, allocations: 239.6 kB / 0.5482 GB, free: 12.36 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002829/0.4285, allocations: 104.9 kB / 0.5483 GB, free: 12.26 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.547e-05/0.4286, allocations: 28 kB / 0.5483 GB, free: 12.23 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001614/0.4302, allocations: 1.88 MB / 0.5502 GB, free: 10.21 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.4302, allocations: 3.938 kB / 0.5502 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004279/0.4345, allocations: 3.027 MB / 0.5531 GB, free: 7.133 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000419/0.4349, allocations: 294.3 kB / 0.5534 GB, free: 6.824 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002504/0.4352, allocations: 27.98 kB / 0.5534 GB, free: 6.797 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008238/0.436, allocations: 71.91 kB / 0.5535 GB, free: 6.727 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001735/0.4362, allocations: 84.77 kB / 0.5536 GB, free: 6.641 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.645e-05/0.4363, allocations: 52.06 kB / 0.5536 GB, free: 6.59 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002191/0.4385, allocations: 1.687 MB / 0.5553 GB, free: 4.887 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4385, allocations: 0 / 0.5553 GB, free: 4.887 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002452/0.4409, allocations: 0.6679 MB / 0.5559 GB, free: 4.219 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.004555/0.4455, allocations: 3.663 MB / 0.5595 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004552/0.4501, allocations: 3.124 MB / 0.5626 GB, free: 13.38 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4501, allocations: 0 / 0.5626 GB, free: 13.38 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001362/0.4515, allocations: 0.9845 MB / 0.5635 GB, free: 12.38 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001631/0.4531, allocations: 360.3 kB / 0.5639 GB, free: 12.04 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1786/0.6318, allocations: 31.19 MB / 0.5943 GB, free: 112.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002017/0.6338, allocations: 2.562 MB / 0.5968 GB, free: 111.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002553/0.6364, allocations: 1.203 MB / 0.598 GB, free: 111.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001339/0.6377, allocations: 1.289 MB / 0.5993 GB, free: 110.5 MB / 446.1 MB Notification: Performance of SimCode: time 8.82e-07/0.6377, allocations: 5.922 kB / 0.5993 GB, free: 110.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0624/0.7001, allocations: 46.02 MB / 0.6442 GB, free: 87.98 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001343/0.7003, allocations: 214.8 kB / 0.6444 GB, free: 87.73 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.722/3.422, allocations: 3.875 kB / 0.6444 GB, free: 87.73 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)