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.001351/0.001351, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001443/0.001443, allocations: 214.1 kB / 23.03 MB, free: 4.922 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.545/1.545, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.0495/0.0495, allocations: 9.234 MB / 322.5 MB, free: 9.844 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.002069/0.002069, allocations: 63.91 kB / 448.4 MB, free: 14.58 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1373, allocations: 55.46 MB / 0.4921 GB, free: 7.035 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.01079/0.148, allocations: 7.304 MB / 0.4992 GB, free: 15.7 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006442/0.1545, allocations: 2.492 MB / 0.5017 GB, free: 13.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001368/0.1559, allocations: 35.88 kB / 0.5017 GB, free: 13.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00105/0.1569, allocations: 373.5 kB / 0.5021 GB, free: 12.79 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004391/0.1613, allocations: 1.444 MB / 0.5035 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005604/0.1619, allocations: 119.8 kB / 0.5036 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004232/0.1661, allocations: 2.49 MB / 0.506 GB, free: 8.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001425/0.1675, allocations: 0.7455 MB / 0.5067 GB, free: 7.961 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001847/0.1694, allocations: 0.9027 MB / 0.5076 GB, free: 7.055 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002561/0.1719, allocations: 1.413 MB / 0.509 GB, free: 5.637 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006184/0.1725, allocations: 228 kB / 0.5092 GB, free: 5.414 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001808/0.1743, allocations: 0.7723 MB / 0.51 GB, free: 4.641 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001565/0.1759, allocations: 1.219 MB / 0.5112 GB, free: 3.418 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001847/0.1778, allocations: 1.079 MB / 0.5122 GB, free: 2.332 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2908/0.4686, allocations: 4.95 MB / 0.5171 GB, free: 12.47 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.724e-06/0.4686, allocations: 0.9688 kB / 0.5171 GB, free: 12.47 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.4686, allocations: 0 / 0.5171 GB, free: 12.47 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001715/0.4687, allocations: 0 / 0.5171 GB, free: 12.47 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.01138/0.4801, allocations: 3.867 MB / 0.5208 GB, free: 11.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.4802, allocations: 10.41 kB / 0.5208 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001184/0.4803, allocations: 71.2 kB / 0.5209 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007982/0.4811, allocations: 0.536 MB / 0.5214 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007126/0.4882, allocations: 1.784 MB / 0.5232 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004778/0.493, allocations: 1.305 MB / 0.5244 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002534/0.4933, allocations: 147 kB / 0.5246 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00112/0.4944, allocations: 199.1 kB / 0.5248 GB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01535/0.5097, allocations: 7.908 MB / 0.5325 GB, free: 8.988 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.951e-05/0.5098, allocations: 22.31 kB / 0.5325 GB, free: 8.988 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003408/0.5102, allocations: 93.56 kB / 0.5326 GB, free: 8.957 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00326/0.5134, allocations: 1.849 MB / 0.5344 GB, free: 8.605 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01536/0.5288, allocations: 7.121 MB / 0.5414 GB, free: 6.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0395/0.5683, allocations: 22.46 MB / 0.5633 GB, free: 3.938 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00555/0.5738, allocations: 1.844 MB / 0.5651 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00139/0.5752, allocations: 0.7637 MB / 0.5658 GB, free: 1.332 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007207/0.5824, allocations: 2.935 MB / 0.5687 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.547e-05/0.5825, allocations: 45.42 kB / 0.5688 GB, free: 14.36 MB / 414.1 MB Notification: Performance of pre-optimization done (n=129): time 5.019e-06/0.5825, allocations: 0 / 0.5688 GB, free: 14.36 MB / 414.1 MB Notification: Performance of matching and sorting (n=153): time 0.01649/0.599, allocations: 6.866 MB / 0.5755 GB, free: 7.512 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.756e-05/0.599, allocations: 72.72 kB / 0.5755 GB, free: 7.426 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004424/0.6035, allocations: 2.606 MB / 0.5781 GB, free: 4.789 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001842/0.6036, allocations: 49.7 kB / 0.5781 GB, free: 4.734 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001784/0.6054, allocations: 2.134 MB / 0.5802 GB, free: 2.609 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007409/0.6062, allocations: 0.594 MB / 0.5808 GB, free: 2.023 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001219/0.6074, allocations: 0.7746 MB / 0.5815 GB, free: 1.242 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.6075, allocations: 303.8 kB / 0.5818 GB, free: 0.9453 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00239/0.6099, allocations: 1.276 MB / 0.5831 GB, free: 15.67 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004094/0.614, allocations: 3.379 MB / 0.5864 GB, free: 11.3 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006866/0.6209, allocations: 4.996 MB / 0.5913 GB, free: 5.594 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.227e-05/0.6209, allocations: 23.75 kB / 0.5913 GB, free: 5.574 MB / 430.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.009929/0.6309, allocations: 4.84 MB / 0.596 GB, free: 0.9688 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.523e-05/0.6309, allocations: 36 kB / 0.596 GB, free: 0.9336 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000106/0.631, allocations: 72 kB / 0.5961 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009103/0.632, allocations: 344.9 kB / 0.5964 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002895/0.6348, allocations: 0.8499 MB / 0.5973 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004953/0.6398, allocations: 3.513 MB / 0.6007 GB, free: 12.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003187/0.643, allocations: 198.1 kB / 0.6009 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005428/0.6435, allocations: 220 kB / 0.6011 GB, free: 11.64 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.002939/0.6465, allocations: 1.56 MB / 0.6026 GB, free: 10.07 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004779/0.6469, allocations: 230.5 kB / 0.6028 GB, free: 9.848 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003931/0.6509, allocations: 1.993 MB / 0.6048 GB, free: 7.84 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000127/0.651, allocations: 31.97 kB / 0.6048 GB, free: 7.809 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.744e-05/0.651, allocations: 8.062 kB / 0.6048 GB, free: 7.801 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.672e-05/0.651, allocations: 3.984 kB / 0.6048 GB, free: 7.797 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01519/0.6662, allocations: 5.319 MB / 0.61 GB, free: 2.414 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.859e-05/0.6663, allocations: 7.828 kB / 0.61 GB, free: 2.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009573/0.6672, allocations: 199.8 kB / 0.6102 GB, free: 2.215 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007809/0.668, allocations: 244.5 kB / 0.6105 GB, free: 1.973 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001545/0.6682, allocations: 36.48 kB / 0.6105 GB, free: 1.941 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003942/0.6721, allocations: 2.811 MB / 0.6132 GB, free: 15.02 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/0.6721, allocations: 4 kB / 0.6132 GB, free: 15.02 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006168/0.6783, allocations: 3.094 MB / 0.6163 GB, free: 11.86 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009017/0.6792, allocations: 231.1 kB / 0.6165 GB, free: 11.64 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006414/0.6798, allocations: 30.11 kB / 0.6165 GB, free: 11.61 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/0.6809, allocations: 67.92 kB / 0.6166 GB, free: 11.54 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002233/0.6811, allocations: 96.7 kB / 0.6167 GB, free: 11.45 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001225/0.6812, allocations: 42.62 kB / 0.6167 GB, free: 11.41 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003061/0.6843, allocations: 1.679 MB / 0.6183 GB, free: 9.715 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6843, allocations: 0 / 0.6183 GB, free: 9.715 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003455/0.6877, allocations: 0.6678 MB / 0.619 GB, free: 9.047 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.005515/0.6932, allocations: 3.738 MB / 0.6227 GB, free: 5.25 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006146/0.6994, allocations: 3.035 MB / 0.6256 GB, free: 2.219 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/0.6994, allocations: 8.062 kB / 0.6256 GB, free: 2.211 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001715/0.7011, allocations: 0.961 MB / 0.6266 GB, free: 1.238 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002578/0.7037, allocations: 393.1 kB / 0.6269 GB, free: 0.8672 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04825/0.7519, allocations: 27.48 MB / 0.6538 GB, free: 2.68 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003081/0.755, allocations: 1.998 MB / 0.6557 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002914/0.7579, allocations: 1.179 MB / 0.6569 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002087/0.76, allocations: 1.288 MB / 0.6581 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of SimCode: time 2.555e-06/0.76, allocations: 4 kB / 0.6581 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1043/0.8643, allocations: 49.07 MB / 0.7061 GB, free: 13.64 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.38/19.24, allocations: 11.19 kB / 0.7061 GB, free: 13.63 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: 22.32110412302427] Failed to read output from testmodel.py, exit status != 0: 19.43634559295606 19.641786321 18.980179423 Calling exit ...