Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.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.CraneCrabTo3D,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrabTo3D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.CraneCrabTo3D,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrabTo3D",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.0108/0.0108, allocations: 99.5 kB / 15.73 MB, free: 6.066 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.002178/0.002178, allocations: 190.7 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.399/2.399, allocations: 222.9 MB / 240.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.07732/0.07732, allocations: 9.121 MB / 299.7 MB, free: 5.836 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002382/0.002382, allocations: 63.89 kB / 414.1 MB, free: 21.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1555/0.1579, allocations: 51.44 MB / 465.6 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.02641/0.1844, allocations: 14.38 MB / 480 MB, free: 3.617 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01538/0.1998, allocations: 4.645 MB / 484.6 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005527/0.2054, allocations: 75.81 kB / 484.7 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007432/0.2129, allocations: 1.595 MB / 486.3 MB, free: 13.28 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0126/0.2257, allocations: 2.637 MB / 488.9 MB, free: 10.64 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00318/0.2289, allocations: 0.5771 MB / 489.5 MB, free: 10.06 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01569/0.2447, allocations: 5.187 MB / 494.7 MB, free: 4.863 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008916/0.2537, allocations: 2.968 MB / 497.6 MB, free: 1.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006676/0.2605, allocations: 1.782 MB / 499.4 MB, free: 52 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007398/0.268, allocations: 2.503 MB / 0.4902 GB, free: 13.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003697/0.2717, allocations: 380 kB / 0.4905 GB, free: 13.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006845/0.2787, allocations: 1.19 MB / 0.4917 GB, free: 11.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00688/0.2856, allocations: 2.291 MB / 0.4939 GB, free: 9.68 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01128/0.297, allocations: 2.823 MB / 0.4967 GB, free: 6.84 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5797/0.8768, allocations: 8.811 MB / 0.5053 GB, free: 15.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.188e-05/0.8769, allocations: 1.078 kB / 0.5053 GB, free: 15.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 6.532e-06/0.8769, allocations: 0 / 0.5053 GB, free: 15.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0008989/0.8778, allocations: 0 / 0.5053 GB, free: 15.02 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2075 * Number of variables: 2075 Notification: Performance of Generate backend data structure: time 0.05275/0.9306, allocations: 6.745 MB / 0.5119 GB, free: 12.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001142/0.9308, allocations: 13.5 kB / 0.5119 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008251/0.9391, allocations: 0.9464 MB / 0.5128 GB, free: 12.37 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03074/0.9699, allocations: 3.447 MB / 0.5162 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01998/0.99, allocations: 3.105 MB / 0.5192 GB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001292/0.9914, allocations: 275.9 kB / 0.5195 GB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005632/0.9971, allocations: 365.5 kB / 0.5198 GB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06335/1.061, allocations: 14.02 MB / 0.5335 GB, free: 6.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006822/1.061, allocations: 57.3 kB / 0.5336 GB, free: 6.312 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008945/1.07, allocations: 173.8 kB / 0.5337 GB, free: 6.254 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0167/1.087, allocations: 3.14 MB / 0.5368 GB, free: 5.098 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04867/1.136, allocations: 12.21 MB / 0.5487 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1501/1.286, allocations: 51.89 MB / 0.5994 GB, free: 5.855 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02614/1.312, allocations: 5.078 MB / 0.6044 GB, free: 0.5547 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01468/1.327, allocations: 1.806 MB / 0.6061 GB, free: 14.75 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03627/1.364, allocations: 8.028 MB / 0.614 GB, free: 6.473 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001169/1.364, allocations: 51.88 kB / 0.614 GB, free: 6.414 MB / 462.1 MB Notification: Performance of pre-optimization done (n=242): time 1.748e-05/1.364, allocations: 0 / 0.614 GB, free: 6.414 MB / 462.1 MB Notification: Performance of matching and sorting (n=272): time 0.08601/1.45, allocations: 14.78 MB / 0.6284 GB, free: 7.656 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003751/1.45, allocations: 154.5 kB / 0.6286 GB, free: 7.473 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02384/1.474, allocations: 5.4 MB / 0.6339 GB, free: 2.082 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009127/1.475, allocations: 65.3 kB / 0.6339 GB, free: 2.016 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00922/1.485, allocations: 4.263 MB / 0.6381 GB, free: 13.78 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003628/1.488, allocations: 1.079 MB / 0.6391 GB, free: 12.71 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008916/1.497, allocations: 1.658 MB / 0.6408 GB, free: 11.05 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002272/1.498, allocations: 301.1 kB / 0.6411 GB, free: 10.75 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0247/1.522, allocations: 2.534 MB / 0.6435 GB, free: 8.207 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02307/1.546, allocations: 7.358 MB / 0.6507 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03082/1.576, allocations: 10.74 MB / 0.6612 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004307/1.577, allocations: 48 kB / 0.6613 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1082) (initialization): time 0.06861/1.646, allocations: 9.936 MB / 0.671 GB, free: 8.285 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006358/1.646, allocations: 76 kB / 0.671 GB, free: 8.211 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007811/1.647, allocations: 172 kB / 0.6712 GB, free: 8.043 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01127/1.659, allocations: 0.4897 MB / 0.6717 GB, free: 7.547 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01253/1.671, allocations: 1.844 MB / 0.6735 GB, free: 5.699 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01283/1.684, allocations: 5.294 MB / 0.6786 GB, free: 120 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01469/1.699, allocations: 414.7 kB / 0.679 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003491/1.702, allocations: 496 kB / 0.6795 GB, free: 15.23 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 772 * Number of states: 0 () * Number of discrete variables: 36 (fixedRotation3D.color[3],fixedRotation3D.color[2],fixedRotation3D.color[1],body3D.sphereColor[3],body3D.sphereColor[2],body3D.sphereColor[1],prismatic3D.boxColor[3],prismatic3D.boxColor[2],prismatic3D.boxColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (1004): * Single equations (assignments): 994 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,17,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01264/1.715, allocations: 2.852 MB / 0.6823 GB, free: 12.37 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002475/1.718, allocations: 484.7 kB / 0.6828 GB, free: 11.89 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01209/1.73, allocations: 2.975 MB / 0.6857 GB, free: 8.906 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001266/1.73, allocations: 35.92 kB / 0.6857 GB, free: 8.871 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.536e-05/1.73, allocations: 4 kB / 0.6857 GB, free: 8.867 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.483e-05/1.73, allocations: 11.91 kB / 0.6857 GB, free: 8.855 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03864/1.769, allocations: 9.081 MB / 0.6946 GB, free: 15.65 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.752e-05/1.769, allocations: 8 kB / 0.6946 GB, free: 15.64 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00328/1.772, allocations: 379.4 kB / 0.6949 GB, free: 15.27 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001553/1.774, allocations: 285.2 kB / 0.6952 GB, free: 14.99 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008213/1.775, allocations: 48 kB / 0.6953 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009301/1.784, allocations: 4.368 MB / 0.6995 GB, free: 10.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.811e-05/1.784, allocations: 11.94 kB / 0.6995 GB, free: 10.29 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02271/1.807, allocations: 5.681 MB / 0.7051 GB, free: 4.457 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004093/1.811, allocations: 0.5379 MB / 0.7056 GB, free: 3.895 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003378/1.815, allocations: 47.94 kB / 0.7057 GB, free: 3.848 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005594/1.82, allocations: 111.8 kB / 0.7058 GB, free: 3.742 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001273/1.822, allocations: 153.7 kB / 0.7059 GB, free: 3.594 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008878/1.823, allocations: 76 kB / 0.706 GB, free: 3.52 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.01338/1.836, allocations: 3.397 MB / 0.7093 GB, free: 140 kB / 0.545 GB Notification: Performance of sort global known variables: time 1.944e-06/1.836, allocations: 0 / 0.7093 GB, free: 140 kB / 0.545 GB Notification: Performance of remove unused functions: time 0.4996/2.336, allocations: 1.254 MB / 0.7105 GB, free: 194.1 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 6 (revolute.phi,revolute.w,damper1D.s_rel,damper1D.v_rel,prismatic3D.s,prismatic3D.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 (207): * Single equations (assignments): 199 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,15,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01421/2.35, allocations: 6.349 MB / 0.7167 GB, free: 192.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0209/2.371, allocations: 6.199 MB / 0.7228 GB, free: 190.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.185e-05/2.371, allocations: 3.969 kB / 0.7228 GB, free: 190.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004643/2.376, allocations: 1.809 MB / 0.7246 GB, free: 189.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009827/2.386, allocations: 0.6431 MB / 0.7252 GB, free: 189.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.149/2.535, allocations: 58.67 MB / 0.7825 GB, free: 136.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01271/2.547, allocations: 4.239 MB / 0.7866 GB, free: 132.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.01327/2.561, allocations: 2.709 MB / 0.7893 GB, free: 129.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007484/2.568, allocations: 2.62 MB / 0.7918 GB, free: 127.1 MB / 0.545 GB Notification: Performance of SimCode: time 1.813e-06/2.568, allocations: 0 / 0.7918 GB, free: 127.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2448/2.813, allocations: 85.77 MB / 0.8756 GB, free: 41.75 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 44.23/47.04, allocations: 22.75 kB / 0.8756 GB, free: 41.73 MB / 0.545 GB (rm -f PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PlanarMechanics_PlanarMechanics_Examples_CraneCrabTo3D.fmu > PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe 2>&1)