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.000787/0.000787, 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.0008223/0.0008223, allocations: 165.9 kB / 22.45 MB, free: 2.113 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.8819/0.8819, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.02724/0.02724, allocations: 7.116 MB / 266.3 MB, free: 6.316 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.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: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 392.4 MB, free: 3.992 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.636e-05/1.795e-05, allocations: 2.281 kB / 392.4 MB, free: 3.988 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.007291/0.007309, allocations: 9.349 MB / 401.7 MB, free: 10.59 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004518/0.01183, allocations: 2.878 MB / 404.6 MB, free: 7.703 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009138/0.01274, allocations: 47.81 kB / 404.7 MB, free: 7.656 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007205/0.01346, allocations: 468.7 kB / 405.1 MB, free: 7.195 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002565/0.01603, allocations: 1.761 MB / 406.9 MB, free: 5.426 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002558/0.01628, allocations: 179.6 kB / 407.1 MB, free: 5.25 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001984/0.01827, allocations: 3.161 MB / 410.2 MB, free: 2.082 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007133/0.01898, allocations: 0.9618 MB / 411.2 MB, free: 1.098 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.162/0.181, allocations: 1.725 MB / 412.9 MB, free: 16.18 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00227/0.1833, allocations: 1.614 MB / 414.5 MB, free: 16.18 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004434/0.1837, allocations: 291.3 kB / 414.8 MB, free: 16.18 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001223/0.185, allocations: 0.8882 MB / 415.7 MB, free: 16.18 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009849/0.1859, allocations: 1.571 MB / 417.3 MB, free: 16.18 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00091/0.1869, allocations: 1.037 MB / 418.3 MB, free: 16.18 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005038/0.1919, allocations: 6.04 MB / 424.3 MB, free: 15.19 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1919, allocations: 2.344 kB / 424.3 MB, free: 15.19 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1919, allocations: 1.375 kB / 424.3 MB, free: 15.19 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.766e-05/0.192, allocations: 0 / 424.3 MB, free: 15.19 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: 1467 * Number of variables: 1467 Notification: Performance of Generate backend data structure: time 0.007326/0.1993, allocations: 4.609 MB / 429 MB, free: 12.89 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.1994, allocations: 13.53 kB / 429 MB, free: 12.89 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005519/0.1999, allocations: 0.6705 MB / 429.6 MB, free: 12.6 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003905/0.2038, allocations: 2.025 MB / 431.7 MB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001955/0.2058, allocations: 1.53 MB / 433.2 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.777e-05/0.2059, allocations: 192.5 kB / 433.4 MB, free: 10.72 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003184/0.2062, allocations: 259.3 kB / 433.6 MB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007417/0.2136, allocations: 9.749 MB / 443.4 MB, free: 4.777 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.357e-05/0.2136, allocations: 31.8 kB / 443.4 MB, free: 4.758 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002392/0.2139, allocations: 120.4 kB / 443.5 MB, free: 4.684 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001704/0.2156, allocations: 2.306 MB / 445.8 MB, free: 2.402 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008938/0.2245, allocations: 8.395 MB / 454.2 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02479/0.2493, allocations: 28.76 MB / 483 MB, free: 13.19 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003588/0.2529, allocations: 2.31 MB / 485.3 MB, free: 10.89 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009983/0.2539, allocations: 0.9544 MB / 486.3 MB, free: 9.938 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004706/0.2586, allocations: 3.675 MB / 489.9 MB, free: 6.277 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.688e-05/0.2586, allocations: 47.88 kB / 490 MB, free: 6.223 MB / 378.7 MB Notification: Performance of pre-optimization done (n=159): time 3.517e-06/0.2586, allocations: 0 / 490 MB, free: 6.223 MB / 378.7 MB Notification: Performance of matching and sorting (n=181): time 0.01023/0.2689, allocations: 8.142 MB / 498.1 MB, free: 14.08 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.147e-05/0.2689, allocations: 72.72 kB / 498.2 MB, free: 14 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003095/0.272, allocations: 3.342 MB / 0.4898 GB, free: 10.64 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002278/0.2722, allocations: 56.98 kB / 0.4898 GB, free: 10.58 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001084/0.2733, allocations: 2.677 MB / 0.4924 GB, free: 7.914 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003302/0.2736, allocations: 0.6969 MB / 0.4931 GB, free: 7.227 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008753/0.2745, allocations: 0.9722 MB / 0.4941 GB, free: 6.246 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.885e-05/0.2746, allocations: 305.1 kB / 0.4944 GB, free: 5.945 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001561/0.2762, allocations: 1.551 MB / 0.4959 GB, free: 4.391 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002958/0.2791, allocations: 4.34 MB / 0.5001 GB, free: 14.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004702/0.2838, allocations: 6.334 MB / 0.5063 GB, free: 7.016 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.883e-05/0.2839, allocations: 31.94 kB / 0.5063 GB, free: 6.984 MB / 410.7 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.006107/0.29, allocations: 5.989 MB / 0.5122 GB, free: 1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.43e-05/0.29, allocations: 48 kB / 0.5122 GB, free: 0.9531 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.526e-05/0.2901, allocations: 96 kB / 0.5123 GB, free: 0.8594 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004923/0.2905, allocations: 359.6 kB / 0.5127 GB, free: 0.5078 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001692/0.2922, allocations: 1.096 MB / 0.5137 GB, free: 15.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003136/0.2954, allocations: 3.544 MB / 0.5172 GB, free: 11.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001835/0.2972, allocations: 256 kB / 0.5174 GB, free: 11.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002621/0.2975, allocations: 299 kB / 0.5177 GB, free: 11.21 MB / 426.7 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.002562/0.3, allocations: 1.889 MB / 0.5196 GB, free: 9.309 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000234/0.3003, allocations: 286.1 kB / 0.5198 GB, free: 9.027 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002532/0.3028, allocations: 2.36 MB / 0.5221 GB, free: 6.656 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.705e-05/0.3029, allocations: 42.62 kB / 0.5222 GB, free: 6.617 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.3029, allocations: 4 kB / 0.5222 GB, free: 6.613 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.585e-05/0.3029, allocations: 11.91 kB / 0.5222 GB, free: 6.602 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007415/0.3103, allocations: 6.422 MB / 0.5285 GB, free: 100 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.3103, allocations: 0 / 0.5285 GB, free: 100 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005581/0.3109, allocations: 271.7 kB / 0.5287 GB, free: 15.83 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003393/0.3112, allocations: 216.4 kB / 0.5289 GB, free: 15.62 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.423e-05/0.3113, allocations: 39.98 kB / 0.529 GB, free: 15.58 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002185/0.3135, allocations: 2.809 MB / 0.5317 GB, free: 12.66 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.3135, allocations: 11.94 kB / 0.5317 GB, free: 12.65 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00324/0.3167, allocations: 3.656 MB / 0.5353 GB, free: 8.926 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003393/0.3171, allocations: 286.1 kB / 0.5356 GB, free: 8.645 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002/0.3173, allocations: 33.25 kB / 0.5356 GB, free: 8.613 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005113/0.3178, allocations: 79.91 kB / 0.5357 GB, free: 8.535 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001291/0.3179, allocations: 115.7 kB / 0.5358 GB, free: 8.426 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.707e-05/0.318, allocations: 55.98 kB / 0.5358 GB, free: 8.371 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002023/0.32, allocations: 2.021 MB / 0.5378 GB, free: 6.348 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.32, allocations: 0 / 0.5378 GB, free: 6.348 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002307/0.3223, allocations: 0.8241 MB / 0.5386 GB, free: 5.523 MB / 442.7 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.003665/0.326, allocations: 4.31 MB / 0.5428 GB, free: 1.145 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004106/0.3301, allocations: 3.672 MB / 0.5464 GB, free: 13.48 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3301, allocations: 192 / 0.5464 GB, free: 13.48 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001016/0.3311, allocations: 1.117 MB / 0.5475 GB, free: 12.35 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001274/0.3324, allocations: 465.6 kB / 0.548 GB, free: 11.9 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03162/0.364, allocations: 34.13 MB / 0.5813 GB, free: 5.812 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002407/0.3664, allocations: 2.455 MB / 0.5837 GB, free: 3.32 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002079/0.3685, allocations: 1.432 MB / 0.5851 GB, free: 1.883 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001416/0.3699, allocations: 1.687 MB / 0.5867 GB, free: 200 kB / 490.7 MB Notification: Performance of SimCode: time 1.052e-06/0.3699, allocations: 0 / 0.5867 GB, free: 200 kB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2116/0.5814, allocations: 54.96 MB / 0.6404 GB, free: 134.8 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.477/10.06, allocations: 8 kB / 0.6404 GB, free: 134.8 MB / 490.7 MB " [Timeout remaining time 650] (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 sys.exit(0), Time elapsed: 11.803600236773491] Failed to read output from testmodel.py, exit status != 0: 10.17309494316578 10.178722672 9.985526719 Calling exit ...