Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008552/0.0008552, allocations: 76.06 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007622/0.0007622, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8949/0.8949, allocations: 173.4 MB / 200.4 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.903e-06/1.903e-06, allocations: 0 / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.373e-05/1.563e-05, allocations: 2.281 kB / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.007735/0.00775, allocations: 10.5 MB / 328.9 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005245/0.013, allocations: 4.02 MB / 333 MB, free: 7.766 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009334/0.01393, allocations: 79.62 kB / 333 MB, free: 7.688 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002604/0.01653, allocations: 2.83 MB / 335.9 MB, free: 4.848 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002775/0.01931, allocations: 2.095 MB / 338 MB, free: 2.742 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001002/0.02031, allocations: 0.877 MB / 338.8 MB, free: 1.863 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003558/0.02387, allocations: 5.248 MB / 344.1 MB, free: 12.6 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002653/0.02652, allocations: 3.432 MB / 347.5 MB, free: 9.117 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002218/0.02874, allocations: 2.619 MB / 350.1 MB, free: 6.492 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002119/0.03086, allocations: 2.619 MB / 352.8 MB, free: 3.867 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003967/0.03125, allocations: 360 kB / 353.1 MB, free: 3.516 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001277/0.03253, allocations: 1.24 MB / 354.4 MB, free: 2.273 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001124/0.03365, allocations: 2.263 MB / 356.6 MB, free: 4 kB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001001/0.03465, allocations: 1.437 MB / 358.1 MB, free: 14.56 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004267/0.03892, allocations: 7.627 MB / 365.7 MB, free: 6.91 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.03893, allocations: 8 kB / 365.7 MB, free: 6.902 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.03893, allocations: 0 / 365.7 MB, free: 6.902 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.258e-05/0.03898, allocations: 3.938 kB / 365.7 MB, free: 6.898 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.005165/0.04414, allocations: 5.424 MB / 371.1 MB, free: 1.414 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.04418, allocations: 8.922 kB / 371.1 MB, free: 1.406 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005786/0.04476, allocations: 0.8021 MB / 371.9 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004492/0.04925, allocations: 2.326 MB / 374.3 MB, free: 14.26 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002637/0.05189, allocations: 2.558 MB / 376.8 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001277/0.05202, allocations: 270.8 kB / 377.1 MB, free: 11.39 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005534/0.05257, allocations: 431.7 kB / 377.5 MB, free: 10.97 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01223/0.0648, allocations: 12.31 MB / 389.8 MB, free: 13.83 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.281e-05/0.06488, allocations: 51.58 kB / 389.9 MB, free: 13.78 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003188/0.0652, allocations: 179.8 kB / 390 MB, free: 13.61 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001753/0.06695, allocations: 2.158 MB / 392.2 MB, free: 11.44 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01185/0.0788, allocations: 10.21 MB / 402.4 MB, free: 1.215 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02887/0.1077, allocations: 42.75 MB / 445.2 MB, free: 5.211 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00597/0.1136, allocations: 3.949 MB / 449.1 MB, free: 1.23 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1232/0.2369, allocations: 1.617 MB / 450.7 MB, free: 118.9 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009017/0.2459, allocations: 6.672 MB / 457.4 MB, free: 116.9 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.837e-05/0.2459, allocations: 55.09 kB / 457.4 MB, free: 116.9 MB / 410.7 MB Notification: Performance of pre-optimization done (n=183): time 3.847e-06/0.2459, allocations: 0 / 457.4 MB, free: 116.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=205): time 0.02002/0.2659, allocations: 16.47 MB / 473.9 MB, free: 106.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000563/0.2665, allocations: 1.584 MB / 475.5 MB, free: 104.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003275/0.2698, allocations: 4.776 MB / 480.3 MB, free: 100.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.487e-05/0.2699, allocations: 54.45 kB / 480.3 MB, free: 100 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008557/0.2707, allocations: 3.506 MB / 483.8 MB, free: 96.64 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003265/0.271, allocations: 0.835 MB / 484.7 MB, free: 95.82 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008613/0.2719, allocations: 1.338 MB / 486 MB, free: 94.47 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.151e-05/0.2719, allocations: 305.1 kB / 486.3 MB, free: 94.17 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001958/0.2739, allocations: 2.309 MB / 488.6 MB, free: 91.86 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002731/0.2766, allocations: 6.443 MB / 495.1 MB, free: 83.38 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005382/0.282, allocations: 9.398 MB / 0.4926 GB, free: 71.94 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.322e-05/0.282, allocations: 40 kB / 0.4927 GB, free: 71.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01093/0.293, allocations: 10.16 MB / 0.5026 GB, free: 61.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.401e-05/0.293, allocations: 68 kB / 0.5027 GB, free: 61.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005182/0.2982, allocations: 3.862 MB / 0.5064 GB, free: 57.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004584/0.3028, allocations: 2.171 MB / 0.5085 GB, free: 55.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002391/0.3052, allocations: 1.591 MB / 0.5101 GB, free: 54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004706/0.3099, allocations: 6.35 MB / 0.5163 GB, free: 47.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00295/0.3128, allocations: 0.5379 MB / 0.5168 GB, free: 46.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002623/0.3131, allocations: 416 kB / 0.5172 GB, free: 46.48 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (848): * Single equations (assignments): 839 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001913/0.315, allocations: 2.217 MB / 0.5194 GB, free: 44.26 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003124/0.3153, allocations: 397.3 kB / 0.5198 GB, free: 43.87 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003084/0.3184, allocations: 3.276 MB / 0.523 GB, free: 40.57 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002562/0.321, allocations: 2.742 MB / 0.5256 GB, free: 37.81 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.321, allocations: 4 kB / 0.5256 GB, free: 37.81 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.086e-05/0.321, allocations: 10.88 kB / 0.5257 GB, free: 37.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008929/0.3299, allocations: 9.869 MB / 0.5353 GB, free: 27.69 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.024e-05/0.3299, allocations: 16.06 kB / 0.5353 GB, free: 27.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007257/0.3306, allocations: 363.5 kB / 0.5357 GB, free: 27.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001382/0.332, allocations: 0.9903 MB / 0.5366 GB, free: 26.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.552e-05/0.3321, allocations: 59.97 kB / 0.5367 GB, free: 26.26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00241/0.3345, allocations: 4.675 MB / 0.5412 GB, free: 21.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0003624/0.3349, allocations: 1.451 MB / 0.5427 GB, free: 19.79 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004399/0.3393, allocations: 5.906 MB / 0.5484 GB, free: 13.68 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004778/0.3398, allocations: 429.1 kB / 0.5488 GB, free: 13.26 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002314/0.34, allocations: 55.98 kB / 0.5489 GB, free: 13.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009738/0.341, allocations: 207.7 kB / 0.5491 GB, free: 13 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001708/0.3411, allocations: 180.3 kB / 0.5493 GB, free: 12.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.621e-05/0.3412, allocations: 75.98 kB / 0.5493 GB, free: 12.75 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002113/0.3433, allocations: 2.851 MB / 0.5521 GB, free: 9.887 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3433, allocations: 0 / 0.5521 GB, free: 9.887 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003005/0.3463, allocations: 1.304 MB / 0.5534 GB, free: 8.586 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004718/0.3511, allocations: 6.617 MB / 0.5599 GB, free: 1.758 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005993/0.357, allocations: 5.665 MB / 0.5654 GB, free: 12.09 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.082e-06/0.3571, allocations: 4 kB / 0.5654 GB, free: 12.08 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002116/0.3592, allocations: 1.953 MB / 0.5673 GB, free: 10.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001805/0.361, allocations: 0.5056 MB / 0.5678 GB, free: 9.598 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1699/0.5309, allocations: 53.45 MB / 0.62 GB, free: 140.1 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001901/0.5328, allocations: 2.923 MB / 0.6228 GB, free: 139.3 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002306/0.5351, allocations: 2.042 MB / 0.6248 GB, free: 138.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001277/0.5364, allocations: 2.113 MB / 0.6269 GB, free: 136.6 MB / 458.7 MB Notification: Performance of SimCode: time 1.492e-06/0.5364, allocations: 0 / 0.6269 GB, free: 136.6 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06629/0.6027, allocations: 78.98 MB / 0.704 GB, free: 58.61 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.85, allocations: 7.859 kB / 0.704 GB, free: 58.6 MB / 458.7 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --stepSize=0.0019992 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.563755664974451] Failed to read output from testmodel.py, exit status != 0: ['time', 'body1.frame_a.r_0[1]', 'body1.frame_a.r_0[2]', 'body1.frame_a.r_0[3]', 'body1.v_0[1]', 'body1.v_0[2]', 'body1.v_0[3]', 'body1.w_a[1]', 'body1.w_a[2]', 'body1.w_a[3]', 'p2.s', 'p2.v'] 12.975942271761596 12.983281543 12.942621333 Calling exit ...