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-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/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.0008258/0.0008257, allocations: 86.02 kB / 15.06 MB, free: 1.09 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.0009839/0.0009839, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.534/1.534, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2053/0.2053, allocations: 9.115 MB / 300.2 MB, free: 2.762 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004272/0.0004274, allocations: 8 kB / 363.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.12, allocations: 52.43 MB / 415.5 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.2394/0.3594, allocations: 40.04 MB / 455.6 MB, free: 19.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02318/0.3827, allocations: 8.887 MB / 464.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008456/0.3912, allocations: 165.6 kB / 464.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005852/0.3971, allocations: 1.974 MB / 466.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01713/0.4142, allocations: 6.863 MB / 473.5 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002635/0.4169, allocations: 192.4 kB / 473.7 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004794/0.4217, allocations: 3.294 MB / 476.9 MB, free: 8.148 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001459/0.4232, allocations: 1.05 MB / 478 MB, free: 7.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001448/0.4247, allocations: 0.9642 MB / 479 MB, free: 7.422 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002287/0.427, allocations: 1.505 MB / 480.5 MB, free: 6.906 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005043/0.4275, allocations: 158.1 kB / 480.6 MB, free: 6.906 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001997/0.4295, allocations: 0.6932 MB / 481.3 MB, free: 6.766 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002136/0.4316, allocations: 1.27 MB / 482.6 MB, free: 6.324 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001225/0.4329, allocations: 0.7421 MB / 483.3 MB, free: 5.785 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006962/0.4398, allocations: 4.174 MB / 487.5 MB, free: 4.812 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.326e-06/0.4399, allocations: 0 / 487.5 MB, free: 4.812 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4399, allocations: 0 / 487.5 MB, free: 4.812 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001825/0.4401, allocations: 1.375 kB / 487.5 MB, free: 4.812 MB / 350.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.01444/0.4545, allocations: 5.015 MB / 492.5 MB, free: 2.176 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.4546, allocations: 12.69 kB / 492.5 MB, free: 2.172 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00708/0.4617, allocations: 1.87 MB / 494.4 MB, free: 1.188 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003226/0.4649, allocations: 1.53 MB / 495.9 MB, free: 100 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001553/0.4651, allocations: 186 kB / 496.1 MB, free: 8 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006403/0.4658, allocations: 246.4 kB / 496.4 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01646/0.4822, allocations: 9.287 MB / 0.4938 GB, free: 9.375 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001008/0.4824, allocations: 31.75 kB / 0.4938 GB, free: 9.344 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003888/0.4828, allocations: 122.1 kB / 0.4939 GB, free: 9.227 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00327/0.486, allocations: 2.072 MB / 0.496 GB, free: 7.152 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01891/0.505, allocations: 8.21 MB / 0.504 GB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04535/0.5504, allocations: 30.03 MB / 0.5333 GB, free: 280 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007716/0.5581, allocations: 3.021 MB / 0.5362 GB, free: 13.14 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001763/0.5599, allocations: 1.112 MB / 0.5373 GB, free: 12.02 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008429/0.5684, allocations: 6.277 MB / 0.5435 GB, free: 5.09 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.668e-05/0.5685, allocations: 51.88 kB / 0.5435 GB, free: 5.031 MB / 414.1 MB Notification: Performance of pre-optimization done (n=179): time 5.29e-06/0.5685, allocations: 0 / 0.5435 GB, free: 5.031 MB / 414.1 MB Notification: Performance of matching and sorting (n=233): time 0.02178/0.5903, allocations: 8.299 MB / 0.5516 GB, free: 12.66 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.388e-05/0.5904, allocations: 73.41 kB / 0.5517 GB, free: 12.57 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004875/0.5953, allocations: 3.053 MB / 0.5547 GB, free: 9.496 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002021/0.5955, allocations: 61.7 kB / 0.5547 GB, free: 9.43 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001898/0.5974, allocations: 2.421 MB / 0.5571 GB, free: 6.977 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009728/0.5984, allocations: 0.8362 MB / 0.5579 GB, free: 6.129 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002205/0.5986, allocations: 104 kB / 0.558 GB, free: 6.027 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003638/0.599, allocations: 0.5129 MB / 0.5585 GB, free: 5.508 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003118/0.6021, allocations: 1.614 MB / 0.5601 GB, free: 3.887 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005129/0.6072, allocations: 4.244 MB / 0.5642 GB, free: 14.36 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00471/0.612, allocations: 2.617 MB / 0.5668 GB, free: 11.75 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.64e-05/0.612, allocations: 27.94 kB / 0.5668 GB, free: 11.72 MB / 446.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.0118/0.6238, allocations: 6.434 MB / 0.5731 GB, free: 5.258 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.166e-05/0.624, allocations: 50.14 kB / 0.5731 GB, free: 5.211 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.324e-05/0.6241, allocations: 88.88 kB / 0.5732 GB, free: 5.125 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001842/0.6259, allocations: 0.7163 MB / 0.5739 GB, free: 4.395 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004162/0.6301, allocations: 1.061 MB / 0.575 GB, free: 3.332 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2407/0.8709, allocations: 11.08 MB / 0.5858 GB, free: 116 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00431/0.8752, allocations: 260.8 kB / 0.586 GB, free: 116 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007155/0.8759, allocations: 286.8 kB / 0.5863 GB, free: 116 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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 8,(2,100.0%) 17,(2,100.0%) 10} * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.003712/0.8797, allocations: 1.798 MB / 0.5881 GB, free: 115.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004416/0.8801, allocations: 284.1 kB / 0.5883 GB, free: 115.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004739/0.8849, allocations: 3.109 MB / 0.5914 GB, free: 115.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.278e-05/0.885, allocations: 39.5 kB / 0.5914 GB, free: 115.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/0.885, allocations: 6.969 kB / 0.5914 GB, free: 115.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.807e-05/0.885, allocations: 13.89 kB / 0.5914 GB, free: 115.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01244/0.8975, allocations: 8.305 MB / 0.5995 GB, free: 112 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.314e-05/0.8975, allocations: 6.375 kB / 0.5995 GB, free: 112 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001024/0.8985, allocations: 301.8 kB / 0.5998 GB, free: 112 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001163/0.8997, allocations: 0.5326 MB / 0.6004 GB, free: 111.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001051/0.8998, allocations: 44.59 kB / 0.6004 GB, free: 111.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007604/0.9074, allocations: 9.177 MB / 0.6094 GB, free: 105.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.9075, allocations: 9.219 kB / 0.6094 GB, free: 105.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006111/0.9136, allocations: 4.668 MB / 0.6139 GB, free: 103.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009546/0.9146, allocations: 363.4 kB / 0.6143 GB, free: 103 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002999/0.9149, allocations: 45.22 kB / 0.6143 GB, free: 103 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009987/0.9159, allocations: 92.69 kB / 0.6144 GB, free: 102.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002661/0.9162, allocations: 153.8 kB / 0.6145 GB, free: 102.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001315/0.9163, allocations: 62.86 kB / 0.6146 GB, free: 102.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003179/0.9195, allocations: 1.944 MB / 0.6165 GB, free: 102.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.9195, allocations: 0 / 0.6165 GB, free: 102.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004629/0.9241, allocations: 0.9082 MB / 0.6174 GB, free: 102.1 MB / 446.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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 6,(2,100.0%) 15,(2,100.0%) 6} * Non-linear torn systems: 1 {2 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004581/0.9246, allocations: 171.9 kB / 0.6176 GB, free: 101.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007628/0.9323, allocations: 4.666 MB / 0.6221 GB, free: 99.97 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/0.9323, allocations: 1.75 kB / 0.6221 GB, free: 99.97 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00244/0.9348, allocations: 1.965 MB / 0.624 GB, free: 98.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002656/0.9374, allocations: 442.4 kB / 0.6245 GB, free: 98.73 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01308/0.9505, allocations: 9.458 MB / 0.6337 GB, free: 93.67 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002668/0.9532, allocations: 2.921 MB / 0.6365 GB, free: 92.42 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003007/0.9562, allocations: 1.379 MB / 0.6379 GB, free: 92.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004451/0.9567, allocations: 207.8 kB / 0.6381 GB, free: 92.29 MB / 446.1 MB Notification: Performance of SimCode: time 8.32e-07/0.9567, allocations: 3.844 kB / 0.6381 GB, free: 92.29 MB / 446.1 MB Notification: Performance of Templates: time 0.04874/1.005, allocations: 33.3 MB / 0.6706 GB, free: 65.14 MB / 446.1 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)