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.001264/0.001264, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001541/0.001541, allocations: 177.3 kB / 15.95 MB, free: 216 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.399/1.399, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1578/0.1578, allocations: 9.087 MB / 300.1 MB, free: 2.695 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003097/0.0003098, allocations: 8 kB / 363 MB, free: 13.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09666/0.09699, allocations: 52.43 MB / 415.4 MB, free: 8.555 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.2014/0.2984, allocations: 37.63 MB / 453 MB, free: 21.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0168/0.3153, allocations: 9.301 MB / 462.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006641/0.322, allocations: 167.6 kB / 462.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006342/0.3283, allocations: 1.88 MB / 464.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01463/0.343, allocations: 5.573 MB / 470 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001546/0.3446, allocations: 202.7 kB / 470.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002302/0.3469, allocations: 1.748 MB / 471.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001032/0.3479, allocations: 1.029 MB / 472.9 MB, free: 9.969 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008123/0.3488, allocations: 0.8306 MB / 473.8 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001056/0.3498, allocations: 1.173 MB / 474.9 MB, free: 9.227 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002939/0.3501, allocations: 156.6 kB / 475.1 MB, free: 9.227 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001131/0.3513, allocations: 0.6831 MB / 475.8 MB, free: 9.094 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001021/0.3523, allocations: 1.188 MB / 477 MB, free: 8.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006517/0.353, allocations: 0.7389 MB / 477.7 MB, free: 8.125 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004212/0.3572, allocations: 4.173 MB / 481.9 MB, free: 7.156 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.3572, allocations: 4 kB / 481.9 MB, free: 7.152 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3572, allocations: 0 / 481.9 MB, free: 7.152 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001492/0.3574, allocations: 0 / 481.9 MB, free: 7.152 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.01535/0.3727, allocations: 5.116 MB / 487 MB, free: 5.211 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.3728, allocations: 8.656 kB / 487 MB, free: 5.211 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01001/0.3828, allocations: 2.24 MB / 489.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005393/0.3882, allocations: 1.528 MB / 490.8 MB, free: 3.707 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002454/0.3885, allocations: 189.8 kB / 491 MB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001047/0.3896, allocations: 254 kB / 491.2 MB, free: 3.516 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01746/0.407, allocations: 9.333 MB / 0.4888 GB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001231/0.4072, allocations: 42.45 kB / 0.4889 GB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004944/0.4077, allocations: 116.8 kB / 0.489 GB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003643/0.4114, allocations: 2.072 MB / 0.491 GB, free: 11.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01758/0.429, allocations: 8.273 MB / 0.4991 GB, free: 3.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05301/0.482, allocations: 29.98 MB / 0.5283 GB, free: 5.062 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00963/0.4917, allocations: 3.028 MB / 0.5313 GB, free: 1.918 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00279/0.4945, allocations: 2.703 MB / 0.5339 GB, free: 14.78 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.638e-05/0.4946, allocations: 56.55 kB / 0.534 GB, free: 14.71 MB / 414.1 MB Notification: Performance of pre-optimization done (n=205): time 6.843e-06/0.4946, allocations: 0 / 0.534 GB, free: 14.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=259): time 0.03225/0.5269, allocations: 9.446 MB / 0.5432 GB, free: 5.102 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.074e-05/0.527, allocations: 77.41 kB / 0.5433 GB, free: 5.016 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006253/0.5333, allocations: 2.961 MB / 0.5462 GB, free: 2.043 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003937/0.5337, allocations: 65.7 kB / 0.5463 GB, free: 1.973 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002004/0.5357, allocations: 2.351 MB / 0.5485 GB, free: 15.59 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001366/0.5371, allocations: 0.9286 MB / 0.5495 GB, free: 14.65 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006358/0.5378, allocations: 100 kB / 0.5495 GB, free: 14.55 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0005979/0.5384, allocations: 0.517 MB / 0.5501 GB, free: 14.03 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003691/0.5421, allocations: 1.65 MB / 0.5517 GB, free: 12.37 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005592/0.5477, allocations: 4.245 MB / 0.5558 GB, free: 6.844 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00506/0.5528, allocations: 2.656 MB / 0.5584 GB, free: 4.188 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.434e-05/0.5529, allocations: 28 kB / 0.5584 GB, free: 4.16 MB / 430.1 MB Notification: Performance of matching and sorting (n=667) (initialization): time 0.0146/0.5675, allocations: 6.512 MB / 0.5648 GB, free: 13.62 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000103/0.5676, allocations: 45.88 kB / 0.5648 GB, free: 13.58 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001348/0.5678, allocations: 92 kB / 0.5649 GB, free: 13.49 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001967/0.5698, allocations: 0.7386 MB / 0.5656 GB, free: 12.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00372/0.5735, allocations: 1.068 MB / 0.5667 GB, free: 11.67 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2216/0.7951, allocations: 12.64 MB / 0.579 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003626/0.7988, allocations: 261.3 kB / 0.5793 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005771/0.7994, allocations: 290.1 kB / 0.5796 GB, free: 117.8 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 (591): * Single equations (assignments): 582 * 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.003147/0.8025, allocations: 1.791 MB / 0.5813 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004429/0.803, allocations: 292.7 kB / 0.5816 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004948/0.8079, allocations: 3.603 MB / 0.5851 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001302/0.8081, allocations: 39.08 kB / 0.5851 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.829e-05/0.8081, allocations: 10.84 kB / 0.5852 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.705e-05/0.8081, allocations: 13.73 kB / 0.5852 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01624/0.8244, allocations: 9.041 MB / 0.594 GB, free: 114.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.222e-05/0.8245, allocations: 7.062 kB / 0.594 GB, free: 114.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001209/0.8257, allocations: 342 kB / 0.5943 GB, free: 114.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001383/0.8271, allocations: 0.5819 MB / 0.5949 GB, free: 114.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001963/0.8273, allocations: 50.58 kB / 0.5949 GB, free: 114.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008288/0.8356, allocations: 10.95 MB / 0.6056 GB, free: 106.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/0.8356, allocations: 10.47 kB / 0.6056 GB, free: 106.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006839/0.8425, allocations: 5.697 MB / 0.6112 GB, free: 103.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009052/0.8434, allocations: 384.5 kB / 0.6116 GB, free: 103.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005941/0.844, allocations: 49.59 kB / 0.6116 GB, free: 103.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001319/0.8453, allocations: 98.42 kB / 0.6117 GB, free: 103.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002749/0.8456, allocations: 182.1 kB / 0.6119 GB, free: 103.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001216/0.8457, allocations: 74.47 kB / 0.612 GB, free: 103.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002515/0.8483, allocations: 1.908 MB / 0.6138 GB, free: 102.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.8483, allocations: 1.641 kB / 0.6138 GB, free: 102.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004121/0.8524, allocations: 0.9151 MB / 0.6147 GB, free: 102.4 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * 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 (193): * Single equations (assignments): 184 * 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.000381/0.8528, allocations: 190.9 kB / 0.6149 GB, free: 102.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006615/0.8594, allocations: 4.816 MB / 0.6196 GB, free: 100.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/0.8594, allocations: 2.422 kB / 0.6196 GB, free: 100.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002724/0.8622, allocations: 2.087 MB / 0.6216 GB, free: 99.14 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002881/0.8651, allocations: 420.6 kB / 0.622 GB, free: 99 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01559/0.8807, allocations: 9.68 MB / 0.6315 GB, free: 93.76 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004106/0.8848, allocations: 3.018 MB / 0.6344 GB, free: 92.51 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003949/0.8888, allocations: 1.442 MB / 0.6359 GB, free: 92.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007612/0.8896, allocations: 219.1 kB / 0.6361 GB, free: 92.38 MB / 446.1 MB Notification: Performance of SimCode: time 9.22e-07/0.8896, allocations: 3.938 kB / 0.6361 GB, free: 92.38 MB / 446.1 MB Notification: Performance of Templates: time 0.05524/0.9448, allocations: 33.83 MB / 0.6691 GB, free: 64.69 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)