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.001973/0.001973, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.001907/0.001907, allocations: 216.4 kB / 22.25 MB, free: 5.242 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.485/1.485, allocations: 230.6 MB / 256 MB, free: 7.797 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.05264/0.05264, allocations: 9.236 MB / 321.7 MB, free: 9.852 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",fmuType="me",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.002092/0.002092, allocations: 67.91 kB / 447.7 MB, free: 14.6 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1155, allocations: 55.47 MB / 0.4913 GB, free: 7.035 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.01049/0.126, allocations: 7.653 MB / 0.4988 GB, free: 15.35 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006601/0.1326, allocations: 2.521 MB / 0.5013 GB, free: 12.82 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00103/0.1336, allocations: 43.81 kB / 0.5013 GB, free: 12.78 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008971/0.1345, allocations: 373.5 kB / 0.5017 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003269/0.1378, allocations: 1.432 MB / 0.5031 GB, free: 10.97 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004049/0.1382, allocations: 147.8 kB / 0.5032 GB, free: 10.83 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003031/0.1412, allocations: 2.518 MB / 0.5057 GB, free: 8.305 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001119/0.1423, allocations: 0.7672 MB / 0.5064 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001168/0.1435, allocations: 0.9183 MB / 0.5073 GB, free: 6.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001941/0.1454, allocations: 1.374 MB / 0.5087 GB, free: 5.211 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003711/0.1458, allocations: 236 kB / 0.5089 GB, free: 4.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001418/0.1472, allocations: 0.7684 MB / 0.5096 GB, free: 4.211 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001242/0.1485, allocations: 1.234 MB / 0.5108 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001254/0.1497, allocations: 1.102 MB / 0.5119 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.267/0.4168, allocations: 4.981 MB / 0.5168 GB, free: 11.95 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.758e-06/0.4168, allocations: 2.734 kB / 0.5168 GB, free: 11.95 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.4168, allocations: 0 / 0.5168 GB, free: 11.95 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001441/0.4169, allocations: 0.5312 kB / 0.5168 GB, free: 11.95 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.009519/0.4264, allocations: 3.919 MB / 0.5206 GB, free: 10.56 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.4265, allocations: 7.75 kB / 0.5206 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007564/0.4272, allocations: 0.5394 MB / 0.5211 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00675/0.434, allocations: 1.788 MB / 0.5229 GB, free: 10.28 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003363/0.4374, allocations: 1.324 MB / 0.5242 GB, free: 9.934 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001483/0.4375, allocations: 151.6 kB / 0.5243 GB, free: 9.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00052/0.438, allocations: 196.8 kB / 0.5245 GB, free: 9.926 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01715/0.4552, allocations: 7.967 MB / 0.5323 GB, free: 8.719 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000174/0.4553, allocations: 21.02 kB / 0.5323 GB, free: 8.715 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005666/0.4559, allocations: 90.25 kB / 0.5324 GB, free: 8.684 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003388/0.4593, allocations: 1.859 MB / 0.5342 GB, free: 8.328 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01595/0.4753, allocations: 7.147 MB / 0.5412 GB, free: 5.988 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0433/0.5186, allocations: 22.69 MB / 0.5634 GB, free: 3.215 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005895/0.5245, allocations: 1.849 MB / 0.5652 GB, free: 1.363 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00165/0.5261, allocations: 0.7735 MB / 0.5659 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008786/0.5349, allocations: 3.071 MB / 0.5689 GB, free: 13.53 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.461e-05/0.5349, allocations: 43.56 kB / 0.569 GB, free: 13.48 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 4.197e-06/0.5349, allocations: 4 kB / 0.569 GB, free: 13.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=154): time 0.01747/0.5524, allocations: 6.955 MB / 0.5758 GB, free: 6.535 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.783e-05/0.5525, allocations: 70.3 kB / 0.5758 GB, free: 6.453 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00539/0.5579, allocations: 2.758 MB / 0.5785 GB, free: 3.668 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001311/0.558, allocations: 49.7 kB / 0.5786 GB, free: 3.613 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002067/0.5601, allocations: 2.171 MB / 0.5807 GB, free: 1.449 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000754/0.5608, allocations: 0.5865 MB / 0.5813 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001512/0.5623, allocations: 0.7933 MB / 0.582 GB, free: 72 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.5625, allocations: 301.1 kB / 0.5823 GB, free: 15.77 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00285/0.5653, allocations: 1.308 MB / 0.5836 GB, free: 14.46 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004916/0.5703, allocations: 3.439 MB / 0.587 GB, free: 10.01 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007871/0.5781, allocations: 5.09 MB / 0.5919 GB, free: 4.191 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.479e-05/0.5782, allocations: 20 kB / 0.5919 GB, free: 4.172 MB / 430.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.01045/0.5887, allocations: 4.81 MB / 0.5966 GB, free: 15.62 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.164e-05/0.5888, allocations: 36 kB / 0.5967 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000136/0.5889, allocations: 76 kB / 0.5967 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005572/0.5895, allocations: 207.3 kB / 0.5969 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003152/0.5926, allocations: 0.905 MB / 0.5978 GB, free: 14.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00287/0.5955, allocations: 2.166 MB / 0.5999 GB, free: 12.13 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003148/0.5986, allocations: 211.9 kB / 0.6001 GB, free: 11.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005688/0.5992, allocations: 232 kB / 0.6004 GB, free: 11.7 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.003153/0.6024, allocations: 1.555 MB / 0.6019 GB, free: 10.13 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006018/0.603, allocations: 230.5 kB / 0.6021 GB, free: 9.902 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004436/0.6074, allocations: 1.957 MB / 0.604 GB, free: 7.934 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001124/0.6075, allocations: 23.98 kB / 0.604 GB, free: 7.91 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.557e-05/0.6075, allocations: 4.469 kB / 0.604 GB, free: 7.906 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.452e-05/0.6075, allocations: 3.984 kB / 0.604 GB, free: 7.902 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01329/0.6208, allocations: 5.147 MB / 0.6091 GB, free: 2.707 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.033e-05/0.6208, allocations: 0.6875 kB / 0.6091 GB, free: 2.707 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001045/0.6219, allocations: 239.5 kB / 0.6093 GB, free: 2.477 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000345/0.6222, allocations: 111.8 kB / 0.6094 GB, free: 2.367 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001164/0.6223, allocations: 24.66 kB / 0.6094 GB, free: 2.344 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002375/0.6247, allocations: 1.902 MB / 0.6113 GB, free: 340 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/0.6247, allocations: 4.031 kB / 0.6113 GB, free: 336 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005861/0.6306, allocations: 3.049 MB / 0.6143 GB, free: 13.24 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009903/0.6316, allocations: 226.5 kB / 0.6145 GB, free: 13.02 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005997/0.6322, allocations: 24 kB / 0.6145 GB, free: 12.99 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001144/0.6333, allocations: 79.84 kB / 0.6146 GB, free: 12.91 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002136/0.6335, allocations: 80.84 kB / 0.6147 GB, free: 12.83 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001071/0.6336, allocations: 47.67 kB / 0.6147 GB, free: 12.79 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003888/0.6375, allocations: 1.691 MB / 0.6164 GB, free: 11.08 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6375, allocations: 0 / 0.6164 GB, free: 11.08 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003802/0.6413, allocations: 0.6522 MB / 0.617 GB, free: 10.43 MB / 462.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.006355/0.6477, allocations: 3.685 MB / 0.6206 GB, free: 6.699 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006393/0.6541, allocations: 3.015 MB / 0.6235 GB, free: 3.695 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.465e-06/0.6541, allocations: 0 / 0.6235 GB, free: 3.695 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001828/0.6559, allocations: 0.923 MB / 0.6244 GB, free: 2.762 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002779/0.6587, allocations: 402.6 kB / 0.6248 GB, free: 2.387 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05998/0.7187, allocations: 27.51 MB / 0.6517 GB, free: 4.176 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005255/0.7239, allocations: 2.007 MB / 0.6537 GB, free: 2.141 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003645/0.7276, allocations: 1.198 MB / 0.6548 GB, free: 0.9414 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00265/0.7302, allocations: 1.293 MB / 0.6561 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of SimCode: time 1.473e-06/0.7302, allocations: 0 / 0.6561 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1161/0.8463, allocations: 46.95 MB / 0.7019 GB, free: 1.211 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.39/15.24, allocations: 8 kB / 0.7019 GB, free: 1.203 MB / 0.5294 GB " [Timeout remaining time 645] (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: 18.064822524785995] Failed to read output from testmodel.py, exit status != 0: 15.38192788977176 15.404220307 14.983122647 Calling exit ...