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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) Running command: translateModel(PlanarMechanics.Examples.InvertedCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab") translateModel(PlanarMechanics.Examples.InvertedCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002195/0.002196, allocations: 175.9 kB / 15.78 MB, free: 6.352 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.45/2.45, allocations: 223.2 MB / 239.8 MB, free: 4 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001339/0.00134, allocations: 95.84 kB / 290.9 MB, free: 4.59 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.07031/0.07031, allocations: 8.952 MB / 351 MB, free: 4.16 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006572/0.0006581, allocations: 8 kB / 413.9 MB, free: 5.254 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4504/0.4511, allocations: 52.38 MB / 466.2 MB, free: 69.24 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.03146/0.4827, allocations: 24.75 MB / 491 MB, free: 44.43 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02481/0.5075, allocations: 5.829 MB / 496.8 MB, free: 38.58 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01148/0.5191, allocations: 99.81 kB / 496.9 MB, free: 38.48 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006981/0.5262, allocations: 1.193 MB / 498.1 MB, free: 37.28 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01839/0.5447, allocations: 4.245 MB / 0.4906 GB, free: 33.02 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002492/0.5472, allocations: 135.8 kB / 0.4907 GB, free: 32.89 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.004587/0.5519, allocations: 2.788 MB / 0.4934 GB, free: 30.09 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00194/0.5538, allocations: 0.8198 MB / 0.4942 GB, free: 29.25 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0019/0.5558, allocations: 0.7936 MB / 0.495 GB, free: 28.45 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002291/0.5581, allocations: 1.292 MB / 0.4963 GB, free: 27.16 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009392/0.5591, allocations: 128 kB / 0.4964 GB, free: 27.03 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002042/0.5611, allocations: 0.6748 MB / 0.497 GB, free: 26.36 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001791/0.5629, allocations: 1.091 MB / 0.4981 GB, free: 25.26 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001041/0.564, allocations: 0.6365 MB / 0.4987 GB, free: 24.62 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005188/0.5692, allocations: 3.663 MB / 0.5023 GB, free: 20.95 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.18e-05/0.5693, allocations: 0 / 0.5023 GB, free: 20.95 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.198e-06/0.5693, allocations: 4 kB / 0.5023 GB, free: 20.94 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002131/0.5695, allocations: 0 / 0.5023 GB, free: 20.94 MB / 346.7 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.01044/0.58, allocations: 3.284 MB / 0.5055 GB, free: 17.59 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.559e-05/0.58, allocations: 8.031 kB / 0.5055 GB, free: 17.59 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007/0.587, allocations: 1.809 MB / 0.5073 GB, free: 15.77 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003306/0.5904, allocations: 1.331 MB / 0.5086 GB, free: 14.39 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001203/0.5905, allocations: 151.7 kB / 0.5087 GB, free: 14.25 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005065/0.5911, allocations: 207.7 kB / 0.5089 GB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01634/0.6074, allocations: 7.948 MB / 0.5167 GB, free: 5.734 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001274/0.6076, allocations: 27.8 kB / 0.5167 GB, free: 5.707 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004767/0.6081, allocations: 91.88 kB / 0.5168 GB, free: 5.617 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004617/0.6127, allocations: 1.856 MB / 0.5186 GB, free: 3.758 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02614/0.6389, allocations: 7.137 MB / 0.5256 GB, free: 12.61 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06601/0.705, allocations: 24.14 MB / 0.5492 GB, free: 3.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007969/0.7131, allocations: 2.371 MB / 0.5515 GB, free: 1.492 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002167/0.7153, allocations: 0.8291 MB / 0.5523 GB, free: 0.6602 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4036/1.119, allocations: 4.74 MB / 0.5569 GB, free: 86.04 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.953e-05/1.119, allocations: 51.38 kB / 0.557 GB, free: 85.99 MB / 378.7 MB Notification: Performance of pre-optimization done (n=128): time 6.011e-06/1.119, allocations: 0 / 0.557 GB, free: 85.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=154): time 0.01751/1.137, allocations: 7.076 MB / 0.5639 GB, free: 83.24 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.438e-05/1.137, allocations: 65.73 kB / 0.5639 GB, free: 83.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004974/1.142, allocations: 2.592 MB / 0.5665 GB, free: 82.17 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002006/1.142, allocations: 45.67 kB / 0.5665 GB, free: 82.12 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001518/1.143, allocations: 2.092 MB / 0.5686 GB, free: 80.52 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000616/1.144, allocations: 0.5672 MB / 0.5691 GB, free: 80.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001622/1.144, allocations: 74.78 kB / 0.5692 GB, free: 80.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000247/1.144, allocations: 479 kB / 0.5696 GB, free: 79.67 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002164/1.147, allocations: 1.299 MB / 0.5709 GB, free: 79.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003139/1.15, allocations: 3.43 MB / 0.5743 GB, free: 75.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003/1.153, allocations: 2.112 MB / 0.5763 GB, free: 73.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.281e-05/1.153, allocations: 30.62 kB / 0.5763 GB, free: 73.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.008252/1.161, allocations: 4.793 MB / 0.581 GB, free: 69.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.51e-05/1.161, allocations: 36 kB / 0.5811 GB, free: 69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.687e-05/1.161, allocations: 76 kB / 0.5811 GB, free: 68.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004201/1.162, allocations: 200.7 kB / 0.5813 GB, free: 68.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002849/1.165, allocations: 0.9052 MB / 0.5822 GB, free: 67.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001972/1.167, allocations: 2.183 MB / 0.5843 GB, free: 65.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00367/1.17, allocations: 212 kB / 0.5845 GB, free: 65.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004765/1.171, allocations: 232 kB / 0.5848 GB, free: 65.04 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002977/1.174, allocations: 1.554 MB / 0.5863 GB, free: 63.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005602/1.174, allocations: 221.1 kB / 0.5865 GB, free: 63.26 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003284/1.178, allocations: 1.972 MB / 0.5884 GB, free: 61.28 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001037/1.178, allocations: 23.98 kB / 0.5884 GB, free: 61.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/1.178, allocations: 7.953 kB / 0.5884 GB, free: 61.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.45e-05/1.178, allocations: 5.547 kB / 0.5885 GB, free: 61.24 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009701/1.187, allocations: 5.63 MB / 0.594 GB, free: 55.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.129e-05/1.188, allocations: 4.188 kB / 0.594 GB, free: 55.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009942/1.189, allocations: 243.7 kB / 0.5942 GB, free: 55.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002602/1.189, allocations: 86.03 kB / 0.5943 GB, free: 55.19 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.533e-05/1.189, allocations: 29.17 kB / 0.5943 GB, free: 55.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0015/1.19, allocations: 1.925 MB / 0.5962 GB, free: 53.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/1.19, allocations: 0 / 0.5962 GB, free: 53.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0045/1.195, allocations: 3.061 MB / 0.5992 GB, free: 49.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009649/1.196, allocations: 310.2 kB / 0.5995 GB, free: 49.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002318/1.196, allocations: 24.62 kB / 0.5995 GB, free: 49.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008561/1.197, allocations: 81.16 kB / 0.5996 GB, free: 49.56 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001793/1.197, allocations: 76.89 kB / 0.5996 GB, free: 49.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.077e-05/1.197, allocations: 43.98 kB / 0.5997 GB, free: 49.44 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002623/1.2, allocations: 1.668 MB / 0.6013 GB, free: 47.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.11e-07/1.2, allocations: 0 / 0.6013 GB, free: 47.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003869/1.204, allocations: 0.6717 MB / 0.602 GB, free: 47.09 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004109/1.204, allocations: 152.8 kB / 0.6021 GB, free: 46.94 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005884/1.21, allocations: 3.13 MB / 0.6052 GB, free: 43.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.187e-06/1.21, allocations: 0 / 0.6052 GB, free: 43.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00225/1.212, allocations: 0.9856 MB / 0.6061 GB, free: 42.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003844/1.216, allocations: 359.1 kB / 0.6065 GB, free: 42.47 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01881/1.235, allocations: 8.048 MB / 0.6143 GB, free: 34.38 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002502/1.238, allocations: 2.567 MB / 0.6168 GB, free: 31.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009912/1.239, allocations: 207.4 kB / 0.617 GB, free: 31.57 MB / 378.7 MB Notification: Performance of SimCode: time 1.874e-06/1.239, allocations: 0 / 0.617 GB, free: 31.57 MB / 378.7 MB Notification: Performance of Templates: time 0.1009/1.34, allocations: 55.75 MB / 0.6715 GB, free: 7.941 MB / 410.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.makefile (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 & ./PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe 2>&1)