Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.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.00157/0.00157, allocations: 118.3 kB / 19.17 MB, free: 3.898 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.001864/0.001864, allocations: 205.7 kB / 22.12 MB, free: 0.9609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.336/1.336, allocations: 207.6 MB / 232.5 MB, free: 11.52 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.001882/0.001882, allocations: 61.02 kB / 343 MB, free: 12.3 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2724, allocations: 49.13 MB / 392.1 MB, free: 8.688 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.003823/0.2762, allocations: 3.536 MB / 395.6 MB, free: 6.211 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00145/0.2776, allocations: 0.9139 MB / 396.6 MB, free: 5.547 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002012/0.2778, allocations: 15.97 kB / 396.6 MB, free: 5.539 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002051/0.2781, allocations: 77.81 kB / 396.7 MB, free: 5.492 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002527/0.2783, allocations: 152.3 kB / 396.8 MB, free: 5.379 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004295/0.2787, allocations: 157 kB / 397 MB, free: 5.289 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005604/0.2793, allocations: 0.598 MB / 397.6 MB, free: 4.988 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002497/0.2795, allocations: 140.9 kB / 397.7 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002924/0.2798, allocations: 244.3 kB / 397.9 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002857/0.2801, allocations: 279.2 kB / 398.2 MB, free: 4.668 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.476e-05/0.2802, allocations: 50.06 kB / 398.2 MB, free: 4.668 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.482e-05/0.2803, allocations: 51.62 kB / 398.3 MB, free: 4.668 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.915e-05/0.2804, allocations: 117.1 kB / 398.4 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000205/0.2806, allocations: 274.9 kB / 398.7 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005731/0.2811, allocations: 0.5938 MB / 399.3 MB, free: 4.188 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2811, allocations: 4 kB / 399.3 MB, free: 4.184 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2811, allocations: 0 / 399.3 MB, free: 4.184 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.2812, allocations: 1.406 kB / 399.3 MB, free: 4.184 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.001441/0.2826, allocations: 0.86 MB / 400.1 MB, free: 3.574 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.2826, allocations: 13.69 kB / 400.2 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.494e-05/0.2827, allocations: 12.62 kB / 400.2 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.194e-05/0.2827, allocations: 85.95 kB / 400.3 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.373e-05/0.2828, allocations: 56.27 kB / 400.3 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003856/0.2832, allocations: 329.2 kB / 400.6 MB, free: 3.188 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.221e-05/0.2833, allocations: 36 kB / 400.7 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.253e-05/0.2833, allocations: 55.2 kB / 400.7 MB, free: 3.148 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008418/0.2842, allocations: 456.9 kB / 401.2 MB, free: 2.973 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.236e-05/0.2842, allocations: 2.031 kB / 401.2 MB, free: 2.973 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.879e-05/0.2842, allocations: 19.5 kB / 401.2 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.2842, allocations: 10.84 kB / 401.2 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009767/0.2852, allocations: 463.2 kB / 401.6 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002019/0.2872, allocations: 1.375 MB / 403 MB, free: 2.039 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008484/0.2881, allocations: 0.511 MB / 403.5 MB, free: 1.82 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007503/0.2888, allocations: 340.7 kB / 403.9 MB, free: 1.719 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.009e-05/0.2889, allocations: 9.281 kB / 403.9 MB, free: 1.719 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.757e-05/0.2889, allocations: 43 kB / 403.9 MB, free: 1.672 MB / 318.1 MB Notification: Performance of pre-optimization done (n=67): time 1.894e-06/0.2889, allocations: 0 / 403.9 MB, free: 1.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=103): time 0.006671/0.2956, allocations: 3.154 MB / 407.1 MB, free: 232 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.421e-05/0.2956, allocations: 63.92 kB / 407.1 MB, free: 164 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002062/0.2958, allocations: 247.8 kB / 407.4 MB, free: 16 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.373e-05/0.2959, allocations: 49.11 kB / 407.4 MB, free: 15.96 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001538/0.296, allocations: 197.5 kB / 407.6 MB, free: 15.8 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000283/0.2963, allocations: 370.5 kB / 408 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002088/0.2965, allocations: 142.6 kB / 408.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.2967, allocations: 361.6 kB / 408.5 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000589/0.2973, allocations: 278 kB / 408.7 MB, free: 15 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006404/0.2979, allocations: 345.3 kB / 409.1 MB, free: 14.87 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001243/0.2992, allocations: 0.625 MB / 409.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2992, allocations: 0 / 409.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001493/0.3007, allocations: 0.7876 MB / 410.5 MB, free: 14.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.3007, allocations: 9.938 kB / 410.5 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.3007, allocations: 0 / 410.5 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.956e-05/0.3007, allocations: 5.344 kB / 410.5 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007832/0.3015, allocations: 214.1 kB / 410.7 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.3015, allocations: 4.062 kB / 410.7 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003509/0.3019, allocations: 41.41 kB / 410.8 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.056e-05/0.3019, allocations: 30.55 kB / 410.8 MB, free: 14.14 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (outerContactB.contact,outerContactA.contact,innerContactB.contact,innerContactA.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000255/0.3022, allocations: 195.5 kB / 411 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.3023, allocations: 58.64 kB / 411 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002031/0.3025, allocations: 81.64 kB / 411.1 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.3025, allocations: 9.031 kB / 411.1 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.985e-05/0.3025, allocations: 1.375 kB / 411.1 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.3025, allocations: 3.984 kB / 411.1 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003147/0.3056, allocations: 1.985 MB / 413.1 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.3057, allocations: 4.688 kB / 413.1 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007962/0.3065, allocations: 204.8 kB / 413.3 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.395e-05/0.3065, allocations: 12.5 kB / 413.3 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.268e-05/0.3065, allocations: 26.92 kB / 413.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-05/0.3065, allocations: 8.125 kB / 413.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.315e-06/0.3065, allocations: 9 kB / 413.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002312/0.3088, allocations: 1.373 MB / 414.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001312/0.309, allocations: 126.6 kB / 414.9 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.506e-05/0.3091, allocations: 33.61 kB / 414.9 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003893/0.3094, allocations: 43.34 kB / 414.9 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/0.3096, allocations: 81.78 kB / 415 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.742e-05/0.3096, allocations: 27.38 kB / 415.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001789/0.3098, allocations: 180.8 kB / 415.2 MB, free: 11.19 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3098, allocations: 0 / 415.2 MB, free: 11.19 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005671/0.3104, allocations: 155.3 kB / 415.4 MB, free: 11.16 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (outerContactA.s_rel,outerContactA.v_rel,outerContactB.s_rel,outerContactB.v_rel,friction.s_rel,friction.v_rel) * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002645/0.313, allocations: 1.939 MB / 417.3 MB, free: 9.754 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001431/0.3144, allocations: 0.7052 MB / 418 MB, free: 9.445 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.3144, allocations: 1.312 kB / 418 MB, free: 9.445 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000757/0.3152, allocations: 418.1 kB / 418.4 MB, free: 9.27 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000775/0.316, allocations: 131.1 kB / 418.6 MB, free: 9.188 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008042/0.324, allocations: 5.278 MB / 423.8 MB, free: 3.781 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005008/0.3245, allocations: 0.8684 MB / 424.7 MB, free: 2.883 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003219/0.3248, allocations: 72.98 kB / 424.8 MB, free: 2.809 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003116/0.3252, allocations: 199.4 kB / 425 MB, free: 2.613 MB / 334.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3252, allocations: 0 / 425 MB, free: 2.613 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03377/0.3589, allocations: 11.7 MB / 436.7 MB, free: 6.848 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.57/8.929, allocations: 4 kB / 436.7 MB, free: 6.844 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_PreLoad_fmu --startTime=0 --stopTime=100 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_PreLoad.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.137430425034836] Failed to read output from testmodel.py, exit status != 0: ['time', 'friction.v_rel', 'innerContactA.s_rel', 'innerContactB.s_rel', 'outerContactA.v_rel', 'outerContactB.s_rel', 'outerContactB.v_rel'] 9.056391345977318 9.06977747 8.785937721 Calling exit ...