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.001291/0.001291, allocations: 117.4 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.001358/0.001358, 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.561/1.561, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.05483/0.05483, allocations: 9.227 MB / 318.8 MB, free: 15.52 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.002018/0.002018, allocations: 72.59 kB / 443.2 MB, free: 39.32 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1102, allocations: 55.43 MB / 498.7 MB, free: 6.598 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.007995/0.1182, allocations: 8.354 MB / 0.4952 GB, free: 14.2 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006317/0.1245, allocations: 2.636 MB / 0.4977 GB, free: 11.56 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001262/0.1258, allocations: 39.81 kB / 0.4978 GB, free: 11.52 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001157/0.127, allocations: 369.5 kB / 0.4981 GB, free: 11.16 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004634/0.1316, allocations: 1.432 MB / 0.4995 GB, free: 9.719 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004644/0.1321, allocations: 131.8 kB / 0.4996 GB, free: 9.59 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004259/0.1363, allocations: 2.482 MB / 0.5021 GB, free: 7.102 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001573/0.1379, allocations: 0.7526 MB / 0.5028 GB, free: 6.32 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001465/0.1394, allocations: 0.9027 MB / 0.5037 GB, free: 5.414 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002318/0.1417, allocations: 1.421 MB / 0.5051 GB, free: 3.988 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005495/0.1422, allocations: 228 kB / 0.5053 GB, free: 3.766 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001734/0.144, allocations: 0.8815 MB / 0.5061 GB, free: 2.883 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001311/0.1453, allocations: 1.219 MB / 0.5073 GB, free: 1.66 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001707/0.147, allocations: 1.534 MB / 0.5088 GB, free: 120 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006416/0.1534, allocations: 4.945 MB / 0.5137 GB, free: 11.15 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.1534, allocations: 0 / 0.5137 GB, free: 11.15 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1534, allocations: 0 / 0.5137 GB, free: 11.15 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001173/0.1535, allocations: 7.938 kB / 0.5137 GB, free: 11.14 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.01077/0.1643, allocations: 3.938 MB / 0.5175 GB, free: 7.137 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.298e-05/0.1643, allocations: 8.031 kB / 0.5175 GB, free: 7.129 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.284e-05/0.1644, allocations: 71.92 kB / 0.5176 GB, free: 7.059 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007594/0.1652, allocations: 0.5307 MB / 0.5181 GB, free: 6.516 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007194/0.1724, allocations: 1.785 MB / 0.5199 GB, free: 4.723 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003384/0.1758, allocations: 1.357 MB / 0.5212 GB, free: 3.324 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001715/0.1759, allocations: 151.7 kB / 0.5213 GB, free: 3.176 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000564/0.1765, allocations: 199.8 kB / 0.5215 GB, free: 2.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01298/0.1895, allocations: 7.902 MB / 0.5292 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.565e-05/0.1895, allocations: 27.81 kB / 0.5293 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002979/0.1898, allocations: 91.86 kB / 0.5293 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003458/0.1933, allocations: 1.852 MB / 0.5312 GB, free: 8.754 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01513/0.2084, allocations: 7.114 MB / 0.5381 GB, free: 1.629 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03635/0.2448, allocations: 23.87 MB / 0.5614 GB, free: 9.281 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005465/0.2503, allocations: 2.302 MB / 0.5637 GB, free: 6.859 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001332/0.2516, allocations: 0.7657 MB / 0.5644 GB, free: 6.094 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007167/0.2588, allocations: 4.597 MB / 0.5689 GB, free: 1.109 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.84e-05/0.2588, allocations: 39.56 kB / 0.5689 GB, free: 1.062 MB / 430.1 MB Notification: Performance of pre-optimization done (n=129): time 3.065e-06/0.2588, allocations: 3.938 kB / 0.5689 GB, free: 1.059 MB / 430.1 MB Notification: Performance of matching and sorting (n=153): time 0.01534/0.2741, allocations: 7.106 MB / 0.5759 GB, free: 9.871 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.11e-05/0.2742, allocations: 72.66 kB / 0.5759 GB, free: 9.785 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004863/0.2791, allocations: 2.604 MB / 0.5785 GB, free: 7.148 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002608/0.2793, allocations: 49.64 kB / 0.5785 GB, free: 7.094 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001911/0.2813, allocations: 2.141 MB / 0.5806 GB, free: 4.93 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007389/0.282, allocations: 0.5851 MB / 0.5812 GB, free: 4.34 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001272/0.2833, allocations: 0.7746 MB / 0.582 GB, free: 3.559 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001941/0.2835, allocations: 305.1 kB / 0.5822 GB, free: 3.258 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002476/0.2859, allocations: 1.276 MB / 0.5835 GB, free: 1.98 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2744/0.5603, allocations: 3.37 MB / 0.5868 GB, free: 86.19 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006854/0.5672, allocations: 5.012 MB / 0.5917 GB, free: 82.82 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001189/0.5673, allocations: 19.34 kB / 0.5917 GB, free: 82.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.01031/0.5776, allocations: 4.823 MB / 0.5964 GB, free: 81.09 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.337e-05/0.5777, allocations: 38.28 kB / 0.5964 GB, free: 81.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001473/0.5778, allocations: 73.61 kB / 0.5965 GB, free: 81.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001063/0.5789, allocations: 342.3 kB / 0.5968 GB, free: 81.04 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003179/0.5821, allocations: 0.8531 MB / 0.5977 GB, free: 80.94 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004735/0.5868, allocations: 3.648 MB / 0.6012 GB, free: 78.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002852/0.5897, allocations: 198.3 kB / 0.6014 GB, free: 78.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004187/0.5901, allocations: 231.1 kB / 0.6016 GB, free: 78.52 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.001959/0.592, allocations: 1.543 MB / 0.6031 GB, free: 77.78 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002922/0.5923, allocations: 232.5 kB / 0.6034 GB, free: 77.78 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002889/0.5952, allocations: 1.996 MB / 0.6053 GB, free: 77.04 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.861e-05/0.5953, allocations: 30.7 kB / 0.6054 GB, free: 77.03 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.5953, allocations: 4.938 kB / 0.6054 GB, free: 77.03 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.309e-05/0.5953, allocations: 7.359 kB / 0.6054 GB, free: 77.03 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00721/0.6025, allocations: 5.653 MB / 0.6109 GB, free: 74.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.837e-06/0.6026, allocations: 4 kB / 0.6109 GB, free: 74.72 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00074/0.6033, allocations: 198.1 kB / 0.6111 GB, free: 74.56 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006181/0.6039, allocations: 240.7 kB / 0.6113 GB, free: 74.38 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.856e-05/0.604, allocations: 29.95 kB / 0.6113 GB, free: 74.35 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002648/0.6066, allocations: 2.945 MB / 0.6142 GB, free: 71.59 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.6066, allocations: 4 kB / 0.6142 GB, free: 71.58 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003598/0.6102, allocations: 3.098 MB / 0.6172 GB, free: 68.53 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005025/0.6107, allocations: 307.6 kB / 0.6175 GB, free: 68.21 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002242/0.611, allocations: 28.92 kB / 0.6176 GB, free: 68.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007265/0.6117, allocations: 63.53 kB / 0.6176 GB, free: 68.12 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001519/0.6118, allocations: 93.78 kB / 0.6177 GB, free: 68.03 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-05/0.6119, allocations: 45.42 kB / 0.6178 GB, free: 67.99 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001966/0.6139, allocations: 1.683 MB / 0.6194 GB, free: 66.29 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6139, allocations: 0 / 0.6194 GB, free: 66.29 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002772/0.6166, allocations: 0.6646 MB / 0.62 GB, free: 65.63 MB / 446.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.003906/0.6206, allocations: 3.726 MB / 0.6237 GB, free: 61.86 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004557/0.6251, allocations: 3.037 MB / 0.6266 GB, free: 58.84 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.064e-06/0.6251, allocations: 0 / 0.6266 GB, free: 58.84 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001256/0.6264, allocations: 0.9693 MB / 0.6276 GB, free: 57.85 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00184/0.6282, allocations: 404.5 kB / 0.628 GB, free: 57.49 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03216/0.6604, allocations: 27.4 MB / 0.6547 GB, free: 27.38 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002046/0.6624, allocations: 2.557 MB / 0.6572 GB, free: 24.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002196/0.6646, allocations: 1.174 MB / 0.6584 GB, free: 23.63 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001187/0.6658, allocations: 1.296 MB / 0.6597 GB, free: 22.33 MB / 446.1 MB Notification: Performance of SimCode: time 7.62e-07/0.6658, allocations: 0 / 0.6597 GB, free: 22.33 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09075/0.7566, allocations: 47.11 MB / 0.7057 GB, free: 7.434 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.23/16.98, allocations: 4.062 kB / 0.7057 GB, free: 7.43 MB / 478.1 MB " [Timeout remaining time 643] (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: 19.959675891965162] Failed to read output from testmodel.py, exit status != 0: 17.16277892002836 17.186940142 17.029056224 Calling exit ...