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/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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.001239/0.001239, allocations: 187 kB / 17.34 MB, free: 5.762 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.335/1.335, allocations: 222.9 MB / 241 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.04476/0.04476, allocations: 9.121 MB / 300.3 MB, free: 5.832 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 71.88 kB / 415.3 MB, free: 21.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08155/0.08276, allocations: 51.43 MB / 466.7 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.01109/0.09388, allocations: 10.5 MB / 477.2 MB, free: 7.121 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00594/0.09987, allocations: 2.978 MB / 480.2 MB, free: 4.133 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001474/0.1014, allocations: 47.88 kB / 480.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001391/0.1028, allocations: 440.9 kB / 480.7 MB, free: 3.652 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004422/0.1073, allocations: 1.579 MB / 482.3 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008105/0.1081, allocations: 231.6 kB / 482.5 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004054/0.1122, allocations: 3.012 MB / 485.5 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001803/0.114, allocations: 1.186 MB / 486.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001755/0.1158, allocations: 1.101 MB / 487.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002282/0.1181, allocations: 1.545 MB / 489.3 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007806/0.1189, allocations: 276 kB / 489.6 MB, free: 10.68 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001937/0.1208, allocations: 0.8777 MB / 490.5 MB, free: 9.797 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001649/0.1225, allocations: 1.402 MB / 491.9 MB, free: 8.391 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002585/0.1251, allocations: 1.864 MB / 493.8 MB, free: 6.516 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006267/0.1314, allocations: 5.706 MB / 499.5 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.1314, allocations: 4 kB / 499.5 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1314, allocations: 0 / 499.5 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001313/0.1316, allocations: 0 / 499.5 MB, free: 0.7852 MB / 366.1 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.01268/0.1442, allocations: 5.729 MB / 0.4934 GB, free: 10.99 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.1443, allocations: 8.031 kB / 0.4934 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006525/0.1508, allocations: 1.833 MB / 0.4952 GB, free: 9.141 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003115/0.154, allocations: 1.568 MB / 0.4967 GB, free: 7.523 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001523/0.1542, allocations: 184.6 kB / 0.4969 GB, free: 7.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005558/0.1547, allocations: 247.8 kB / 0.4971 GB, free: 7.098 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2031/0.3578, allocations: 9.299 MB / 0.5062 GB, free: 39.49 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001048/0.358, allocations: 35.14 kB / 0.5062 GB, free: 39.47 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003686/0.3584, allocations: 123.7 kB / 0.5063 GB, free: 39.47 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00337/0.3617, allocations: 2.068 MB / 0.5083 GB, free: 39.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01718/0.3789, allocations: 8.244 MB / 0.5164 GB, free: 36.64 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03472/0.4137, allocations: 29.92 MB / 0.5456 GB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006795/0.4205, allocations: 3.036 MB / 0.5486 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001441/0.422, allocations: 1.112 MB / 0.5497 GB, free: 9.277 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006464/0.4285, allocations: 6.288 MB / 0.5558 GB, free: 2.363 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.4286, allocations: 43.88 kB / 0.5559 GB, free: 2.312 MB / 382.1 MB Notification: Performance of pre-optimization done (n=179): time 5.02e-06/0.4286, allocations: 4 kB / 0.5559 GB, free: 2.309 MB / 382.1 MB Notification: Performance of matching and sorting (n=233): time 0.02112/0.4497, allocations: 8.293 MB / 0.564 GB, free: 9.934 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.809e-05/0.4498, allocations: 73.41 kB / 0.564 GB, free: 9.852 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004074/0.4539, allocations: 3.069 MB / 0.567 GB, free: 6.762 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002311/0.4541, allocations: 53.7 kB / 0.5671 GB, free: 6.703 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001506/0.4556, allocations: 2.421 MB / 0.5694 GB, free: 4.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007472/0.4564, allocations: 0.844 MB / 0.5703 GB, free: 3.395 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001245/0.4577, allocations: 0.9885 MB / 0.5712 GB, free: 2.395 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.792e-05/0.4578, allocations: 305.1 kB / 0.5715 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002523/0.4603, allocations: 1.633 MB / 0.5731 GB, free: 468 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004196/0.4645, allocations: 4.256 MB / 0.5773 GB, free: 10.92 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00744/0.472, allocations: 6.391 MB / 0.5835 GB, free: 3.262 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.927e-05/0.4721, allocations: 28 kB / 0.5835 GB, free: 3.234 MB / 414.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.01155/0.4836, allocations: 6.48 MB / 0.5899 GB, free: 12.73 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.034e-05/0.4837, allocations: 44 kB / 0.5899 GB, free: 12.69 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001115/0.4839, allocations: 92.09 kB / 0.59 GB, free: 12.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001872/0.4858, allocations: 0.7133 MB / 0.5907 GB, free: 11.87 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003343/0.4891, allocations: 1.049 MB / 0.5917 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01334/0.5025, allocations: 12.15 MB / 0.6036 GB, free: 14.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003414/0.5059, allocations: 259.9 kB / 0.6038 GB, free: 13.85 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006697/0.5066, allocations: 288 kB / 0.6041 GB, free: 13.57 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 413 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (583): * Single equations (assignments): 574 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,8,100.0%), (2,17,100.0%), (2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,10)} Notification: Performance of prepare postOptimizeDAE: time 0.002766/0.5094, allocations: 1.8 MB / 0.6059 GB, free: 11.76 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004407/0.5098, allocations: 284.3 kB / 0.6061 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005115/0.515, allocations: 3.133 MB / 0.6092 GB, free: 8.316 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001047/0.5151, allocations: 43.86 kB / 0.6092 GB, free: 8.273 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.5151, allocations: 4 kB / 0.6092 GB, free: 8.27 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-05/0.5152, allocations: 7.969 kB / 0.6093 GB, free: 8.262 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01319/0.5283, allocations: 8.203 MB / 0.6173 GB, free: 15.89 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-05/0.5284, allocations: 4 kB / 0.6173 GB, free: 15.89 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001105/0.5295, allocations: 291.6 kB / 0.6175 GB, free: 15.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001302/0.5308, allocations: 0.5469 MB / 0.6181 GB, free: 15.04 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001197/0.5309, allocations: 43.98 kB / 0.6181 GB, free: 15 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009931/0.5409, allocations: 10.02 MB / 0.6279 GB, free: 4.422 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.5409, allocations: 7.938 kB / 0.6279 GB, free: 4.414 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006817/0.5478, allocations: 4.685 MB / 0.6325 GB, free: 15.64 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008325/0.5486, allocations: 349.5 kB / 0.6328 GB, free: 15.28 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000342/0.549, allocations: 43.94 kB / 0.6329 GB, free: 15.24 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/0.55, allocations: 99.88 kB / 0.633 GB, free: 15.14 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002944/0.5503, allocations: 146 kB / 0.6331 GB, free: 15 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001308/0.5504, allocations: 67.97 kB / 0.6332 GB, free: 14.93 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002828/0.5533, allocations: 1.964 MB / 0.6351 GB, free: 12.96 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5533, allocations: 7.938 kB / 0.6351 GB, free: 12.95 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004026/0.5573, allocations: 0.9011 MB / 0.636 GB, free: 12.05 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute1.phi,revolute1.w,revolute4.phi,revolute4.w) * 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 (170): * Single equations (assignments): 161 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,6,100.0%), (2,15,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004443/0.5578, allocations: 188 kB / 0.6361 GB, free: 11.87 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006961/0.5647, allocations: 4.711 MB / 0.6407 GB, free: 7.105 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.712e-06/0.5648, allocations: 0 / 0.6407 GB, free: 7.105 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002591/0.5674, allocations: 1.976 MB / 0.6427 GB, free: 5.062 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002255/0.5696, allocations: 470 kB / 0.6431 GB, free: 4.613 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0129/0.5826, allocations: 8.278 MB / 0.6512 GB, free: 12.25 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003273/0.5859, allocations: 2.932 MB / 0.6541 GB, free: 9.289 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008277/0.5867, allocations: 255.4 kB / 0.6543 GB, free: 9.039 MB / 494.1 MB Notification: Performance of SimCode: time 6.41e-07/0.5867, allocations: 4 kB / 0.6543 GB, free: 9.035 MB / 494.1 MB Notification: Performance of Templates: time 0.3405/0.9272, allocations: 140.1 MB / 0.7911 GB, free: 119.3 MB / 0.5294 GB 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)