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.005435/0.005435, allocations: 103.9 kB / 15.73 MB, free: 6.492 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.001332/0.001332, allocations: 190 kB / 16.67 MB, free: 6.379 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.421/1.421, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.169/0.169, allocations: 9.105 MB / 299.6 MB, free: 1.785 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 72.11 kB / 414.1 MB, free: 8.84 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.276/0.2774, allocations: 51.42 MB / 465.6 MB, free: 17.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.01345/0.2909, allocations: 14.39 MB / 480 MB, free: 7.535 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01071/0.3017, allocations: 4.635 MB / 484.6 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00339/0.3051, allocations: 74.94 kB / 484.7 MB, free: 4.125 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00399/0.3091, allocations: 1.61 MB / 486.3 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0105/0.3197, allocations: 2.564 MB / 488.8 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002177/0.322, allocations: 0.5754 MB / 489.4 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008088/0.3301, allocations: 5.181 MB / 494.6 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004757/0.3349, allocations: 2.969 MB / 497.6 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003456/0.3383, allocations: 1.783 MB / 499.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003684/0.342, allocations: 2.503 MB / 0.4901 GB, free: 7.812 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001227/0.3433, allocations: 384 kB / 0.4905 GB, free: 7.438 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002809/0.3461, allocations: 1.19 MB / 0.4916 GB, free: 6.246 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002567/0.3487, allocations: 2.298 MB / 0.4939 GB, free: 3.941 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003968/0.3527, allocations: 2.815 MB / 0.4966 GB, free: 1.109 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01008/0.3628, allocations: 8.781 MB / 0.5052 GB, free: 8.297 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.3628, allocations: 4 kB / 0.5052 GB, free: 8.293 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3628, allocations: 0 / 0.5052 GB, free: 8.293 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002332/0.3631, allocations: 0 / 0.5052 GB, free: 8.293 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.01433/0.3774, allocations: 6.573 MB / 0.5116 GB, free: 1.641 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.3775, allocations: 16.03 kB / 0.5116 GB, free: 1.625 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001679/0.3792, allocations: 0.9447 MB / 0.5125 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01235/0.3915, allocations: 3.405 MB / 0.5159 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007098/0.3987, allocations: 3.106 MB / 0.5189 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002371/0.399, allocations: 274.7 kB / 0.5192 GB, free: 9.816 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001034/0.4, allocations: 355.7 kB / 0.5195 GB, free: 9.469 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02174/0.4218, allocations: 14.03 MB / 0.5332 GB, free: 10.55 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001319/0.4219, allocations: 51.52 kB / 0.5333 GB, free: 10.5 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005712/0.4225, allocations: 175.8 kB / 0.5334 GB, free: 10.33 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004497/0.427, allocations: 3.136 MB / 0.5365 GB, free: 7.195 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02265/0.4497, allocations: 12.21 MB / 0.5484 GB, free: 10.97 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2948/0.7446, allocations: 51.79 MB / 0.599 GB, free: 74.22 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01109/0.7557, allocations: 5.061 MB / 0.6039 GB, free: 73.05 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002918/0.7587, allocations: 1.804 MB / 0.6057 GB, free: 73.02 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01466/0.7733, allocations: 8.003 MB / 0.6135 GB, free: 69.6 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.612e-05/0.7734, allocations: 56.38 kB / 0.6136 GB, free: 69.55 MB / 462.1 MB Notification: Performance of pre-optimization done (n=242): time 5.741e-06/0.7734, allocations: 3.219 kB / 0.6136 GB, free: 69.55 MB / 462.1 MB Notification: Performance of matching and sorting (n=272): time 0.03071/0.8042, allocations: 14.48 MB / 0.6277 GB, free: 62.99 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.403e-05/0.8042, allocations: 150.3 kB / 0.6278 GB, free: 62.83 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006674/0.8109, allocations: 5.404 MB / 0.6331 GB, free: 60.9 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003623/0.8113, allocations: 60.58 kB / 0.6332 GB, free: 60.84 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002055/0.8134, allocations: 4.092 MB / 0.6372 GB, free: 57.68 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008924/0.8143, allocations: 1.039 MB / 0.6382 GB, free: 56.93 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001939/0.8163, allocations: 1.633 MB / 0.6398 GB, free: 56.09 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.418e-05/0.8163, allocations: 307.4 kB / 0.6401 GB, free: 55.79 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00338/0.8197, allocations: 2.54 MB / 0.6426 GB, free: 54.59 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005439/0.8252, allocations: 7.354 MB / 0.6497 GB, free: 46.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009352/0.8346, allocations: 10.75 MB / 0.6602 GB, free: 35.92 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001534/0.8348, allocations: 48 kB / 0.6603 GB, free: 35.88 MB / 462.1 MB Notification: Performance of matching and sorting (n=1082) (initialization): time 0.01452/0.8493, allocations: 9.907 MB / 0.67 GB, free: 25.96 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.916e-05/0.8494, allocations: 80 kB / 0.67 GB, free: 25.88 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001533/0.8496, allocations: 168.9 kB / 0.6702 GB, free: 25.72 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009471/0.8505, allocations: 0.4979 MB / 0.6707 GB, free: 25.21 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005063/0.8556, allocations: 1.84 MB / 0.6725 GB, free: 23.37 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004296/0.8599, allocations: 5.296 MB / 0.6776 GB, free: 17.79 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006235/0.8662, allocations: 419.2 kB / 0.678 GB, free: 17.39 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001231/0.8675, allocations: 498.4 kB / 0.6785 GB, free: 16.9 MB / 462.1 MB 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.004159/0.8716, allocations: 2.847 MB / 0.6813 GB, free: 14.05 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008447/0.8725, allocations: 462 kB / 0.6817 GB, free: 13.59 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00427/0.8768, allocations: 2.968 MB / 0.6846 GB, free: 10.61 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.328e-05/0.8768, allocations: 31.94 kB / 0.6847 GB, free: 10.57 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.8768, allocations: 8 kB / 0.6847 GB, free: 10.57 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.836e-05/0.8769, allocations: 11.97 kB / 0.6847 GB, free: 10.55 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01335/0.8902, allocations: 9.087 MB / 0.6936 GB, free: 1.348 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-05/0.8903, allocations: 8 kB / 0.6936 GB, free: 1.34 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001497/0.8918, allocations: 379.5 kB / 0.6939 GB, free: 0.9688 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006635/0.8924, allocations: 269.4 kB / 0.6942 GB, free: 0.6992 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001587/0.8926, allocations: 52 kB / 0.6942 GB, free: 0.6484 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004284/0.8969, allocations: 4.366 MB / 0.6985 GB, free: 12.01 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.498e-06/0.897, allocations: 16 kB / 0.6985 GB, free: 11.99 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008754/0.9057, allocations: 5.651 MB / 0.704 GB, free: 6.184 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001602/0.9074, allocations: 0.5068 MB / 0.7045 GB, free: 5.652 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007988/0.9082, allocations: 51.92 kB / 0.7046 GB, free: 5.605 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00183/0.91, allocations: 111.2 kB / 0.7047 GB, free: 5.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004023/0.9104, allocations: 161.5 kB / 0.7048 GB, free: 5.344 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001634/0.9106, allocations: 79.98 kB / 0.7049 GB, free: 5.266 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0059/0.9165, allocations: 3.389 MB / 0.7082 GB, free: 1.891 MB / 478.1 MB Notification: Performance of sort global known variables: time 8.31e-07/0.9166, allocations: 0 / 0.7082 GB, free: 1.891 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00663/0.9232, allocations: 1.26 MB / 0.7095 GB, free: 0.6367 MB / 478.1 MB 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.008551/0.9318, allocations: 6.326 MB / 0.7156 GB, free: 10.16 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01013/0.942, allocations: 6.194 MB / 0.7217 GB, free: 3.977 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.158e-05/0.942, allocations: 4 kB / 0.7217 GB, free: 3.973 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002903/0.9449, allocations: 1.806 MB / 0.7235 GB, free: 2.148 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004695/0.9496, allocations: 0.6551 MB / 0.7241 GB, free: 1.508 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09527/1.045, allocations: 58.43 MB / 0.7812 GB, free: 15.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008075/1.053, allocations: 4.242 MB / 0.7853 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.007053/1.06, allocations: 2.709 MB / 0.7879 GB, free: 8.816 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004648/1.065, allocations: 2.616 MB / 0.7905 GB, free: 6.199 MB / 0.5606 GB Notification: Performance of SimCode: time 1.443e-06/1.065, allocations: 3.938 kB / 0.7905 GB, free: 6.195 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3572/1.422, allocations: 87.06 MB / 0.8755 GB, free: 151.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.21/23.63, allocations: 0 / 0.8755 GB, free: 151.9 MB / 0.5606 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)