Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.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.001291/0.001291, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 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.001457/0.001457, allocations: 210.5 kB / 22.24 MB, free: 5.262 MB / 14.72 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 1.444/1.444, allocations: 230.6 MB / 256 MB, free: 7.738 MB / 206.1 MB " [Timeout remaining time 178] 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.04961/0.04961, allocations: 9.241 MB / 321.7 MB, free: 9.793 MB / 254.1 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.PowerDistanceDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PowerDistanceDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PlanarMechanics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002105/0.002105, allocations: 67.89 kB / 447.7 MB, free: 14.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1076, allocations: 55.47 MB / 0.4913 GB, free: 6.961 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.01226/0.1198, allocations: 9.362 MB / 0.5005 GB, free: 13.56 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007305/0.1271, allocations: 2.864 MB / 0.5033 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001837/0.129, allocations: 47.81 kB / 0.5033 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00116/0.1301, allocations: 464.8 kB / 0.5038 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004541/0.1347, allocations: 1.72 MB / 0.5055 GB, free: 8.457 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006775/0.1353, allocations: 171.8 kB / 0.5056 GB, free: 8.289 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004684/0.14, allocations: 3.067 MB / 0.5086 GB, free: 5.215 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001513/0.1415, allocations: 0.9504 MB / 0.5095 GB, free: 4.238 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001925/0.1435, allocations: 1.148 MB / 0.5107 GB, free: 3.086 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002378/0.1458, allocations: 1.685 MB / 0.5123 GB, free: 1.395 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005659/0.1464, allocations: 295.9 kB / 0.5126 GB, free: 1.105 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001589/0.148, allocations: 0.8114 MB / 0.5134 GB, free: 300 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2234/0.3714, allocations: 1.52 MB / 0.5149 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001777/0.3731, allocations: 1.369 MB / 0.5162 GB, free: 9.977 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006613/0.3797, allocations: 6.089 MB / 0.5221 GB, free: 8.961 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.411e-06/0.3798, allocations: 2.531 kB / 0.5222 GB, free: 8.961 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3798, allocations: 0.5312 kB / 0.5222 GB, free: 8.961 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001994/0.38, allocations: 0 / 0.5222 GB, free: 8.961 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1467 * Number of variables: 1467 Notification: Performance of Generate backend data structure: time 0.0139/0.3939, allocations: 4.627 MB / 0.5267 GB, free: 7.277 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.009e-05/0.3939, allocations: 9.625 kB / 0.5267 GB, free: 7.277 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001518/0.3954, allocations: 0.6724 MB / 0.5273 GB, free: 7.203 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008039/0.4035, allocations: 1.942 MB / 0.5292 GB, free: 6.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005094/0.4086, allocations: 1.553 MB / 0.5307 GB, free: 6.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001728/0.4087, allocations: 188.3 kB / 0.5309 GB, free: 6.512 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009946/0.4097, allocations: 258.1 kB / 0.5312 GB, free: 6.504 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01833/0.4281, allocations: 9.789 MB / 0.5407 GB, free: 3.141 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001303/0.4282, allocations: 23.12 kB / 0.5408 GB, free: 3.141 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004913/0.4287, allocations: 119 kB / 0.5409 GB, free: 3.102 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003925/0.4326, allocations: 2.3 MB / 0.5431 GB, free: 2.594 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01719/0.4498, allocations: 8.468 MB / 0.5514 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04802/0.4978, allocations: 28.82 MB / 0.5795 GB, free: 2.137 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006679/0.5045, allocations: 2.247 MB / 0.5817 GB, free: 15.9 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002059/0.5066, allocations: 0.974 MB / 0.5827 GB, free: 14.93 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009281/0.5158, allocations: 3.678 MB / 0.5863 GB, free: 11.27 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.689e-05/0.5159, allocations: 47.88 kB / 0.5863 GB, free: 11.21 MB / 430.1 MB Notification: Performance of pre-optimization done (n=159): time 6.512e-06/0.5159, allocations: 0.6562 kB / 0.5863 GB, free: 11.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=181): time 0.01873/0.5346, allocations: 8.181 MB / 0.5943 GB, free: 3.031 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.474e-05/0.5347, allocations: 64.72 kB / 0.5944 GB, free: 2.957 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004989/0.5397, allocations: 3.381 MB / 0.5977 GB, free: 15.56 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001848/0.5399, allocations: 51.97 kB / 0.5977 GB, free: 15.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002109/0.542, allocations: 2.71 MB / 0.6004 GB, free: 12.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007689/0.5427, allocations: 0.7007 MB / 0.601 GB, free: 12.11 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001488/0.5442, allocations: 0.9877 MB / 0.602 GB, free: 11.12 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.5444, allocations: 305.1 kB / 0.6023 GB, free: 10.82 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002944/0.5473, allocations: 1.567 MB / 0.6038 GB, free: 9.242 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00541/0.5527, allocations: 4.364 MB / 0.6081 GB, free: 3.539 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009058/0.5618, allocations: 6.378 MB / 0.6143 GB, free: 12.19 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.323e-05/0.5618, allocations: 28 kB / 0.6144 GB, free: 12.16 MB / 462.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.01211/0.574, allocations: 6.04 MB / 0.6202 GB, free: 6.215 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.2e-05/0.574, allocations: 44 kB / 0.6203 GB, free: 6.172 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001189/0.5741, allocations: 106.5 kB / 0.6204 GB, free: 6.07 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00093/0.5751, allocations: 371.7 kB / 0.6207 GB, free: 5.707 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003355/0.5784, allocations: 1.1 MB / 0.6218 GB, free: 4.605 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004965/0.5834, allocations: 3.565 MB / 0.6253 GB, free: 0.9336 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004037/0.5874, allocations: 243.8 kB / 0.6255 GB, free: 0.6953 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005796/0.588, allocations: 295.6 kB / 0.6258 GB, free: 420 kB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 446 * Number of states: 0 () * Number of discrete variables: 30 (distance.arrowColor[3],distance.arrowColor[2],distance.arrowColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (597): * Single equations (assignments): 591 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003713/0.5917, allocations: 1.892 MB / 0.6277 GB, free: 14.51 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004592/0.5922, allocations: 282.1 kB / 0.6279 GB, free: 14.23 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004479/0.5967, allocations: 2.413 MB / 0.6303 GB, free: 11.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001864/0.5969, allocations: 51.89 kB / 0.6303 GB, free: 11.75 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.5969, allocations: 0 / 0.6303 GB, free: 11.75 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.557e-05/0.5969, allocations: 7.969 kB / 0.6303 GB, free: 11.75 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01262/0.6095, allocations: 6.483 MB / 0.6367 GB, free: 5.195 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.32e-05/0.6095, allocations: 8.531 kB / 0.6367 GB, free: 5.188 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001105/0.6106, allocations: 263.6 kB / 0.6369 GB, free: 4.93 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007067/0.6113, allocations: 244.5 kB / 0.6372 GB, free: 4.688 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001053/0.6114, allocations: 43.92 kB / 0.6372 GB, free: 4.645 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003772/0.6152, allocations: 2.825 MB / 0.64 GB, free: 1.715 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.6152, allocations: 4 kB / 0.64 GB, free: 1.711 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00638/0.6216, allocations: 3.738 MB / 0.6436 GB, free: 13.91 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008566/0.6224, allocations: 282.1 kB / 0.6439 GB, free: 13.63 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003307/0.6228, allocations: 37.39 kB / 0.6439 GB, free: 13.59 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009969/0.6238, allocations: 79.91 kB / 0.644 GB, free: 13.52 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002231/0.624, allocations: 113 kB / 0.6441 GB, free: 13.41 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001206/0.6241, allocations: 55.03 kB / 0.6442 GB, free: 13.36 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003535/0.6276, allocations: 2.041 MB / 0.6462 GB, free: 11.31 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6276, allocations: 0 / 0.6462 GB, free: 11.31 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003728/0.6314, allocations: 0.8241 MB / 0.647 GB, free: 10.49 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (143): * Single equations (assignments): 137 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006563/0.6379, allocations: 4.394 MB / 0.6513 GB, free: 6.016 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006743/0.6447, allocations: 3.719 MB / 0.6549 GB, free: 2.305 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/0.6447, allocations: 4 kB / 0.6549 GB, free: 2.301 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001953/0.6466, allocations: 1.144 MB / 0.656 GB, free: 1.148 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002196/0.6488, allocations: 464.6 kB / 0.6565 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05573/0.7046, allocations: 34.54 MB / 0.6902 GB, free: 10.23 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003703/0.7083, allocations: 2.46 MB / 0.6926 GB, free: 7.742 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003636/0.7119, allocations: 1.432 MB / 0.694 GB, free: 6.305 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002476/0.7144, allocations: 1.686 MB / 0.6956 GB, free: 4.617 MB / 0.5294 GB Notification: Performance of SimCode: time 1.192e-06/0.7144, allocations: 3.938 kB / 0.6956 GB, free: 4.613 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2981/1.012, allocations: 55.16 MB / 0.7495 GB, free: 174.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.31/16.32, allocations: 4.016 kB / 0.7495 GB, free: 174.8 MB / 0.545 GB " [Timeout remaining time 644] (rm -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo_fmu --startTime=0 --stopTime=6 --stepSize=0.0024 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.882345124613494] Failed to read output from testmodel.py, exit status != 0: 16.472362011205405 16.484675587999998 16.10217022 Calling exit ...