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.001478/0.001478, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.002027/0.002027, allocations: 217.8 kB / 23.03 MB, free: 4.922 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.56/1.56, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.04907/0.04907, allocations: 9.244 MB / 322.5 MB, free: 9.832 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.003083/0.003083, allocations: 63.91 kB / 448.4 MB, free: 14.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1342, allocations: 55.48 MB / 0.4921 GB, free: 7.031 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.01308/0.1473, allocations: 9.312 MB / 0.5012 GB, free: 13.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007715/0.155, allocations: 2.856 MB / 0.504 GB, free: 10.81 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002152/0.1571, allocations: 51.81 kB / 0.504 GB, free: 10.76 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001913/0.1591, allocations: 468.8 kB / 0.5045 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007442/0.1665, allocations: 1.712 MB / 0.5062 GB, free: 8.582 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001014/0.1675, allocations: 171.8 kB / 0.5063 GB, free: 8.414 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005372/0.1729, allocations: 3.087 MB / 0.5093 GB, free: 5.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002057/0.1749, allocations: 0.9505 MB / 0.5103 GB, free: 4.348 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002406/0.1773, allocations: 1.148 MB / 0.5114 GB, free: 3.195 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003347/0.1807, allocations: 1.767 MB / 0.5131 GB, free: 1.422 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001288/0.182, allocations: 292 kB / 0.5134 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002539/0.1845, allocations: 0.8153 MB / 0.5142 GB, free: 328 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2994/0.4839, allocations: 1.523 MB / 0.5157 GB, free: 10.31 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0018/0.4857, allocations: 1.37 MB / 0.517 GB, free: 9.914 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00747/0.4932, allocations: 6.09 MB / 0.523 GB, free: 8.898 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.4932, allocations: 5.906 kB / 0.523 GB, free: 8.898 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.4932, allocations: 2.766 kB / 0.523 GB, free: 8.898 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002483/0.4934, allocations: 0 / 0.523 GB, free: 8.898 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.01437/0.5078, allocations: 4.621 MB / 0.5275 GB, free: 7.215 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.298e-05/0.5079, allocations: 9.312 kB / 0.5275 GB, free: 7.215 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002188/0.5081, allocations: 90.44 kB / 0.5276 GB, free: 7.207 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001499/0.5096, allocations: 0.6722 MB / 0.5282 GB, free: 7.133 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007822/0.5174, allocations: 1.939 MB / 0.5301 GB, free: 6.859 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004191/0.5216, allocations: 1.553 MB / 0.5316 GB, free: 6.449 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001576/0.5217, allocations: 192.5 kB / 0.5318 GB, free: 6.441 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007569/0.5225, allocations: 257.9 kB / 0.5321 GB, free: 6.434 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01884/0.5413, allocations: 9.78 MB / 0.5416 GB, free: 3.137 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001025/0.5414, allocations: 26.22 kB / 0.5416 GB, free: 3.137 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004138/0.5418, allocations: 125.9 kB / 0.5418 GB, free: 3.094 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003752/0.5456, allocations: 2.303 MB / 0.544 GB, free: 2.609 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01974/0.5653, allocations: 8.473 MB / 0.5523 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05789/0.6232, allocations: 28.83 MB / 0.5804 GB, free: 2.027 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006929/0.6302, allocations: 2.249 MB / 0.5826 GB, free: 15.79 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002035/0.6322, allocations: 0.974 MB / 0.5836 GB, free: 14.82 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009626/0.6418, allocations: 3.672 MB / 0.5872 GB, free: 11.16 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.94e-05/0.6419, allocations: 51.88 kB / 0.5872 GB, free: 11.11 MB / 430.1 MB Notification: Performance of pre-optimization done (n=159): time 5.199e-06/0.6419, allocations: 4 kB / 0.5872 GB, free: 11.1 MB / 430.1 MB Notification: Performance of matching and sorting (n=181): time 0.02065/0.6625, allocations: 8.187 MB / 0.5952 GB, free: 2.918 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.704e-05/0.6626, allocations: 64.72 kB / 0.5953 GB, free: 2.844 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005523/0.6681, allocations: 3.209 MB / 0.5984 GB, free: 15.62 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000295/0.6684, allocations: 53.7 kB / 0.5985 GB, free: 15.56 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002348/0.6707, allocations: 2.704 MB / 0.6011 GB, free: 12.87 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001014/0.6718, allocations: 0.7014 MB / 0.6018 GB, free: 12.18 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001693/0.6735, allocations: 0.9887 MB / 0.6028 GB, free: 11.18 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.6736, allocations: 305.1 kB / 0.603 GB, free: 10.88 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003076/0.6767, allocations: 1.571 MB / 0.6046 GB, free: 9.301 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005992/0.6827, allocations: 4.356 MB / 0.6088 GB, free: 3.605 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009576/0.6923, allocations: 6.384 MB / 0.6151 GB, free: 12.25 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001543/0.6924, allocations: 28 kB / 0.6151 GB, free: 12.22 MB / 462.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.01599/0.7084, allocations: 6.044 MB / 0.621 GB, free: 6.297 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002241/0.7086, allocations: 48 kB / 0.621 GB, free: 6.25 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002467/0.7089, allocations: 96 kB / 0.6211 GB, free: 6.156 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001097/0.71, allocations: 372.7 kB / 0.6215 GB, free: 5.793 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004243/0.7142, allocations: 1.096 MB / 0.6226 GB, free: 4.695 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005425/0.7196, allocations: 3.567 MB / 0.626 GB, free: 1.016 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004502/0.7241, allocations: 247 kB / 0.6263 GB, free: 0.7773 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001277/0.7254, allocations: 296 kB / 0.6266 GB, free: 500 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.005459/0.7309, allocations: 1.887 MB / 0.6284 GB, free: 14.59 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008696/0.7318, allocations: 286.1 kB / 0.6287 GB, free: 14.31 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00553/0.7373, allocations: 2.409 MB / 0.631 GB, free: 11.88 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002033/0.7375, allocations: 47.89 kB / 0.6311 GB, free: 11.84 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.751e-05/0.7375, allocations: 4 kB / 0.6311 GB, free: 11.83 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.836e-05/0.7375, allocations: 10.89 kB / 0.6311 GB, free: 11.82 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01695/0.7545, allocations: 6.48 MB / 0.6374 GB, free: 5.273 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.822e-05/0.7545, allocations: 11.92 kB / 0.6374 GB, free: 5.262 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001238/0.7557, allocations: 255.7 kB / 0.6377 GB, free: 5.012 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008053/0.7565, allocations: 248.7 kB / 0.6379 GB, free: 4.766 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001974/0.7567, allocations: 41.17 kB / 0.638 GB, free: 4.727 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003929/0.7607, allocations: 2.831 MB / 0.6407 GB, free: 1.793 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/0.7607, allocations: 4 kB / 0.6407 GB, free: 1.789 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006945/0.7676, allocations: 3.737 MB / 0.6444 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001391/0.769, allocations: 286.1 kB / 0.6446 GB, free: 13.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009325/0.7699, allocations: 34.42 kB / 0.6447 GB, free: 13.67 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001652/0.7716, allocations: 89.81 kB / 0.6448 GB, free: 13.59 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002965/0.7719, allocations: 109 kB / 0.6449 GB, free: 13.48 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000143/0.772, allocations: 58.36 kB / 0.6449 GB, free: 13.43 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0055/0.7775, allocations: 2.037 MB / 0.6469 GB, free: 11.39 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7775, allocations: 0 / 0.6469 GB, free: 11.39 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006002/0.7835, allocations: 0.8241 MB / 0.6477 GB, free: 10.56 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.007797/0.7913, allocations: 4.384 MB / 0.652 GB, free: 6.098 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008862/0.8002, allocations: 3.729 MB / 0.6556 GB, free: 2.383 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.162e-05/0.8002, allocations: 4.062 kB / 0.6556 GB, free: 2.379 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002299/0.8025, allocations: 1.135 MB / 0.6568 GB, free: 1.234 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003423/0.8059, allocations: 469.5 kB / 0.6572 GB, free: 0.793 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07526/0.8812, allocations: 34.55 MB / 0.6909 GB, free: 10.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005774/0.887, allocations: 2.453 MB / 0.6933 GB, free: 7.816 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004262/0.8912, allocations: 1.432 MB / 0.6947 GB, free: 6.379 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003499/0.8947, allocations: 1.69 MB / 0.6964 GB, free: 4.688 MB / 0.5294 GB Notification: Performance of SimCode: time 1.503e-06/0.8947, allocations: 4 kB / 0.6964 GB, free: 4.684 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3719/1.267, allocations: 56.95 MB / 0.752 GB, free: 173.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.35/23.62, allocations: 4.062 kB / 0.752 GB, free: 173.1 MB / 0.545 GB " [Timeout remaining time 636] (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: 26.548719159909524] Failed to read output from testmodel.py, exit status != 0: 23.821083253948018 23.838924711 23.341934425 Calling exit ...