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.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-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: "" <> 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.0008004/0.0008042, allocations: 84.38 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.0008305/0.0008308, 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.253/1.253, allocations: 223.2 MB / 240 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1646/0.1646, allocations: 9.117 MB / 300.2 MB, free: 2.676 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003691/0.0003691, allocations: 12 kB / 363.2 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08924/0.08964, allocations: 52.42 MB / 415.6 MB, free: 8.434 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.179/0.2687, allocations: 40.03 MB / 455.7 MB, free: 19.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01445/0.2832, allocations: 8.888 MB / 464.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005919/0.2891, allocations: 165.5 kB / 464.7 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004704/0.2939, allocations: 1.977 MB / 466.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01569/0.3096, allocations: 6.867 MB / 473.6 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001933/0.3115, allocations: 199.5 kB / 473.7 MB, free: 9.289 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00335/0.3149, allocations: 3.294 MB / 477 MB, free: 7.984 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001399/0.3163, allocations: 1.039 MB / 478.1 MB, free: 7.609 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001324/0.3177, allocations: 0.9691 MB / 479.1 MB, free: 7.258 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001796/0.3195, allocations: 1.505 MB / 480.6 MB, free: 6.746 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004288/0.3199, allocations: 157.6 kB / 480.7 MB, free: 6.746 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001479/0.3214, allocations: 0.6963 MB / 481.4 MB, free: 6.602 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001829/0.3232, allocations: 1.265 MB / 482.7 MB, free: 6.164 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00112/0.3244, allocations: 0.7418 MB / 483.4 MB, free: 5.625 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005373/0.3298, allocations: 4.18 MB / 487.6 MB, free: 4.648 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.3298, allocations: 5.438 kB / 487.6 MB, free: 4.645 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3298, allocations: 3.938 kB / 487.6 MB, free: 4.641 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001458/0.3299, allocations: 0 / 487.6 MB, free: 4.641 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.01135/0.3413, allocations: 5.016 MB / 492.6 MB, free: 2.066 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.3414, allocations: 9.781 kB / 492.6 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001159/0.3425, allocations: 0.63 MB / 493.3 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006333/0.3489, allocations: 1.879 MB / 495.1 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002922/0.3518, allocations: 1.531 MB / 496.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001507/0.352, allocations: 193.4 kB / 496.9 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004709/0.3525, allocations: 250 kB / 497.1 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01367/0.3661, allocations: 9.288 MB / 0.4945 GB, free: 8.586 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.658e-05/0.3662, allocations: 33.94 kB / 0.4946 GB, free: 8.555 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003226/0.3666, allocations: 123.8 kB / 0.4947 GB, free: 8.434 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003034/0.3696, allocations: 2.072 MB / 0.4967 GB, free: 6.359 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01487/0.3845, allocations: 8.202 MB / 0.5047 GB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03522/0.4197, allocations: 30.01 MB / 0.534 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007112/0.4269, allocations: 3.024 MB / 0.537 GB, free: 12.36 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002351/0.4293, allocations: 1.104 MB / 0.538 GB, free: 11.25 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01049/0.4398, allocations: 6.293 MB / 0.5442 GB, free: 4.309 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.425e-05/0.4399, allocations: 43.88 kB / 0.5442 GB, free: 4.258 MB / 414.1 MB Notification: Performance of pre-optimization done (n=179): time 3.706e-06/0.4399, allocations: 0 / 0.5442 GB, free: 4.258 MB / 414.1 MB Notification: Performance of matching and sorting (n=233): time 0.02736/0.4672, allocations: 8.311 MB / 0.5523 GB, free: 11.88 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.569e-05/0.4673, allocations: 73.41 kB / 0.5524 GB, free: 11.79 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004145/0.4715, allocations: 3.065 MB / 0.5554 GB, free: 8.703 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001244/0.4716, allocations: 61.69 kB / 0.5555 GB, free: 8.637 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001497/0.4731, allocations: 2.417 MB / 0.5578 GB, free: 6.188 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006719/0.4738, allocations: 0.8517 MB / 0.5587 GB, free: 5.324 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001999/0.474, allocations: 103.9 kB / 0.5588 GB, free: 5.223 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002925/0.4743, allocations: 0.5129 MB / 0.5593 GB, free: 4.703 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002444/0.4768, allocations: 1.618 MB / 0.5608 GB, free: 3.078 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003974/0.4807, allocations: 4.236 MB / 0.565 GB, free: 13.56 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003526/0.4843, allocations: 2.605 MB / 0.5675 GB, free: 10.95 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.741e-05/0.4843, allocations: 24 kB / 0.5675 GB, free: 10.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.009861/0.4942, allocations: 6.441 MB / 0.5738 GB, free: 4.465 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.746e-05/0.4943, allocations: 44.19 kB / 0.5739 GB, free: 4.422 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.552e-05/0.4944, allocations: 92 kB / 0.574 GB, free: 4.332 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001734/0.4961, allocations: 0.7301 MB / 0.5747 GB, free: 3.586 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002956/0.4991, allocations: 1.053 MB / 0.5757 GB, free: 2.531 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1999/0.699, allocations: 12.42 MB / 0.5878 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003336/0.7024, allocations: 255.9 kB / 0.5881 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000398/0.7028, allocations: 290.2 kB / 0.5884 GB, free: 114.1 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): 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.002671/0.7055, allocations: 1.793 MB / 0.5901 GB, free: 113.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003118/0.7058, allocations: 282.9 kB / 0.5904 GB, free: 113.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004281/0.7101, allocations: 3.109 MB / 0.5934 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-05/0.7102, allocations: 34.59 kB / 0.5935 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/0.7102, allocations: 6.281 kB / 0.5935 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.709e-05/0.7103, allocations: 10.12 kB / 0.5935 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01098/0.7213, allocations: 8.317 MB / 0.6016 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-05/0.7213, allocations: 3.156 kB / 0.6016 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009777/0.7223, allocations: 301.2 kB / 0.6019 GB, free: 109.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001269/0.7236, allocations: 0.5732 MB / 0.6024 GB, free: 109.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000105/0.7237, allocations: 47.14 kB / 0.6025 GB, free: 109.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008323/0.732, allocations: 10.73 MB / 0.613 GB, free: 101.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.197e-06/0.7321, allocations: 9.406 kB / 0.613 GB, free: 101.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006242/0.7383, allocations: 4.666 MB / 0.6175 GB, free: 99.65 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000948/0.7393, allocations: 373.3 kB / 0.6179 GB, free: 99.38 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003014/0.7396, allocations: 38.16 kB / 0.6179 GB, free: 99.35 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000928/0.7405, allocations: 99.08 kB / 0.618 GB, free: 99.32 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003183/0.7409, allocations: 144.9 kB / 0.6182 GB, free: 99.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001451/0.741, allocations: 70.17 kB / 0.6182 GB, free: 99.28 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003345/0.7444, allocations: 1.956 MB / 0.6201 GB, free: 98.57 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.7444, allocations: 0 / 0.6201 GB, free: 98.57 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004725/0.7491, allocations: 0.9087 MB / 0.621 GB, free: 98.45 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): 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.00696/0.7561, allocations: 5.332 MB / 0.6262 GB, free: 95.95 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007979/0.7641, allocations: 4.683 MB / 0.6308 GB, free: 93.98 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/0.7641, allocations: 1.438 kB / 0.6308 GB, free: 93.98 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002444/0.7666, allocations: 1.969 MB / 0.6327 GB, free: 92.92 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002534/0.7692, allocations: 449.5 kB / 0.6332 GB, free: 92.74 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04687/0.8161, allocations: 26.6 MB / 0.6591 GB, free: 71.84 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003663/0.8198, allocations: 2.927 MB / 0.662 GB, free: 69.48 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003359/0.8231, allocations: 1.381 MB / 0.6633 GB, free: 68.61 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002049/0.8252, allocations: 1.633 MB / 0.6649 GB, free: 67.1 MB / 446.1 MB Notification: Performance of SimCode: time 1.583e-06/0.8252, allocations: 0 / 0.6649 GB, free: 67.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08732/0.9125, allocations: 67.79 MB / 0.7311 GB, free: 316 kB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001373/0.9127, allocations: 207.2 kB / 0.7313 GB, free: 68 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.308/4.221, allocations: 0 / 0.7313 GB, free: 68 kB / 446.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/linux/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) Environment - environmentSimulation: