Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.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.001379/0.001379, allocations: 114.8 kB / 17.16 MB, free: 5.895 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.001405/0.001405, allocations: 210.3 kB / 20.13 MB, free: 2.949 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.534/1.534, allocations: 230.6 MB / 253.5 MB, free: 15.12 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.04783/0.04783, allocations: 9.227 MB / 318.8 MB, free: 15.53 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.MeasureDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_MeasureDemo",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.MeasureDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_MeasureDemo",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.002084/0.002084, allocations: 68.41 kB / 443.2 MB, free: 39.37 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1296, allocations: 55.44 MB / 498.7 MB, free: 6.625 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.0143/0.1439, allocations: 13.83 MB / 0.5005 GB, free: 8.723 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01153/0.1554, allocations: 4.089 MB / 0.5045 GB, free: 4.621 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004337/0.1597, allocations: 59.81 kB / 0.5045 GB, free: 4.562 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001859/0.1616, allocations: 400.6 kB / 0.5049 GB, free: 4.168 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00409/0.1657, allocations: 0.9244 MB / 0.5058 GB, free: 3.238 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002507/0.1682, allocations: 0.9753 MB / 0.5068 GB, free: 2.262 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004475/0.1727, allocations: 2.216 MB / 0.509 GB, free: 40 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00372/0.1764, allocations: 2.134 MB / 0.511 GB, free: 13.83 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002235/0.1786, allocations: 1.047 MB / 0.5121 GB, free: 12.78 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002177/0.1808, allocations: 1.28 MB / 0.5133 GB, free: 11.49 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005175/0.1813, allocations: 312 kB / 0.5136 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001454/0.1828, allocations: 0.7492 MB / 0.5143 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009978/0.1838, allocations: 0.97 MB / 0.5153 GB, free: 9.465 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001894/0.1857, allocations: 1.489 MB / 0.5167 GB, free: 7.969 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005629/0.1913, allocations: 3.895 MB / 0.5205 GB, free: 4.055 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.1913, allocations: 0 / 0.5205 GB, free: 4.055 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1913, allocations: 0 / 0.5205 GB, free: 4.055 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001548/0.1915, allocations: 0 / 0.5205 GB, free: 4.055 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: 869 * Number of variables: 869 Notification: Performance of Generate backend data structure: time 0.01317/0.2046, allocations: 4.281 MB / 0.5247 GB, free: 15.71 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.96e-05/0.2047, allocations: 8.031 kB / 0.5247 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001269/0.2048, allocations: 85.88 kB / 0.5248 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006905/0.2055, allocations: 460.4 kB / 0.5253 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007626/0.2063, allocations: 306.9 kB / 0.5255 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00217/0.2084, allocations: 1.151 MB / 0.5267 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000209/0.2087, allocations: 217.6 kB / 0.5269 GB, free: 13.44 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004244/0.2091, allocations: 283.9 kB / 0.5271 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01021/0.2193, allocations: 4.74 MB / 0.5318 GB, free: 7.953 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001524/0.2194, allocations: 39.66 kB / 0.5318 GB, free: 7.914 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000333/0.2198, allocations: 132 kB / 0.5319 GB, free: 7.785 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006726/0.2204, allocations: 428.2 kB / 0.5323 GB, free: 7.363 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008757/0.2292, allocations: 3.374 MB / 0.5356 GB, free: 3.973 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02849/0.2577, allocations: 21.6 MB / 0.5567 GB, free: 13.68 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005577/0.2633, allocations: 1.874 MB / 0.5586 GB, free: 11.68 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001238/0.2645, allocations: 0.6755 MB / 0.5592 GB, free: 11 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00867/0.2732, allocations: 5.546 MB / 0.5646 GB, free: 4.934 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.388e-05/0.2732, allocations: 43.56 kB / 0.5647 GB, free: 4.883 MB / 430.1 MB Notification: Performance of pre-optimization done (n=102): time 3.055e-06/0.2732, allocations: 0 / 0.5647 GB, free: 4.883 MB / 430.1 MB Notification: Performance of matching and sorting (n=140): time 0.02519/0.2984, allocations: 9.602 MB / 0.5741 GB, free: 11.18 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.812e-05/0.2985, allocations: 76.66 kB / 0.5741 GB, free: 11.09 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002816/0.3013, allocations: 1.811 MB / 0.5759 GB, free: 9.285 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001246/0.3015, allocations: 49.7 kB / 0.5759 GB, free: 9.23 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001682/0.3031, allocations: 1.806 MB / 0.5777 GB, free: 7.406 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007235/0.3039, allocations: 0.5426 MB / 0.5782 GB, free: 6.859 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001204/0.3051, allocations: 0.7508 MB / 0.579 GB, free: 6.102 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002491/0.3053, allocations: 357.9 kB / 0.5793 GB, free: 5.746 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002142/0.3075, allocations: 1.225 MB / 0.5805 GB, free: 4.52 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00413/0.3116, allocations: 3.41 MB / 0.5838 GB, free: 28 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2672/0.5787, allocations: 5.119 MB / 0.5888 GB, free: 83.73 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.354e-05/0.5788, allocations: 23.75 kB / 0.5889 GB, free: 83.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.008079/0.5869, allocations: 4.817 MB / 0.5936 GB, free: 81.98 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.141e-05/0.5869, allocations: 38.61 kB / 0.5936 GB, free: 81.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001059/0.587, allocations: 76.59 kB / 0.5937 GB, free: 81.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001025/0.5881, allocations: 372.1 kB / 0.594 GB, free: 81.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003239/0.5913, allocations: 0.8909 MB / 0.5949 GB, free: 81.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005435/0.5967, allocations: 4.304 MB / 0.5991 GB, free: 79.24 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002711/0.5995, allocations: 211.1 kB / 0.5993 GB, free: 79.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003574/0.5998, allocations: 228.1 kB / 0.5995 GB, free: 79.15 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 352 * Number of states: 0 () * Number of discrete variables: 18 (revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[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 (464): * Single equations (assignments): 463 * Array equations: 0 * 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,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001301/0.6011, allocations: 0.9241 MB / 0.6004 GB, free: 78.65 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002924/0.6014, allocations: 205.5 kB / 0.6006 GB, free: 78.64 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003666/0.6051, allocations: 2.587 MB / 0.6031 GB, free: 77.62 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.244e-05/0.6051, allocations: 11.69 kB / 0.6032 GB, free: 77.62 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.6051, allocations: 7.812 kB / 0.6032 GB, free: 77.62 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.623e-05/0.6051, allocations: 7.5 kB / 0.6032 GB, free: 77.62 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01003/0.6151, allocations: 6.411 MB / 0.6094 GB, free: 74.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-05/0.6151, allocations: 4 kB / 0.6094 GB, free: 74.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009779/0.6161, allocations: 272 kB / 0.6097 GB, free: 74.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006089/0.6167, allocations: 265.2 kB / 0.6099 GB, free: 74.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.866e-05/0.6168, allocations: 28 kB / 0.61 GB, free: 74.06 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00321/0.62, allocations: 3.469 MB / 0.6134 GB, free: 70.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/0.62, allocations: 5.938 kB / 0.6134 GB, free: 70.49 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004237/0.6243, allocations: 3.906 MB / 0.6172 GB, free: 66.52 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006903/0.625, allocations: 252.8 kB / 0.6174 GB, free: 66.26 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002169/0.6252, allocations: 28 kB / 0.6175 GB, free: 66.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008846/0.6261, allocations: 107.8 kB / 0.6176 GB, free: 66.12 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002345/0.6263, allocations: 88.81 kB / 0.6176 GB, free: 66.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.623e-05/0.6264, allocations: 40 kB / 0.6177 GB, free: 66 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001481/0.6278, allocations: 1.088 MB / 0.6187 GB, free: 64.92 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6278, allocations: 0 / 0.6187 GB, free: 64.92 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002933/0.6308, allocations: 0.6307 MB / 0.6194 GB, free: 64.29 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * 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 (121): * Single equations (assignments): 120 * Array equations: 0 * 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,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00456/0.6353, allocations: 4.489 MB / 0.6237 GB, free: 59.73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004515/0.6399, allocations: 3.198 MB / 0.6269 GB, free: 56.53 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.6399, allocations: 0 / 0.6269 GB, free: 56.53 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001331/0.6412, allocations: 1.211 MB / 0.628 GB, free: 55.31 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001914/0.6431, allocations: 459.7 kB / 0.6285 GB, free: 54.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02702/0.6701, allocations: 24.54 MB / 0.6524 GB, free: 27.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001232/0.6714, allocations: 1.83 MB / 0.6542 GB, free: 25.54 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001778/0.6731, allocations: 0.8548 MB / 0.6551 GB, free: 24.68 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001085/0.6742, allocations: 1.058 MB / 0.6561 GB, free: 23.62 MB / 446.1 MB Notification: Performance of SimCode: time 1.132e-06/0.6742, allocations: 4 kB / 0.6561 GB, free: 23.62 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08585/0.7601, allocations: 45.88 MB / 0.7009 GB, free: 9.918 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.96/15.72, allocations: 15.38 kB / 0.7009 GB, free: 9.906 MB / 478.1 MB " [Timeout remaining time 644] (rm -f PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_MeasureDemo_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_MeasureDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.896896829013713] Failed to read output from testmodel.py, exit status != 0: 15.896122954960447 15.920076997 15.724182277 Calling exit ...