Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008108/0.0008108, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008403/0.0008403, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9212/0.9212, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.0282/0.0282, allocations: 7.121 MB / 266.3 MB, free: 6.312 MB / 250.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 392.4 MB, free: 3.984 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.801e-05/1.942e-05, allocations: 2.281 kB / 392.4 MB, free: 3.98 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.006874/0.006893, allocations: 9.149 MB / 401.5 MB, free: 10.79 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00464/0.01153, allocations: 2.886 MB / 404.4 MB, free: 7.891 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009993/0.01253, allocations: 51.81 kB / 404.5 MB, free: 7.84 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009265/0.01346, allocations: 464.6 kB / 404.9 MB, free: 7.383 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002997/0.01646, allocations: 1.687 MB / 406.6 MB, free: 5.688 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003922/0.01685, allocations: 219.5 kB / 406.8 MB, free: 5.473 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002816/0.01966, allocations: 3.076 MB / 409.9 MB, free: 2.387 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001563/0.02123, allocations: 0.9872 MB / 410.9 MB, free: 1.379 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1469/0.1682, allocations: 1.681 MB / 412.6 MB, free: 16.27 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002526/0.1707, allocations: 1.503 MB / 414.1 MB, free: 16.27 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008468/0.1715, allocations: 276.5 kB / 414.3 MB, free: 16.27 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001797/0.1733, allocations: 0.8748 MB / 415.2 MB, free: 16.27 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001324/0.1747, allocations: 1.454 MB / 416.7 MB, free: 16.27 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001786/0.1764, allocations: 0.9979 MB / 417.7 MB, free: 16.27 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005755/0.1822, allocations: 5.673 MB / 423.3 MB, free: 15.54 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.1822, allocations: 1.25 kB / 423.3 MB, free: 15.54 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.013e-06/0.1822, allocations: 0 / 423.3 MB, free: 15.54 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001942/0.1824, allocations: 1.219 kB / 423.3 MB, free: 15.54 MB / 330.7 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.01283/0.1952, allocations: 5.799 MB / 429.1 MB, free: 13.24 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.628e-05/0.1953, allocations: 10.84 kB / 429.2 MB, free: 13.24 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001292/0.1966, allocations: 0.6304 MB / 429.8 MB, free: 12.84 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004052/0.2006, allocations: 1.948 MB / 431.7 MB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002931/0.2036, allocations: 1.509 MB / 433.2 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001386/0.2037, allocations: 188.9 kB / 433.4 MB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006416/0.2043, allocations: 248.6 kB / 433.7 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01121/0.2156, allocations: 9.296 MB / 443 MB, free: 4.988 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.806e-05/0.2156, allocations: 30.95 kB / 443 MB, free: 4.973 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002561/0.2159, allocations: 114.8 kB / 443.1 MB, free: 4.898 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00163/0.2175, allocations: 2.078 MB / 445.2 MB, free: 2.844 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01306/0.2306, allocations: 8.173 MB / 453.4 MB, free: 10.79 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03374/0.2643, allocations: 28.46 MB / 481.8 MB, free: 14.13 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005646/0.27, allocations: 2.598 MB / 484.4 MB, free: 11.54 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001204/0.2712, allocations: 1.033 MB / 485.5 MB, free: 10.51 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004831/0.276, allocations: 3.463 MB / 488.9 MB, free: 7.055 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.13e-05/0.276, allocations: 51.86 kB / 489 MB, free: 6.996 MB / 378.7 MB Notification: Performance of pre-optimization done (n=179): time 4.559e-06/0.276, allocations: 0 / 489 MB, free: 6.996 MB / 378.7 MB Notification: Performance of matching and sorting (n=239): time 0.01956/0.2956, allocations: 12.15 MB / 0.4894 GB, free: 10.86 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005721/0.3013, allocations: 6.511 MB / 0.4957 GB, free: 4.137 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003717/0.305, allocations: 3.216 MB / 0.4989 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003598/0.3054, allocations: 58.64 kB / 0.4989 GB, free: 0.8398 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001459/0.3069, allocations: 2.504 MB / 0.5014 GB, free: 14.34 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006468/0.3075, allocations: 0.8896 MB / 0.5022 GB, free: 13.46 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001013/0.3085, allocations: 0.9883 MB / 0.5032 GB, free: 12.47 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.975e-05/0.3086, allocations: 305.1 kB / 0.5035 GB, free: 12.17 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001944/0.3105, allocations: 1.681 MB / 0.5051 GB, free: 10.48 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003286/0.3138, allocations: 4.313 MB / 0.5093 GB, free: 4.926 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006042/0.3199, allocations: 6.486 MB / 0.5157 GB, free: 13.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.152e-05/0.3199, allocations: 24 kB / 0.5157 GB, free: 13.17 MB / 426.7 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.009524/0.3295, allocations: 6.61 MB / 0.5222 GB, free: 6.551 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.317e-05/0.3295, allocations: 44 kB / 0.5222 GB, free: 6.508 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.787e-05/0.3296, allocations: 92 kB / 0.5223 GB, free: 6.418 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001109/0.3307, allocations: 0.7079 MB / 0.523 GB, free: 5.699 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002391/0.3331, allocations: 1.068 MB / 0.524 GB, free: 4.625 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01014/0.3433, allocations: 12.97 MB / 0.5367 GB, free: 7.094 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003008/0.3463, allocations: 297.1 kB / 0.537 GB, free: 6.805 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008118/0.3471, allocations: 302.3 kB / 0.5373 GB, free: 6.512 MB / 442.7 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 (590): * Single equations (assignments): 579 * Array equations: 6 * 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%), (1,1,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.003241/0.3503, allocations: 1.788 MB / 0.539 GB, free: 4.711 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004751/0.3508, allocations: 298 kB / 0.5393 GB, free: 4.418 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00449/0.3553, allocations: 3.394 MB / 0.5426 GB, free: 0.9922 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003151/0.3584, allocations: 2.922 MB / 0.5455 GB, free: 14.05 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.38e-05/0.3584, allocations: 8.062 kB / 0.5455 GB, free: 14.05 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.589e-05/0.3585, allocations: 15.95 kB / 0.5455 GB, free: 14.03 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01315/0.3716, allocations: 9.935 MB / 0.5552 GB, free: 3.941 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.816e-06/0.3716, allocations: 4 kB / 0.5552 GB, free: 3.938 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007387/0.3724, allocations: 271.6 kB / 0.5554 GB, free: 3.672 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001054/0.3734, allocations: 0.738 MB / 0.5562 GB, free: 2.922 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001418/0.3736, allocations: 47.98 kB / 0.5562 GB, free: 2.875 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009121/0.3827, allocations: 12.85 MB / 0.5688 GB, free: 5.473 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.181/0.5637, allocations: 5.699 MB / 0.5743 GB, free: 149.9 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006272/0.57, allocations: 4.985 MB / 0.5792 GB, free: 149.5 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007936/0.5708, allocations: 296.7 kB / 0.5795 GB, free: 149.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003135/0.5711, allocations: 37.94 kB / 0.5795 GB, free: 149.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006595/0.5718, allocations: 121 kB / 0.5796 GB, free: 149.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003008/0.5721, allocations: 170.4 kB / 0.5798 GB, free: 149.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001118/0.5722, allocations: 64.38 kB / 0.5798 GB, free: 149.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003019/0.5752, allocations: 1.946 MB / 0.5817 GB, free: 149.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 6e-08/0.5752, allocations: 1.125 kB / 0.5817 GB, free: 149.4 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004377/0.5796, allocations: 0.9696 MB / 0.5827 GB, free: 149.4 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 ($STATESET2.x,$STATESET1.x[2],$STATESET1.x[1],revolute4.phi) * 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 (159): * Single equations (assignments): 150 * 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%), (3,13,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006228/0.5858, allocations: 5.648 MB / 0.5882 GB, free: 147.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005686/0.5915, allocations: 4.694 MB / 0.5928 GB, free: 145.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/0.5915, allocations: 0 / 0.5928 GB, free: 145.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002161/0.5936, allocations: 2.075 MB / 0.5948 GB, free: 144.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002027/0.5957, allocations: 476.6 kB / 0.5953 GB, free: 143.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04012/0.6358, allocations: 35.95 MB / 0.6304 GB, free: 110.9 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002444/0.6382, allocations: 2.415 MB / 0.6327 GB, free: 108.5 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002185/0.6404, allocations: 1.386 MB / 0.6341 GB, free: 107.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001682/0.6421, allocations: 1.629 MB / 0.6357 GB, free: 105.4 MB / 474.7 MB Notification: Performance of SimCode: time 1.753e-06/0.6421, allocations: 0 / 0.6357 GB, free: 105.4 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08668/0.7288, allocations: 66.06 MB / 0.7002 GB, free: 39.98 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.82, allocations: 0 / 0.7002 GB, free: 39.98 MB / 474.7 MB " [Timeout remaining time 648] (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection_fmu --startTime=0 --stopTime=6 --stepSize=0.0024 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection.fmu > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.615196612663567] Failed to read output from testmodel.py, exit status != 0: 11.943466297350824 11.94955702 11.765842542 Calling exit ...