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.00477/0.00477, allocations: 107.4 kB / 15.74 MB, free: 6.02 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.002249/0.002249, allocations: 193.6 kB / 16.67 MB, free: 5.934 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.0481/0.0481, allocations: 9.114 MB / 299.7 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001801/0.001802, allocations: 63.91 kB / 414.1 MB, free: 21.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09651/0.09833, allocations: 51.44 MB / 465.6 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.01676/0.1151, allocations: 14.38 MB / 480 MB, free: 3.699 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009424/0.1246, allocations: 4.637 MB / 484.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002162/0.1268, allocations: 75.81 kB / 484.7 MB, free: 14.97 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003172/0.13, allocations: 1.603 MB / 486.3 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006143/0.1362, allocations: 2.576 MB / 488.9 MB, free: 10.78 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001415/0.1376, allocations: 0.5732 MB / 489.4 MB, free: 10.2 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007037/0.1447, allocations: 5.181 MB / 494.6 MB, free: 5.012 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003876/0.1486, allocations: 2.96 MB / 497.6 MB, free: 1.996 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002629/0.1512, allocations: 1.779 MB / 499.3 MB, free: 216 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003276/0.1545, allocations: 2.507 MB / 0.4901 GB, free: 13.7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007748/0.1553, allocations: 380 kB / 0.4905 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002286/0.1576, allocations: 1.19 MB / 0.4916 GB, free: 12.13 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002176/0.1598, allocations: 2.291 MB / 0.4939 GB, free: 9.836 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002839/0.1626, allocations: 2.819 MB / 0.4966 GB, free: 7 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2295/0.3922, allocations: 8.813 MB / 0.5052 GB, free: 15.31 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.744e-06/0.3922, allocations: 3.984 kB / 0.5052 GB, free: 15.31 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.3922, allocations: 0.5938 kB / 0.5052 GB, free: 15.31 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003024/0.3925, allocations: 0 / 0.5052 GB, free: 15.31 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.01594/0.4085, allocations: 6.741 MB / 0.5118 GB, free: 12.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.4086, allocations: 9.625 kB / 0.5118 GB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001463/0.41, allocations: 0.9516 MB / 0.5127 GB, free: 12.67 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01268/0.4227, allocations: 3.447 MB / 0.5161 GB, free: 12.26 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00684/0.4296, allocations: 3.107 MB / 0.5191 GB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002275/0.4298, allocations: 278.7 kB / 0.5194 GB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009976/0.4308, allocations: 365.4 kB / 0.5198 GB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01691/0.4478, allocations: 14.02 MB / 0.5334 GB, free: 6.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001047/0.4479, allocations: 55.19 kB / 0.5335 GB, free: 6.496 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004964/0.4484, allocations: 176 kB / 0.5337 GB, free: 6.434 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003828/0.4522, allocations: 3.141 MB / 0.5367 GB, free: 5.293 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01911/0.4714, allocations: 12.2 MB / 0.5487 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0733/0.5447, allocations: 51.89 MB / 0.5993 GB, free: 5.996 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01136/0.5561, allocations: 5.078 MB / 0.6043 GB, free: 0.6992 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002931/0.559, allocations: 1.806 MB / 0.606 GB, free: 14.89 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0143/0.5734, allocations: 8.03 MB / 0.6139 GB, free: 6.609 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.834e-05/0.5734, allocations: 54.5 kB / 0.6139 GB, free: 6.551 MB / 462.1 MB Notification: Performance of pre-optimization done (n=242): time 6.081e-06/0.5735, allocations: 4 kB / 0.6139 GB, free: 6.547 MB / 462.1 MB Notification: Performance of matching and sorting (n=272): time 0.03235/0.6058, allocations: 14.77 MB / 0.6284 GB, free: 7.789 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/0.6059, allocations: 154.3 kB / 0.6285 GB, free: 7.609 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00815/0.6141, allocations: 5.409 MB / 0.6338 GB, free: 2.211 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004209/0.6146, allocations: 61.7 kB / 0.6339 GB, free: 2.145 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003394/0.618, allocations: 4.267 MB / 0.638 GB, free: 13.9 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001302/0.6193, allocations: 1.079 MB / 0.6391 GB, free: 12.84 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002265/0.6216, allocations: 1.651 MB / 0.6407 GB, free: 11.18 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.6217, allocations: 301.1 kB / 0.641 GB, free: 10.88 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004133/0.6258, allocations: 2.534 MB / 0.6435 GB, free: 8.336 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008197/0.6341, allocations: 7.356 MB / 0.6506 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01298/0.6471, allocations: 10.74 MB / 0.6611 GB, free: 2.234 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001132/0.6472, allocations: 52 kB / 0.6612 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1082) (initialization): time 0.01723/0.6644, allocations: 9.932 MB / 0.6709 GB, free: 8.402 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001061/0.6645, allocations: 76 kB / 0.6709 GB, free: 8.328 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002003/0.6648, allocations: 173.6 kB / 0.6711 GB, free: 8.16 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001091/0.6659, allocations: 0.4925 MB / 0.6716 GB, free: 7.664 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005538/0.6714, allocations: 1.84 MB / 0.6734 GB, free: 5.82 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006059/0.6775, allocations: 5.297 MB / 0.6786 GB, free: 244 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005574/0.6831, allocations: 416.6 kB / 0.679 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001067/0.6842, allocations: 496 kB / 0.6794 GB, free: 15.35 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.004686/0.6888, allocations: 2.855 MB / 0.6822 GB, free: 12.48 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008819/0.6897, allocations: 488.7 kB / 0.6827 GB, free: 12 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004983/0.6947, allocations: 2.971 MB / 0.6856 GB, free: 9.016 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.828e-05/0.6948, allocations: 31.67 kB / 0.6856 GB, free: 8.988 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/0.6948, allocations: 4 kB / 0.6856 GB, free: 8.984 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.568e-05/0.6948, allocations: 19.89 kB / 0.6856 GB, free: 8.965 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01505/0.7099, allocations: 9.073 MB / 0.6945 GB, free: 15.77 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.247e-05/0.7099, allocations: 8 kB / 0.6945 GB, free: 15.76 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00162/0.7116, allocations: 383.4 kB / 0.6949 GB, free: 15.38 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007634/0.7123, allocations: 270.1 kB / 0.6951 GB, free: 15.11 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001531/0.7125, allocations: 55.89 kB / 0.6952 GB, free: 15.06 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00463/0.7171, allocations: 4.377 MB / 0.6995 GB, free: 10.41 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.514e-06/0.7172, allocations: 8 kB / 0.6995 GB, free: 10.41 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008056/0.7252, allocations: 5.682 MB / 0.705 GB, free: 4.57 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001362/0.7266, allocations: 0.5339 MB / 0.7055 GB, free: 4.016 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005369/0.7271, allocations: 47.94 kB / 0.7056 GB, free: 3.969 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001506/0.7287, allocations: 107.9 kB / 0.7057 GB, free: 3.863 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003425/0.729, allocations: 157.6 kB / 0.7058 GB, free: 3.711 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001582/0.7292, allocations: 78.89 kB / 0.7059 GB, free: 3.637 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005385/0.7346, allocations: 3.397 MB / 0.7092 GB, free: 260 kB / 0.545 GB Notification: Performance of sort global known variables: time 2.81e-07/0.7346, allocations: 0 / 0.7092 GB, free: 260 kB / 0.545 GB Notification: Performance of remove unused functions: time 0.2283/0.9629, allocations: 1.256 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.008007/0.971, allocations: 6.347 MB / 0.7167 GB, free: 192.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009159/0.9801, allocations: 6.197 MB / 0.7227 GB, free: 190 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/0.9802, allocations: 0 / 0.7227 GB, free: 190 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002034/0.9822, allocations: 1.816 MB / 0.7245 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.003373/0.9856, allocations: 0.6492 MB / 0.7251 GB, free: 189 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06779/1.053, allocations: 58.67 MB / 0.7824 GB, free: 136.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004116/1.058, allocations: 4.236 MB / 0.7865 GB, free: 132.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005922/1.064, allocations: 2.712 MB / 0.7892 GB, free: 129.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003298/1.067, allocations: 2.62 MB / 0.7918 GB, free: 127.2 MB / 0.545 GB Notification: Performance of SimCode: time 9.32e-07/1.067, allocations: 0 / 0.7918 GB, free: 127.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1267/1.194, allocations: 85.77 MB / 0.8755 GB, free: 41.89 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.56/22.75, allocations: 20.98 kB / 0.8755 GB, free: 41.87 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_CraneCrabTo3D_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_CraneCrabTo3D.fmu > PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe 2>&1)