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.001499/0.001499, allocations: 113.3 kB / 18.94 MB, free: 2.934 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.001556/0.001556, allocations: 214.8 kB / 22.25 MB, free: 5.082 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.587/1.587, allocations: 230.6 MB / 256 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.05268/0.05268, allocations: 9.238 MB / 321.7 MB, free: 10.05 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.CraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrab",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.002375/0.002375, allocations: 67.91 kB / 447.7 MB, free: 15.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1455, allocations: 55.47 MB / 0.4914 GB, free: 7.52 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.01146/0.157, allocations: 8.391 MB / 0.4996 GB, free: 15.09 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005546/0.1625, allocations: 2.644 MB / 0.5022 GB, free: 12.44 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004692/0.163, allocations: 35.88 kB / 0.5022 GB, free: 12.4 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009295/0.1639, allocations: 365.5 kB / 0.5026 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003078/0.167, allocations: 1.447 MB / 0.504 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003301/0.1673, allocations: 135.7 kB / 0.5041 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003205/0.1705, allocations: 2.489 MB / 0.5065 GB, free: 7.965 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009743/0.1715, allocations: 0.7454 MB / 0.5073 GB, free: 7.195 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001238/0.1728, allocations: 0.9066 MB / 0.5082 GB, free: 6.285 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001939/0.1747, allocations: 1.413 MB / 0.5095 GB, free: 4.867 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003259/0.175, allocations: 228 kB / 0.5098 GB, free: 4.645 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001569/0.1766, allocations: 0.8854 MB / 0.5106 GB, free: 3.758 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001274/0.1779, allocations: 1.215 MB / 0.5118 GB, free: 2.539 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001691/0.1796, allocations: 1.53 MB / 0.5133 GB, free: 1 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3025/0.4821, allocations: 4.943 MB / 0.5181 GB, free: 12.38 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.381e-05/0.4821, allocations: 0.6094 kB / 0.5181 GB, free: 12.38 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.717e-06/0.4821, allocations: 0 / 0.5181 GB, free: 12.38 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.505e-05/0.4821, allocations: 0 / 0.5181 GB, free: 12.38 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.008975/0.4911, allocations: 3.865 MB / 0.5219 GB, free: 11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.445e-05/0.4912, allocations: 9.406 kB / 0.5219 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008436/0.492, allocations: 0.5357 MB / 0.5224 GB, free: 10.94 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006926/0.4989, allocations: 1.785 MB / 0.5242 GB, free: 10.72 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002811/0.5017, allocations: 1.295 MB / 0.5254 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001353/0.5019, allocations: 142.6 kB / 0.5256 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005298/0.5024, allocations: 198.4 kB / 0.5258 GB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01309/0.5155, allocations: 7.912 MB / 0.5335 GB, free: 8.758 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.926e-05/0.5156, allocations: 20.12 kB / 0.5335 GB, free: 8.758 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005052/0.5161, allocations: 94.84 kB / 0.5336 GB, free: 8.727 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003017/0.5191, allocations: 1.848 MB / 0.5354 GB, free: 8.371 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01285/0.5319, allocations: 7.123 MB / 0.5424 GB, free: 5.934 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03129/0.5632, allocations: 23.79 MB / 0.5656 GB, free: 1.461 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005119/0.5684, allocations: 1.846 MB / 0.5674 GB, free: 15.65 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001202/0.5696, allocations: 0.7662 MB / 0.5682 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007028/0.5766, allocations: 3.17 MB / 0.5712 GB, free: 11.73 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.687e-05/0.5767, allocations: 51.56 kB / 0.5713 GB, free: 11.68 MB / 414.1 MB Notification: Performance of pre-optimization done (n=129): time 3.156e-06/0.5767, allocations: 2.625 kB / 0.5713 GB, free: 11.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=153): time 0.01517/0.5918, allocations: 6.869 MB / 0.578 GB, free: 4.824 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/0.5919, allocations: 64.72 kB / 0.5781 GB, free: 4.75 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004204/0.5961, allocations: 2.606 MB / 0.5806 GB, free: 2.113 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.745e-05/0.5962, allocations: 49.7 kB / 0.5807 GB, free: 2.059 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001793/0.598, allocations: 2.13 MB / 0.5827 GB, free: 15.93 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005633/0.5985, allocations: 0.5984 MB / 0.5833 GB, free: 15.34 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0013/0.5998, allocations: 0.778 MB / 0.5841 GB, free: 14.56 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.6, allocations: 305.1 kB / 0.5844 GB, free: 14.26 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002226/0.6022, allocations: 1.276 MB / 0.5856 GB, free: 12.98 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004346/0.6065, allocations: 3.376 MB / 0.5889 GB, free: 8.625 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006807/0.6134, allocations: 4.989 MB / 0.5938 GB, free: 2.918 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.304e-05/0.6134, allocations: 28 kB / 0.5938 GB, free: 2.891 MB / 430.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.008685/0.6221, allocations: 4.835 MB / 0.5985 GB, free: 14.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.968e-05/0.6221, allocations: 36 kB / 0.5986 GB, free: 14.26 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-05/0.6222, allocations: 76 kB / 0.5986 GB, free: 14.19 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001012/0.6232, allocations: 340.2 kB / 0.599 GB, free: 13.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002581/0.6258, allocations: 0.8461 MB / 0.5998 GB, free: 13.01 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005226/0.631, allocations: 3.557 MB / 0.6033 GB, free: 9.336 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002457/0.6335, allocations: 191.9 kB / 0.6035 GB, free: 9.148 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00031/0.6338, allocations: 228 kB / 0.6037 GB, free: 8.926 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.002808/0.6366, allocations: 1.562 MB / 0.6052 GB, free: 7.359 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003317/0.6369, allocations: 230.5 kB / 0.6054 GB, free: 7.133 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003629/0.6406, allocations: 1.993 MB / 0.6074 GB, free: 5.125 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-05/0.6407, allocations: 27.98 kB / 0.6074 GB, free: 5.098 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.707e-06/0.6407, allocations: 4.5 kB / 0.6074 GB, free: 5.094 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.432e-05/0.6407, allocations: 7.969 kB / 0.6074 GB, free: 5.086 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01097/0.6517, allocations: 5.605 MB / 0.6129 GB, free: 15.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.6517, allocations: 0.75 kB / 0.6129 GB, free: 15.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008711/0.6525, allocations: 212 kB / 0.6131 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000718/0.6533, allocations: 240.5 kB / 0.6133 GB, free: 14.96 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.409e-05/0.6533, allocations: 28 kB / 0.6133 GB, free: 14.93 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003898/0.6572, allocations: 2.841 MB / 0.6161 GB, free: 11.98 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.742e-06/0.6572, allocations: 8.062 kB / 0.6161 GB, free: 11.97 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004892/0.6621, allocations: 3.105 MB / 0.6191 GB, free: 8.816 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004866/0.6626, allocations: 226.5 kB / 0.6194 GB, free: 8.594 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00039/0.663, allocations: 24 kB / 0.6194 GB, free: 8.57 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000729/0.6637, allocations: 67.92 kB / 0.6195 GB, free: 8.504 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001675/0.6639, allocations: 100.2 kB / 0.6195 GB, free: 8.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.049e-05/0.664, allocations: 43.98 kB / 0.6196 GB, free: 8.367 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002909/0.6669, allocations: 1.675 MB / 0.6212 GB, free: 6.676 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6669, allocations: 3.938 kB / 0.6212 GB, free: 6.672 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003054/0.67, allocations: 0.6718 MB / 0.6219 GB, free: 6 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.005446/0.6754, allocations: 3.73 MB / 0.6255 GB, free: 2.207 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005538/0.6809, allocations: 3.039 MB / 0.6285 GB, free: 15.17 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.6809, allocations: 1.5 kB / 0.6285 GB, free: 15.17 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001608/0.6826, allocations: 0.9731 MB / 0.6294 GB, free: 14.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001858/0.6844, allocations: 384.4 kB / 0.6298 GB, free: 13.84 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04428/0.7287, allocations: 27.48 MB / 0.6566 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003369/0.7321, allocations: 2.557 MB / 0.6591 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00281/0.7349, allocations: 1.177 MB / 0.6603 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001905/0.7368, allocations: 1.296 MB / 0.6616 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of SimCode: time 1.012e-06/0.7368, allocations: 0 / 0.6616 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1289/0.8657, allocations: 50.27 MB / 0.7106 GB, free: 8.574 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.61/20.48, allocations: 4.188 kB / 0.7107 GB, free: 8.574 MB / 0.545 GB " [Timeout remaining time 639] (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: 23.584137154975906] Failed to read output from testmodel.py, exit status != 0: 20.61890240898356 20.82315881 20.338475397 Calling exit ...