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.001661/0.001661, allocations: 118.9 kB / 17.17 MB, free: 5.977 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.002018/0.002018, allocations: 211.3 kB / 20.13 MB, free: 3.035 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.572/1.572, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.04881/0.04881, allocations: 9.231 MB / 318.8 MB, free: 15.58 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PowerDistanceDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo",fmuType="cs",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.002031/0.002031, allocations: 73.92 kB / 443.2 MB, free: 39.54 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1188, allocations: 55.43 MB / 498.7 MB, free: 6.629 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.01119/0.13, allocations: 10.74 MB / 0.4975 GB, free: 11.83 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008634/0.1386, allocations: 2.996 MB / 0.5004 GB, free: 8.828 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002513/0.1411, allocations: 43.88 kB / 0.5004 GB, free: 8.785 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001593/0.1427, allocations: 472.8 kB / 0.5009 GB, free: 8.32 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005474/0.1482, allocations: 1.708 MB / 0.5026 GB, free: 6.605 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007209/0.1489, allocations: 167.8 kB / 0.5027 GB, free: 6.441 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00505/0.1539, allocations: 3.101 MB / 0.5057 GB, free: 3.336 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001745/0.1557, allocations: 0.9617 MB / 0.5067 GB, free: 2.348 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001942/0.1576, allocations: 1.148 MB / 0.5078 GB, free: 1.195 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002648/0.1603, allocations: 1.763 MB / 0.5095 GB, free: 15.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000752/0.161, allocations: 292 kB / 0.5098 GB, free: 15.14 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00191/0.1629, allocations: 0.9284 MB / 0.5107 GB, free: 14.21 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001704/0.1646, allocations: 1.527 MB / 0.5122 GB, free: 12.68 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002409/0.167, allocations: 1.934 MB / 0.5141 GB, free: 10.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008922/0.176, allocations: 6.073 MB / 0.52 GB, free: 4.633 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.176, allocations: 0 / 0.52 GB, free: 4.633 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.176, allocations: 0 / 0.52 GB, free: 4.633 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000212/0.1762, allocations: 3.938 kB / 0.52 GB, free: 4.629 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.01375/0.1899, allocations: 4.698 MB / 0.5246 GB, free: 15.86 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.81e-05/0.19, allocations: 12.03 kB / 0.5246 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001376/0.1901, allocations: 89.06 kB / 0.5247 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001209/0.1913, allocations: 0.6677 MB / 0.5254 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008308/0.1997, allocations: 1.94 MB / 0.5273 GB, free: 13.13 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003879/0.2035, allocations: 1.601 MB / 0.5288 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002139/0.2037, allocations: 200.6 kB / 0.529 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009493/0.2047, allocations: 255.8 kB / 0.5293 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01865/0.2233, allocations: 9.78 MB / 0.5388 GB, free: 0.793 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001434/0.2235, allocations: 27.75 kB / 0.5388 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005574/0.224, allocations: 119.8 kB / 0.5389 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004265/0.2283, allocations: 2.299 MB / 0.5412 GB, free: 14.35 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01862/0.2469, allocations: 8.482 MB / 0.5495 GB, free: 5.855 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04819/0.2951, allocations: 30.64 MB / 0.5794 GB, free: 6.543 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007023/0.3021, allocations: 2.704 MB / 0.582 GB, free: 3.711 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001956/0.3041, allocations: 0.9769 MB / 0.583 GB, free: 2.738 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2619/0.566, allocations: 5.829 MB / 0.5887 GB, free: 87.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/0.566, allocations: 47.78 kB / 0.5887 GB, free: 87.66 MB / 446.1 MB Notification: Performance of pre-optimization done (n=159): time 5.611e-06/0.566, allocations: 0 / 0.5887 GB, free: 87.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=181): time 0.02478/0.5908, allocations: 8.335 MB / 0.5969 GB, free: 85.05 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.948e-05/0.5909, allocations: 74.94 kB / 0.5969 GB, free: 84.99 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004906/0.5958, allocations: 3.209 MB / 0.6001 GB, free: 83.82 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002948/0.5961, allocations: 53.44 kB / 0.6001 GB, free: 83.78 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001628/0.5977, allocations: 2.699 MB / 0.6028 GB, free: 81.81 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007908/0.5985, allocations: 0.7108 MB / 0.6035 GB, free: 81.29 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001374/0.5998, allocations: 0.9884 MB / 0.6044 GB, free: 80.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.191e-05/0.5999, allocations: 302.7 kB / 0.6047 GB, free: 80.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002197/0.6021, allocations: 1.563 MB / 0.6062 GB, free: 80 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003347/0.6054, allocations: 4.359 MB / 0.6105 GB, free: 75.75 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005662/0.6111, allocations: 6.379 MB / 0.6167 GB, free: 69.31 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.28e-05/0.6112, allocations: 32 kB / 0.6168 GB, free: 69.28 MB / 446.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.009334/0.6205, allocations: 6.03 MB / 0.6226 GB, free: 63.25 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.868e-05/0.6206, allocations: 44 kB / 0.6227 GB, free: 63.21 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.131e-05/0.6206, allocations: 101.7 kB / 0.6228 GB, free: 63.11 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000826/0.6215, allocations: 380.8 kB / 0.6231 GB, free: 62.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003069/0.6245, allocations: 1.096 MB / 0.6242 GB, free: 61.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003601/0.6281, allocations: 3.692 MB / 0.6278 GB, free: 57.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003738/0.6319, allocations: 255.1 kB / 0.6281 GB, free: 57.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005171/0.6324, allocations: 288 kB / 0.6283 GB, free: 57.27 MB / 446.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.002613/0.635, allocations: 1.887 MB / 0.6302 GB, free: 55.38 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006236/0.6356, allocations: 291.1 kB / 0.6305 GB, free: 55.09 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003759/0.6394, allocations: 2.418 MB / 0.6328 GB, free: 52.66 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001708/0.6396, allocations: 39.97 kB / 0.6329 GB, free: 52.62 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.6396, allocations: 0 / 0.6329 GB, free: 52.62 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.47e-05/0.6396, allocations: 15.97 kB / 0.6329 GB, free: 52.61 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01173/0.6513, allocations: 6.855 MB / 0.6396 GB, free: 45.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.135e-05/0.6513, allocations: 8.062 kB / 0.6396 GB, free: 45.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009842/0.6523, allocations: 255.7 kB / 0.6398 GB, free: 45.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006594/0.653, allocations: 247.5 kB / 0.6401 GB, free: 45.16 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.373e-05/0.6531, allocations: 33.06 kB / 0.6401 GB, free: 45.13 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002668/0.6557, allocations: 2.948 MB / 0.643 GB, free: 42.05 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.6557, allocations: 12.06 kB / 0.643 GB, free: 42.04 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004822/0.6605, allocations: 3.744 MB / 0.6466 GB, free: 38.23 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008767/0.6614, allocations: 359.2 kB / 0.647 GB, free: 37.86 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003003/0.6617, allocations: 36.69 kB / 0.647 GB, free: 37.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009553/0.6627, allocations: 83.03 kB / 0.6471 GB, free: 37.74 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001762/0.6629, allocations: 109 kB / 0.6472 GB, free: 37.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.385e-05/0.663, allocations: 51.98 kB / 0.6472 GB, free: 37.59 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002407/0.6654, allocations: 2.037 MB / 0.6492 GB, free: 35.55 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6654, allocations: 0 / 0.6492 GB, free: 35.55 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003936/0.6693, allocations: 0.8281 MB / 0.65 GB, free: 34.72 MB / 446.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.004848/0.6741, allocations: 4.391 MB / 0.6543 GB, free: 30.26 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005226/0.6794, allocations: 3.712 MB / 0.658 GB, free: 26.56 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.313e-06/0.6794, allocations: 8 kB / 0.658 GB, free: 26.55 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00144/0.6808, allocations: 1.15 MB / 0.6591 GB, free: 25.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002139/0.683, allocations: 466.2 kB / 0.6595 GB, free: 24.96 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05086/0.7338, allocations: 34.47 MB / 0.6932 GB, free: 2.539 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003823/0.7376, allocations: 3.004 MB / 0.6961 GB, free: 15.51 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003468/0.7411, allocations: 1.436 MB / 0.6975 GB, free: 14.08 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002703/0.7438, allocations: 1.686 MB / 0.6992 GB, free: 12.39 MB / 478.1 MB Notification: Performance of SimCode: time 1.272e-06/0.7438, allocations: 0 / 0.6992 GB, free: 12.39 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1147/0.8585, allocations: 54.72 MB / 0.7526 GB, free: 5.934 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.2/22.06, allocations: 11.8 kB / 0.7526 GB, free: 5.922 MB / 0.5137 GB " [Timeout remaining time 638] (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: 25.104570706025697] Failed to read output from testmodel.py, exit status != 0: 22.23721332702553 22.264034743 22.082978587 Calling exit ...