Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.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.001787/0.001787, allocations: 120 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.001602/0.001602, allocations: 214.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.608/1.608, 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.047/0.047, allocations: 9.227 MB / 318.8 MB, free: 15.54 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.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",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.002133/0.002133, allocations: 69 kB / 443.2 MB, free: 39.4 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1059, allocations: 55.43 MB / 498.7 MB, free: 6.613 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.009025/0.1149, allocations: 8.69 MB / 0.4955 GB, free: 13.88 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006712/0.1216, allocations: 2.647 MB / 0.4981 GB, free: 11.22 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00144/0.1231, allocations: 43.88 kB / 0.4981 GB, free: 11.18 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001463/0.1245, allocations: 385.4 kB / 0.4985 GB, free: 10.8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004194/0.1287, allocations: 1.436 MB / 0.4999 GB, free: 9.355 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006041/0.1293, allocations: 135.8 kB / 0.5 GB, free: 9.223 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004381/0.1337, allocations: 2.522 MB / 0.5025 GB, free: 6.695 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001566/0.1353, allocations: 0.7864 MB / 0.5032 GB, free: 5.883 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001593/0.1369, allocations: 0.9183 MB / 0.5041 GB, free: 4.961 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002289/0.1392, allocations: 1.432 MB / 0.5055 GB, free: 3.523 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006121/0.1398, allocations: 236 kB / 0.5058 GB, free: 3.293 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001866/0.1416, allocations: 0.8893 MB / 0.5066 GB, free: 2.402 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001526/0.1432, allocations: 1.227 MB / 0.5078 GB, free: 1.172 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00222/0.1454, allocations: 1.553 MB / 0.5093 GB, free: 15.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006569/0.1519, allocations: 4.98 MB / 0.5142 GB, free: 10.61 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1519, allocations: 0 / 0.5142 GB, free: 10.61 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1519, allocations: 4 kB / 0.5142 GB, free: 10.6 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000166/0.1521, allocations: 0 / 0.5142 GB, free: 10.6 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: 1155 * Number of variables: 1155 Notification: Performance of Generate backend data structure: time 0.01148/0.1636, allocations: 3.989 MB / 0.5181 GB, free: 6.543 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.1636, allocations: 12.03 kB / 0.5181 GB, free: 6.531 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001035/0.1637, allocations: 75.94 kB / 0.5182 GB, free: 6.457 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001614/0.1654, allocations: 0.5388 MB / 0.5187 GB, free: 5.906 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007482/0.1728, allocations: 1.793 MB / 0.5205 GB, free: 4.105 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003115/0.176, allocations: 1.363 MB / 0.5218 GB, free: 2.699 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002007/0.1762, allocations: 155.8 kB / 0.5219 GB, free: 2.547 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008656/0.177, allocations: 203.8 kB / 0.5221 GB, free: 2.348 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01503/0.192, allocations: 7.959 MB / 0.5299 GB, free: 10.03 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.336e-05/0.1921, allocations: 27.81 kB / 0.5299 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006071/0.1927, allocations: 95.86 kB / 0.53 GB, free: 9.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00367/0.1964, allocations: 1.852 MB / 0.5318 GB, free: 8.055 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01828/0.2147, allocations: 7.16 MB / 0.5388 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04203/0.2567, allocations: 24.11 MB / 0.5624 GB, free: 8.297 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00598/0.2627, allocations: 2.303 MB / 0.5646 GB, free: 5.871 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001587/0.2643, allocations: 0.7773 MB / 0.5654 GB, free: 5.094 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008458/0.2728, allocations: 4.742 MB / 0.57 GB, free: 15.96 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.897e-05/0.2728, allocations: 47.56 kB / 0.57 GB, free: 15.91 MB / 446.1 MB Notification: Performance of pre-optimization done (n=128): time 3.827e-06/0.2728, allocations: 0 / 0.57 GB, free: 15.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=154): time 0.01787/0.2907, allocations: 7.112 MB / 0.577 GB, free: 8.73 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.504e-05/0.2907, allocations: 64.72 kB / 0.5771 GB, free: 8.652 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005445/0.2962, allocations: 2.634 MB / 0.5796 GB, free: 5.988 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001981/0.2964, allocations: 41.7 kB / 0.5797 GB, free: 5.941 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002045/0.2984, allocations: 2.169 MB / 0.5818 GB, free: 3.75 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009894/0.2994, allocations: 0.5968 MB / 0.5824 GB, free: 3.148 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001815/0.3012, allocations: 0.7864 MB / 0.5831 GB, free: 2.352 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.3014, allocations: 301.1 kB / 0.5834 GB, free: 2.055 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002905/0.3043, allocations: 1.308 MB / 0.5847 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2632/0.5675, allocations: 3.44 MB / 0.5881 GB, free: 86.66 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007159/0.5746, allocations: 5.086 MB / 0.593 GB, free: 83.31 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001558/0.5748, allocations: 21.03 kB / 0.593 GB, free: 83.31 MB / 446.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.01063/0.5854, allocations: 4.812 MB / 0.5977 GB, free: 81.59 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.127e-05/0.5855, allocations: 36.44 kB / 0.5978 GB, free: 81.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000129/0.5856, allocations: 74.06 kB / 0.5978 GB, free: 81.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000684/0.5863, allocations: 214.8 kB / 0.5981 GB, free: 81.55 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002782/0.5891, allocations: 0.8983 MB / 0.5989 GB, free: 81.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001949/0.5911, allocations: 2.338 MB / 0.6012 GB, free: 79.58 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002605/0.5937, allocations: 216.7 kB / 0.6014 GB, free: 79.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00036/0.594, allocations: 231.1 kB / 0.6016 GB, free: 79.49 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 338 * Number of states: 0 () * Number of discrete variables: 15 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (478): * Single equations (assignments): 473 * Array equations: 4 * 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 {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001707/0.5957, allocations: 1.557 MB / 0.6032 GB, free: 78.75 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002763/0.596, allocations: 231.5 kB / 0.6034 GB, free: 78.75 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002859/0.5989, allocations: 1.95 MB / 0.6053 GB, free: 78.02 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.336e-05/0.599, allocations: 27.36 kB / 0.6053 GB, free: 78.02 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.599, allocations: 0 / 0.6053 GB, free: 78.02 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.227e-05/0.599, allocations: 7.453 kB / 0.6053 GB, free: 78.02 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007029/0.606, allocations: 5.576 MB / 0.6108 GB, free: 75.85 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.153e-06/0.606, allocations: 5.031 kB / 0.6108 GB, free: 75.85 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008796/0.6069, allocations: 237.6 kB / 0.611 GB, free: 75.66 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002571/0.6071, allocations: 105.9 kB / 0.6111 GB, free: 75.58 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.349e-05/0.6072, allocations: 24 kB / 0.6111 GB, free: 75.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001269/0.6085, allocations: 2.067 MB / 0.6131 GB, free: 73.48 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.6085, allocations: 4.031 kB / 0.6131 GB, free: 73.48 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003613/0.6121, allocations: 3.041 MB / 0.6161 GB, free: 70.82 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000617/0.6127, allocations: 312.2 kB / 0.6164 GB, free: 70.52 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002478/0.613, allocations: 27.98 kB / 0.6164 GB, free: 70.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008219/0.6138, allocations: 71.91 kB / 0.6165 GB, free: 70.43 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002065/0.614, allocations: 87.34 kB / 0.6166 GB, free: 70.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-05/0.6141, allocations: 40.62 kB / 0.6166 GB, free: 70.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002285/0.6164, allocations: 1.687 MB / 0.6183 GB, free: 68.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6164, allocations: 4 kB / 0.6183 GB, free: 68.59 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003316/0.6197, allocations: 0.6611 MB / 0.6189 GB, free: 67.94 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (revolute.phi,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 (124): * Single equations (assignments): 119 * Array equations: 4 * 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 {(1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004241/0.6239, allocations: 3.672 MB / 0.6225 GB, free: 64.22 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004795/0.6287, allocations: 3.013 MB / 0.6255 GB, free: 61.22 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.6287, allocations: 1.5 kB / 0.6255 GB, free: 61.22 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001206/0.6299, allocations: 0.9337 MB / 0.6264 GB, free: 60.27 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00185/0.6318, allocations: 388.3 kB / 0.6267 GB, free: 59.91 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03616/0.6679, allocations: 27.45 MB / 0.6535 GB, free: 29.75 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002134/0.6701, allocations: 2.564 MB / 0.656 GB, free: 27.17 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002358/0.6724, allocations: 1.206 MB / 0.6572 GB, free: 25.96 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001288/0.6737, allocations: 1.296 MB / 0.6585 GB, free: 24.66 MB / 446.1 MB Notification: Performance of SimCode: time 1.312e-06/0.6737, allocations: 0 / 0.6585 GB, free: 24.66 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08523/0.7589, allocations: 46.51 MB / 0.7039 GB, free: 10.37 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.34/17.1, allocations: 11.92 kB / 0.7039 GB, free: 10.36 MB / 478.1 MB " [Timeout remaining time 643] (rm -f PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.286967594001908] Failed to read output from testmodel.py, exit status != 0: 17.278048136038706 17.295450283 17.140396702 Calling exit ...