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: "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007837/0.0007838, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.004172/0.004172, allocations: 169.4 kB / 16.26 MB, free: 6.652 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.214/1.214, allocations: 223.2 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1428/0.1428, allocations: 9.093 MB / 300.5 MB, free: 2.723 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003108/0.0003108, allocations: 12 kB / 363.8 MB, free: 12.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0818/0.08212, allocations: 52.43 MB / 416.2 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.1852/0.2674, allocations: 43.01 MB / 459.2 MB, free: 16.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01696/0.2844, allocations: 9.205 MB / 468.4 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008152/0.2925, allocations: 165.7 kB / 468.6 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001188/0.2938, allocations: 376.6 kB / 469 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003199/0.297, allocations: 1.472 MB / 470.4 MB, free: 9.438 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004994/0.2975, allocations: 185.2 kB / 470.6 MB, free: 9.332 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00351/0.301, allocations: 4.076 MB / 474.7 MB, free: 7.887 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001332/0.3024, allocations: 1.051 MB / 475.8 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001247/0.3036, allocations: 0.9257 MB / 476.7 MB, free: 7.125 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001719/0.3054, allocations: 1.532 MB / 478.2 MB, free: 6.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004433/0.3058, allocations: 160.1 kB / 478.4 MB, free: 6.566 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001417/0.3072, allocations: 0.7945 MB / 479.2 MB, free: 6.379 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001105/0.3084, allocations: 1.311 MB / 480.5 MB, free: 5.914 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001471/0.3098, allocations: 1.771 MB / 482.2 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004637/0.3145, allocations: 5.145 MB / 487.4 MB, free: 3.039 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3145, allocations: 0 / 487.4 MB, free: 3.039 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3145, allocations: 4 kB / 487.4 MB, free: 3.035 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001254/0.3147, allocations: 1.094 kB / 487.4 MB, free: 3.035 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.01214/0.3268, allocations: 4.971 MB / 492.4 MB, free: 1.109 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.3269, allocations: 10.88 kB / 492.4 MB, free: 1.109 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001302/0.3282, allocations: 0.6313 MB / 493 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007092/0.3353, allocations: 1.88 MB / 494.9 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003057/0.3383, allocations: 1.574 MB / 496.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001529/0.3385, allocations: 185.8 kB / 496.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005137/0.339, allocations: 251.8 kB / 496.9 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0129/0.3519, allocations: 9.306 MB / 0.4943 GB, free: 9.055 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.773e-05/0.352, allocations: 31.56 kB / 0.4944 GB, free: 9.027 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003287/0.3524, allocations: 115.8 kB / 0.4945 GB, free: 8.914 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003123/0.3555, allocations: 2.072 MB / 0.4965 GB, free: 6.84 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01339/0.3689, allocations: 8.245 MB / 0.5045 GB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03669/0.4056, allocations: 30.03 MB / 0.5339 GB, free: 15.92 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007273/0.4129, allocations: 3.032 MB / 0.5368 GB, free: 12.77 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001571/0.4145, allocations: 1.124 MB / 0.5379 GB, free: 11.64 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006873/0.4214, allocations: 6.287 MB / 0.5441 GB, free: 4.699 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.821e-05/0.4215, allocations: 47.88 kB / 0.5441 GB, free: 4.645 MB / 414.1 MB Notification: Performance of pre-optimization done (n=179): time 2.825e-06/0.4215, allocations: 0 / 0.5441 GB, free: 4.645 MB / 414.1 MB Notification: Performance of matching and sorting (n=233): time 0.02/0.4415, allocations: 8.337 MB / 0.5523 GB, free: 12.24 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.523e-05/0.4415, allocations: 77.34 kB / 0.5523 GB, free: 12.15 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003952/0.4455, allocations: 3.077 MB / 0.5553 GB, free: 9.051 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000109/0.4456, allocations: 61.69 kB / 0.5554 GB, free: 8.984 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001503/0.4471, allocations: 2.424 MB / 0.5578 GB, free: 6.527 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006585/0.4478, allocations: 0.8401 MB / 0.5586 GB, free: 5.676 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004765/0.4483, allocations: 421 kB / 0.559 GB, free: 5.258 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.929e-05/0.4484, allocations: 305.1 kB / 0.5593 GB, free: 4.957 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002417/0.4508, allocations: 1.634 MB / 0.5609 GB, free: 3.316 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003918/0.4547, allocations: 4.26 MB / 0.565 GB, free: 13.77 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006645/0.4614, allocations: 6.379 MB / 0.5713 GB, free: 6.125 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.522e-05/0.4614, allocations: 28 kB / 0.5713 GB, free: 6.098 MB / 446.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.1614/0.6229, allocations: 6.476 MB / 0.5776 GB, free: 120.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.263e-05/0.6229, allocations: 44.27 kB / 0.5777 GB, free: 120.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001071/0.6231, allocations: 90.91 kB / 0.5777 GB, free: 120.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001774/0.6248, allocations: 0.7274 MB / 0.5785 GB, free: 120.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002963/0.6278, allocations: 1.052 MB / 0.5795 GB, free: 120.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01005/0.6379, allocations: 12.44 MB / 0.5916 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003048/0.641, allocations: 263.7 kB / 0.5919 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003186/0.6413, allocations: 286.8 kB / 0.5922 GB, free: 113.4 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): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,9,100.0%), (2,17,100.0%), (2,10,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,10)} Notification: Performance of prepare postOptimizeDAE: time 0.002323/0.6436, allocations: 1.796 MB / 0.5939 GB, free: 113.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003103/0.6439, allocations: 280.8 kB / 0.5942 GB, free: 113.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004259/0.6482, allocations: 3.129 MB / 0.5972 GB, free: 112.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.631e-05/0.6483, allocations: 42.91 kB / 0.5973 GB, free: 112.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.6483, allocations: 7.031 kB / 0.5973 GB, free: 112.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.675e-05/0.6483, allocations: 10.5 kB / 0.5973 GB, free: 112.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009958/0.6583, allocations: 8.312 MB / 0.6054 GB, free: 109 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/0.6583, allocations: 3.125 kB / 0.6054 GB, free: 109 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000982/0.6593, allocations: 303.7 kB / 0.6057 GB, free: 109 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001267/0.6606, allocations: 0.572 MB / 0.6063 GB, free: 108.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.676e-05/0.6607, allocations: 44.89 kB / 0.6063 GB, free: 108.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007598/0.6683, allocations: 10.75 MB / 0.6168 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.6683, allocations: 3.719 kB / 0.6168 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005911/0.6742, allocations: 4.693 MB / 0.6214 GB, free: 98.77 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005958/0.6749, allocations: 376.8 kB / 0.6218 GB, free: 98.48 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00029/0.6752, allocations: 38.83 kB / 0.6218 GB, free: 98.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009466/0.6761, allocations: 96.64 kB / 0.6219 GB, free: 98.43 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002426/0.6764, allocations: 152.2 kB / 0.622 GB, free: 98.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001172/0.6765, allocations: 67.61 kB / 0.6221 GB, free: 98.39 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00267/0.6792, allocations: 1.969 MB / 0.624 GB, free: 97.68 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6792, allocations: 0 / 0.624 GB, free: 97.68 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003649/0.6828, allocations: 0.9099 MB / 0.6249 GB, free: 97.56 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 (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,7,100.0%), (2,15,100.0%), (1,1,100.0%), (1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006543/0.6894, allocations: 5.349 MB / 0.6301 GB, free: 95.05 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006004/0.6954, allocations: 4.714 MB / 0.6347 GB, free: 93.05 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.6954, allocations: 0 / 0.6347 GB, free: 93.05 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001979/0.6974, allocations: 1.97 MB / 0.6367 GB, free: 91.99 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003218/0.7006, allocations: 450.7 kB / 0.6371 GB, free: 91.81 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04386/0.7445, allocations: 41.4 MB / 0.6775 GB, free: 51.38 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002454/0.747, allocations: 2.92 MB / 0.6804 GB, free: 48.43 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00285/0.7499, allocations: 1.382 MB / 0.6817 GB, free: 47.05 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001489/0.7514, allocations: 1.632 MB / 0.6833 GB, free: 45.41 MB / 446.1 MB Notification: Performance of SimCode: time 1.102e-06/0.7514, allocations: 0 / 0.6833 GB, free: 45.41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2289/0.9803, allocations: 62.46 MB / 0.7443 GB, free: 123.2 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001397/0.9805, allocations: 217.2 kB / 0.7445 GB, free: 123 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.093/4.073, allocations: 1.594 kB / 0.7445 GB, free: 123 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_KinematicLoop.fmu > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe 2>&1)