Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.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.KinematicLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop") translateModel(PlanarMechanics.Examples.KinematicLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 176.1 kB / 7.643 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 221.5 MB / 229.6 MB, free: 7.582 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009508/0.0009508, allocations: 87.3 kB / 280.5 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.06211/0.06211, allocations: 8.834 MB / 340.1 MB, free: 6.41 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.109e-05/2.116e-05, allocations: 2.094 kB / 398.7 MB, free: 47.63 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1345, allocations: 52.39 MB / 451.1 MB, free: 4.566 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4153/0.5498, allocations: 87.84 MB / 0.5263 GB, free: 80.96 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001994/0.5501, allocations: 75.7 kB / 0.5263 GB, free: 80.96 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1613/0.7114, allocations: 72.05 MB / 0.5967 GB, free: 17.99 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.7115, allocations: 4 kB / 0.5967 GB, free: 17.99 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001849/0.7117, allocations: 64 kB / 0.5968 GB, free: 17.93 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1368 * Number of variables: 1368 Notification: Performance of Generate backend data structure: time 0.01613/0.7278, allocations: 3.917 MB / 0.6006 GB, free: 13.95 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/0.7279, allocations: 20 kB / 0.6006 GB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009886/0.7378, allocations: 2.003 MB / 0.6026 GB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005437/0.7433, allocations: 1.93 MB / 0.6045 GB, free: 9.941 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002611/0.7436, allocations: 112 kB / 0.6046 GB, free: 9.832 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002162/0.7458, allocations: 200 kB / 0.6048 GB, free: 9.637 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01033/0.7561, allocations: 6.031 MB / 0.6107 GB, free: 3.602 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01892/0.7751, allocations: 8.085 MB / 0.6185 GB, free: 11.04 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002386/0.7753, allocations: 35.7 kB / 0.6186 GB, free: 11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00187/0.7772, allocations: 16 kB / 0.6186 GB, free: 10.99 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001959/0.7792, allocations: 1.041 MB / 0.6196 GB, free: 9.945 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05057/0.8298, allocations: 29.3 MB / 0.6482 GB, free: 11.91 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00563/0.8355, allocations: 2.878 MB / 0.651 GB, free: 8.906 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001922/0.8375, allocations: 0.9912 MB / 0.652 GB, free: 7.914 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008611/0.8461, allocations: 5.423 MB / 0.6573 GB, free: 1.938 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.192e-05/0.8462, allocations: 51.88 kB / 0.6574 GB, free: 1.879 MB / 410.7 MB Notification: Performance of pre-optimization done (n=173): time 5.079e-06/0.8462, allocations: 0 / 0.6574 GB, free: 1.879 MB / 410.7 MB Notification: Performance of matching and sorting (n=227): time 0.01337/0.8596, allocations: 5.671 MB / 0.6629 GB, free: 12.19 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.965e-05/0.8597, allocations: 73.41 kB / 0.663 GB, free: 12.11 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004654/0.8643, allocations: 2.184 MB / 0.6651 GB, free: 9.898 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002639/0.8646, allocations: 25.7 kB / 0.6651 GB, free: 9.867 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002015/0.8667, allocations: 2.495 MB / 0.6676 GB, free: 7.332 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009513/0.8676, allocations: 0.8052 MB / 0.6683 GB, free: 6.516 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004335/0.8681, allocations: 0 / 0.6683 GB, free: 6.516 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005669/0.8687, allocations: 0.5649 MB / 0.6689 GB, free: 5.941 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002746/0.8714, allocations: 1.525 MB / 0.6704 GB, free: 4.41 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004791/0.8762, allocations: 4.238 MB / 0.6745 GB, free: 14.82 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004261/0.8805, allocations: 2.572 MB / 0.677 GB, free: 12.25 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.288e-05/0.8806, allocations: 28 kB / 0.6771 GB, free: 12.22 MB / 442.7 MB Notification: Performance of matching and sorting (n=681) (initialization): time 0.01187/0.8925, allocations: 5.856 MB / 0.6828 GB, free: 6.344 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.204e-05/0.8926, allocations: 45.41 kB / 0.6828 GB, free: 6.301 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00016/0.8928, allocations: 96 kB / 0.6829 GB, free: 6.207 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001787/0.8946, allocations: 0.7011 MB / 0.6836 GB, free: 5.492 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003594/0.8982, allocations: 1.088 MB / 0.6847 GB, free: 4.402 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2928/1.191, allocations: 11.94 MB / 0.6963 GB, free: 98.63 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003802/1.195, allocations: 156.7 kB / 0.6965 GB, free: 98.63 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008306/1.196, allocations: 303.9 kB / 0.6968 GB, free: 98.63 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: fixedTranslation2.frame_b.phi:DUMMY_STATE(flow=false unit = "rad" ) "Angle (counter-clockwise)" type: Real fixedTranslation1.frame_b.phi:DUMMY_STATE(flow=false unit = "rad" ) "Angle (counter-clockwise)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 437 * Number of states: 0 () * Number of discrete variables: 27 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (605): * Single equations (assignments): 596 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 9,(2,100.0%) 17,(2,100.0%) 10,(1,100.0%) 1} * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.0007627/1.196, allocations: 363.8 kB / 0.6971 GB, free: 98.52 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004668/1.197, allocations: 245.6 kB / 0.6973 GB, free: 98.52 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004991/1.202, allocations: 2.779 MB / 0.7001 GB, free: 98.34 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000124/1.202, allocations: 37.44 kB / 0.7001 GB, free: 98.34 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.315e-05/1.202, allocations: 7.391 kB / 0.7001 GB, free: 98.34 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.043e-05/1.202, allocations: 18.61 kB / 0.7001 GB, free: 98.34 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01233/1.215, allocations: 6.877 MB / 0.7068 GB, free: 97.56 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.678e-06/1.215, allocations: 3.344 kB / 0.7068 GB, free: 97.56 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009869/1.216, allocations: 280 kB / 0.7071 GB, free: 97.56 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001077/1.217, allocations: 0.4888 MB / 0.7076 GB, free: 97.52 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.817e-05/1.217, allocations: 16.95 kB / 0.7076 GB, free: 97.52 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008041/1.225, allocations: 10.25 MB / 0.7176 GB, free: 91.27 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.203e-06/1.225, allocations: 10.09 kB / 0.7176 GB, free: 91.27 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005537/1.23, allocations: 4.411 MB / 0.7219 GB, free: 90.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007924/1.231, allocations: 313.7 kB / 0.7222 GB, free: 90.48 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002663/1.231, allocations: 9.469 kB / 0.7222 GB, free: 90.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009413/1.232, allocations: 58.66 kB / 0.7223 GB, free: 90.48 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002509/1.233, allocations: 138 kB / 0.7224 GB, free: 90.48 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000108/1.233, allocations: 60.59 kB / 0.7225 GB, free: 90.48 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001954/1.235, allocations: 1.453 MB / 0.7239 GB, free: 90.33 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.21e-07/1.235, allocations: 0 / 0.7239 GB, free: 90.33 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003989/1.239, allocations: 0.7757 MB / 0.7246 GB, free: 90.33 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (revolute1.phi,revolute1.w,revolute4.phi,revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (163): * Single equations (assignments): 154 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 7,(2,100.0%) 15,(1,100.0%) 1,(1,100.0%) 7} * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003698/1.239, allocations: 145 kB / 0.7248 GB, free: 90.24 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006076/1.245, allocations: 4.337 MB / 0.729 GB, free: 89.11 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.509e-05/1.245, allocations: 0 / 0.729 GB, free: 89.11 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002055/1.247, allocations: 1.811 MB / 0.7308 GB, free: 88.15 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001716/1.249, allocations: 242.7 kB / 0.731 GB, free: 88.05 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01107/1.26, allocations: 6.252 MB / 0.7371 GB, free: 85.76 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002713/1.263, allocations: 3.001 MB / 0.7401 GB, free: 84.54 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003286/1.266, allocations: 1.357 MB / 0.7414 GB, free: 84.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000475/1.267, allocations: 197.3 kB / 0.7416 GB, free: 84.48 MB / 442.7 MB Notification: Performance of SimCode: time 1.784e-06/1.267, allocations: 0 / 0.7416 GB, free: 84.48 MB / 442.7 MB Notification: Performance of Templates: time 0.0473/1.314, allocations: 27.15 MB / 0.7681 GB, free: 71.02 MB / 442.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.sim & ./PlanarMechanics_PlanarMechanics.Examples.KinematicLoop -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe 2>&1)