Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CraneCrab.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.001389/0.001389, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001656/0.001656, allocations: 217.9 kB / 23.04 MB, free: 5.074 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.551/1.551, allocations: 230.6 MB / 256.8 MB, free: 7.996 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.04892/0.04892, allocations: 9.252 MB / 322.5 MB, free: 10.06 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.CraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrab",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.CraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrab",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.002006/0.002006, allocations: 67.89 kB / 448.5 MB, free: 15.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1253, allocations: 55.46 MB / 0.4922 GB, free: 7.523 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.01054/0.1358, allocations: 8.4 MB / 0.5004 GB, free: 15.09 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006787/0.1426, allocations: 2.64 MB / 0.503 GB, free: 12.44 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00164/0.1443, allocations: 35.88 kB / 0.503 GB, free: 12.4 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001172/0.1454, allocations: 369.5 kB / 0.5033 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004379/0.1498, allocations: 1.444 MB / 0.5048 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005749/0.1504, allocations: 135.7 kB / 0.5049 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004507/0.1549, allocations: 2.483 MB / 0.5073 GB, free: 7.969 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00163/0.1565, allocations: 0.7377 MB / 0.508 GB, free: 7.207 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001779/0.1583, allocations: 0.9027 MB / 0.5089 GB, free: 6.301 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002228/0.1605, allocations: 1.417 MB / 0.5103 GB, free: 4.879 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005905/0.1611, allocations: 228 kB / 0.5105 GB, free: 4.656 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001916/0.163, allocations: 0.8854 MB / 0.5114 GB, free: 3.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001592/0.1646, allocations: 1.219 MB / 0.5126 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002909/0.1675, allocations: 1.53 MB / 0.5141 GB, free: 1.008 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3009/0.4684, allocations: 4.942 MB / 0.5189 GB, free: 12.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.084e-06/0.4684, allocations: 1.484 kB / 0.5189 GB, free: 12.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4684, allocations: 0 / 0.5189 GB, free: 12.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002089/0.4687, allocations: 0 / 0.5189 GB, free: 12.39 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: 1144 * Number of variables: 1144 Notification: Performance of Generate backend data structure: time 0.01167/0.4803, allocations: 3.867 MB / 0.5227 GB, free: 11.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.4804, allocations: 9.562 kB / 0.5227 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.236e-05/0.4805, allocations: 72.27 kB / 0.5227 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009056/0.4814, allocations: 0.5316 MB / 0.5233 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007478/0.4888, allocations: 1.786 MB / 0.525 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003965/0.4928, allocations: 1.292 MB / 0.5263 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001738/0.493, allocations: 149.2 kB / 0.5264 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00072/0.4937, allocations: 197.7 kB / 0.5266 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01657/0.5103, allocations: 7.913 MB / 0.5343 GB, free: 8.758 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001128/0.5104, allocations: 19.69 kB / 0.5343 GB, free: 8.758 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003431/0.5107, allocations: 91.05 kB / 0.5344 GB, free: 8.727 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003186/0.5139, allocations: 1.849 MB / 0.5362 GB, free: 8.367 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01621/0.5301, allocations: 7.122 MB / 0.5432 GB, free: 5.918 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03909/0.5692, allocations: 23.8 MB / 0.5664 GB, free: 1.355 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005381/0.5746, allocations: 1.835 MB / 0.5682 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00137/0.576, allocations: 0.7584 MB / 0.569 GB, free: 14.76 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007475/0.5835, allocations: 3.183 MB / 0.5721 GB, free: 11.6 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.509e-05/0.5835, allocations: 39.56 kB / 0.5721 GB, free: 11.55 MB / 414.1 MB Notification: Performance of pre-optimization done (n=129): time 4.348e-06/0.5835, allocations: 0.5625 kB / 0.5721 GB, free: 11.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=153): time 0.0169/0.6004, allocations: 6.883 MB / 0.5788 GB, free: 4.691 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.229e-05/0.6005, allocations: 64.72 kB / 0.5789 GB, free: 4.617 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004463/0.6049, allocations: 2.603 MB / 0.5814 GB, free: 1.984 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000241/0.6052, allocations: 49.7 kB / 0.5815 GB, free: 1.93 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001705/0.6069, allocations: 2.138 MB / 0.5836 GB, free: 15.8 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006818/0.6076, allocations: 0.5902 MB / 0.5841 GB, free: 15.21 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001142/0.6087, allocations: 0.7813 MB / 0.5849 GB, free: 14.43 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.6088, allocations: 309.1 kB / 0.5852 GB, free: 14.12 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002213/0.611, allocations: 1.276 MB / 0.5865 GB, free: 12.85 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003924/0.615, allocations: 3.372 MB / 0.5897 GB, free: 8.492 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006506/0.6215, allocations: 5.002 MB / 0.5946 GB, free: 2.773 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.061e-05/0.6215, allocations: 24.88 kB / 0.5947 GB, free: 2.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.01049/0.632, allocations: 4.828 MB / 0.5994 GB, free: 14.16 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.37e-05/0.6321, allocations: 40.25 kB / 0.5994 GB, free: 14.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.251e-05/0.6322, allocations: 72 kB / 0.5995 GB, free: 14.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009209/0.6331, allocations: 346.1 kB / 0.5998 GB, free: 13.72 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00298/0.6361, allocations: 0.8555 MB / 0.6006 GB, free: 12.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005218/0.6413, allocations: 3.539 MB / 0.6041 GB, free: 9.207 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003617/0.6449, allocations: 200 kB / 0.6043 GB, free: 9.012 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006571/0.6456, allocations: 220 kB / 0.6045 GB, free: 8.797 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 333 * 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 (463): * Single equations (assignments): 458 * 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 {(2,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00346/0.649, allocations: 1.559 MB / 0.606 GB, free: 7.23 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004645/0.6495, allocations: 230.5 kB / 0.6062 GB, free: 7.004 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00365/0.6531, allocations: 1.987 MB / 0.6082 GB, free: 5.004 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001148/0.6533, allocations: 31.97 kB / 0.6082 GB, free: 4.973 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/0.6533, allocations: 4.062 kB / 0.6082 GB, free: 4.969 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-05/0.6533, allocations: 8.5 kB / 0.6082 GB, free: 4.961 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01116/0.6644, allocations: 5.609 MB / 0.6137 GB, free: 15.27 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.28e-05/0.6645, allocations: 7.938 kB / 0.6137 GB, free: 15.27 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008453/0.6653, allocations: 210.3 kB / 0.6139 GB, free: 15.06 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000698/0.666, allocations: 237 kB / 0.6141 GB, free: 14.83 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.283e-05/0.6661, allocations: 31.98 kB / 0.6142 GB, free: 14.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003741/0.6698, allocations: 2.85 MB / 0.6169 GB, free: 11.84 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.6698, allocations: 4 kB / 0.617 GB, free: 11.84 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005474/0.6753, allocations: 3.098 MB / 0.62 GB, free: 8.688 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008699/0.6762, allocations: 230.5 kB / 0.6202 GB, free: 8.461 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003513/0.6765, allocations: 27.98 kB / 0.6202 GB, free: 8.434 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008576/0.6774, allocations: 63.92 kB / 0.6203 GB, free: 8.371 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002047/0.6776, allocations: 92.72 kB / 0.6204 GB, free: 8.281 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.6777, allocations: 51.5 kB / 0.6204 GB, free: 8.234 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003124/0.6808, allocations: 1.675 MB / 0.6221 GB, free: 6.543 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6808, allocations: 288 / 0.6221 GB, free: 6.543 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003585/0.6844, allocations: 0.6678 MB / 0.6227 GB, free: 5.875 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 4 (revolute.phi,revolute.w,damper1D.s_rel,damper1D.v_rel) * 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 (113): * Single equations (assignments): 108 * 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 {(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.005539/0.6899, allocations: 3.736 MB / 0.6264 GB, free: 2.074 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005809/0.6958, allocations: 3.038 MB / 0.6293 GB, free: 15.04 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.846e-06/0.6958, allocations: 4.062 kB / 0.6293 GB, free: 15.04 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001707/0.6975, allocations: 0.9649 MB / 0.6303 GB, free: 14.07 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002258/0.6997, allocations: 388.1 kB / 0.6306 GB, free: 13.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05085/0.7506, allocations: 27.48 MB / 0.6575 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004125/0.7547, allocations: 2.557 MB / 0.66 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003584/0.7583, allocations: 1.18 MB / 0.6611 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002551/0.7608, allocations: 1.292 MB / 0.6624 GB, free: 10.44 MB / 0.4981 GB Notification: Performance of SimCode: time 1.462e-06/0.7608, allocations: 0 / 0.6624 GB, free: 10.44 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.107/0.8678, allocations: 50.3 MB / 0.7115 GB, free: 8.426 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.96/18.83, allocations: 10.25 kB / 0.7115 GB, free: 8.418 MB / 0.545 GB " [Timeout remaining time 641] (rm -f PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CraneCrab.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_CraneCrab_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_CraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 21.94632448698394] Failed to read output from testmodel.py, exit status != 0: 19.05395264492836 19.306345246 18.835074987 Calling exit ...