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.008018/0.008018, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001741/0.001741, allocations: 194.1 kB / 16.67 MB, free: 5.969 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.342/1.342, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1588/0.1588, allocations: 9.106 MB / 299.7 MB, free: 1.664 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 59.91 kB / 414.1 MB, free: 8.82 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.2592, allocations: 51.44 MB / 465.6 MB, free: 17.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.009113/0.2684, allocations: 8.636 MB / 474.2 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005653/0.2741, allocations: 2.601 MB / 476.8 MB, free: 9.875 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001514/0.2756, allocations: 34.19 kB / 476.8 MB, free: 9.871 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001327/0.277, allocations: 370.8 kB / 477.2 MB, free: 9.695 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003844/0.2809, allocations: 1.445 MB / 478.7 MB, free: 8.902 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000682/0.2816, allocations: 146.3 kB / 478.8 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003408/0.285, allocations: 2.53 MB / 481.3 MB, free: 7.328 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001341/0.2864, allocations: 0.9385 MB / 482.3 MB, free: 6.684 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001304/0.2877, allocations: 0.9056 MB / 483.2 MB, free: 6.148 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001665/0.2894, allocations: 1.317 MB / 484.5 MB, free: 5.336 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000652/0.29, allocations: 232.9 kB / 484.7 MB, free: 5.336 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002443/0.2925, allocations: 0.8316 MB / 485.5 MB, free: 5.004 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001726/0.2942, allocations: 1.218 MB / 486.8 MB, free: 4.285 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002151/0.2964, allocations: 1.562 MB / 488.3 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007113/0.3035, allocations: 5.018 MB / 493.3 MB, free: 15.6 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.3036, allocations: 0 / 493.3 MB, free: 15.6 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.3036, allocations: 0 / 493.3 MB, free: 15.6 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001588/0.3037, allocations: 0 / 493.3 MB, free: 15.6 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: 1155 * Number of variables: 1155 Notification: Performance of Generate backend data structure: time 0.01086/0.3146, allocations: 3.972 MB / 497.3 MB, free: 12.31 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.3147, allocations: 8.031 kB / 497.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007918/0.3155, allocations: 0.5388 MB / 497.9 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0068/0.3223, allocations: 1.789 MB / 499.7 MB, free: 9.957 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002935/0.3252, allocations: 1.375 MB / 0.4893 GB, free: 8.539 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001108/0.3254, allocations: 148 kB / 0.4894 GB, free: 8.395 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004848/0.3259, allocations: 211.7 kB / 0.4896 GB, free: 8.188 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01156/0.3374, allocations: 7.955 MB / 0.4974 GB, free: 15.87 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.877e-05/0.3375, allocations: 27.81 kB / 0.4974 GB, free: 15.85 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002984/0.3378, allocations: 91.86 kB / 0.4975 GB, free: 15.76 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002873/0.3407, allocations: 1.848 MB / 0.4993 GB, free: 13.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01412/0.3549, allocations: 7.157 MB / 0.5063 GB, free: 6.738 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0397/0.3946, allocations: 24.13 MB / 0.5299 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005469/0.4001, allocations: 2.373 MB / 0.5322 GB, free: 11.63 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001344/0.4015, allocations: 0.8203 MB / 0.533 GB, free: 10.81 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007833/0.4093, allocations: 4.748 MB / 0.5376 GB, free: 5.676 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.98e-05/0.4094, allocations: 47.56 kB / 0.5377 GB, free: 5.621 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 3.617e-06/0.4094, allocations: 0 / 0.5377 GB, free: 5.621 MB / 414.1 MB Notification: Performance of matching and sorting (n=154): time 0.0153/0.4247, allocations: 7.117 MB / 0.5446 GB, free: 14.43 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.668e-05/0.4248, allocations: 68.66 kB / 0.5447 GB, free: 14.35 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00418/0.429, allocations: 2.63 MB / 0.5473 GB, free: 11.69 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001357/0.4291, allocations: 45.7 kB / 0.5473 GB, free: 11.64 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00154/0.4307, allocations: 2.161 MB / 0.5494 GB, free: 9.457 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005802/0.4313, allocations: 0.593 MB / 0.55 GB, free: 8.859 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001198/0.4325, allocations: 0.7903 MB / 0.5508 GB, free: 8.059 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.581e-05/0.4326, allocations: 309.1 kB / 0.5511 GB, free: 7.754 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002318/0.4349, allocations: 1.3 MB / 0.5523 GB, free: 6.449 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003803/0.4387, allocations: 3.437 MB / 0.5557 GB, free: 1.957 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006547/0.4453, allocations: 5.078 MB / 0.5606 GB, free: 11.83 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-05/0.4454, allocations: 27.94 kB / 0.5607 GB, free: 11.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.008946/0.4543, allocations: 4.823 MB / 0.5654 GB, free: 6.977 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.401e-05/0.4544, allocations: 36 kB / 0.5654 GB, free: 6.941 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001124/0.4546, allocations: 76 kB / 0.5655 GB, free: 6.867 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000505/0.4551, allocations: 200.8 kB / 0.5657 GB, free: 6.668 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003072/0.4582, allocations: 0.9048 MB / 0.5666 GB, free: 5.762 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002316/0.4605, allocations: 2.332 MB / 0.5688 GB, free: 3.281 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002836/0.4634, allocations: 207.9 kB / 0.569 GB, free: 3.078 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005481/0.4639, allocations: 228 kB / 0.5692 GB, free: 2.855 MB / 446.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.002898/0.4668, allocations: 1.562 MB / 0.5708 GB, free: 1.281 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004714/0.4673, allocations: 238.4 kB / 0.571 GB, free: 1.047 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003554/0.4709, allocations: 1.947 MB / 0.5729 GB, free: 15.09 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000109/0.471, allocations: 27.98 kB / 0.5729 GB, free: 15.06 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/0.471, allocations: 3.828 kB / 0.5729 GB, free: 15.06 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.618e-05/0.471, allocations: 11.97 kB / 0.5729 GB, free: 15.05 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01078/0.4818, allocations: 5.572 MB / 0.5784 GB, free: 9.344 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.176e-06/0.4819, allocations: 0 / 0.5784 GB, free: 9.344 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000989/0.4829, allocations: 244.3 kB / 0.5786 GB, free: 9.105 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002979/0.4832, allocations: 96.78 kB / 0.5787 GB, free: 9.008 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.994e-05/0.4833, allocations: 27.98 kB / 0.5787 GB, free: 8.98 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001809/0.4851, allocations: 2.067 MB / 0.5808 GB, free: 6.766 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.728e-06/0.4851, allocations: 7.922 kB / 0.5808 GB, free: 6.758 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004481/0.4896, allocations: 3.046 MB / 0.5837 GB, free: 3.668 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007804/0.4904, allocations: 303.6 kB / 0.584 GB, free: 3.352 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004597/0.4909, allocations: 28.02 kB / 0.5841 GB, free: 3.324 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001115/0.492, allocations: 75.91 kB / 0.5841 GB, free: 3.25 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002027/0.4922, allocations: 92.88 kB / 0.5842 GB, free: 3.16 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.604e-05/0.4923, allocations: 40 kB / 0.5843 GB, free: 3.121 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003216/0.4956, allocations: 1.691 MB / 0.5859 GB, free: 1.414 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4956, allocations: 0 / 0.5859 GB, free: 1.414 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003428/0.499, allocations: 0.6717 MB / 0.5866 GB, free: 0.7422 MB / 462.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.1998/0.6988, allocations: 3.672 MB / 0.5901 GB, free: 110.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005863/0.7047, allocations: 3.146 MB / 0.5932 GB, free: 109.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.134e-06/0.7047, allocations: 0 / 0.5932 GB, free: 109.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001607/0.7063, allocations: 0.9925 MB / 0.5942 GB, free: 109.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002374/0.7087, allocations: 380.3 kB / 0.5946 GB, free: 109.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04162/0.7504, allocations: 27.45 MB / 0.6214 GB, free: 92.71 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002141/0.7525, allocations: 2.565 MB / 0.6239 GB, free: 91.52 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002341/0.7549, allocations: 1.198 MB / 0.625 GB, free: 91.42 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001425/0.7563, allocations: 1.293 MB / 0.6263 GB, free: 90.38 MB / 462.1 MB Notification: Performance of SimCode: time 6.61e-07/0.7563, allocations: 4 kB / 0.6263 GB, free: 90.37 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06861/0.825, allocations: 46.23 MB / 0.6714 GB, free: 45.39 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.1/15.93, allocations: 2.656 kB / 0.6714 GB, free: 45.39 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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe 2>&1)