Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.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.001357/0.001357, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 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.002264/0.002264, allocations: 212 kB / 24.47 MB, free: 3.547 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.391/1.391, allocations: 207.7 MB / 235.3 MB, free: 9.805 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.Brake,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",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.001748/0.001748, allocations: 58.58 kB / 347.2 MB, free: 9.996 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.25, allocations: 49.16 MB / 396.3 MB, free: 8.859 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002985/0.253, allocations: 2.274 MB / 398.6 MB, free: 7.328 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008734/0.2539, allocations: 494.6 kB / 399.1 MB, free: 6.996 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001137/0.254, allocations: 3.344 kB / 399.1 MB, free: 6.996 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001939/0.2542, allocations: 52.14 kB / 399.2 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000153/0.2543, allocations: 89.98 kB / 399.2 MB, free: 6.902 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000438/0.2548, allocations: 192.1 kB / 399.4 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003946/0.2552, allocations: 492.8 kB / 399.9 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001271/0.2553, allocations: 61.56 kB / 400 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002106/0.2555, allocations: 215 kB / 400.2 MB, free: 6.465 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002748/0.2558, allocations: 228.1 kB / 400.4 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.97e-05/0.2558, allocations: 38.25 kB / 400.4 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001714/0.256, allocations: 89.47 kB / 400.5 MB, free: 6.359 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001004/0.2561, allocations: 103.7 kB / 400.6 MB, free: 6.293 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001333/0.2562, allocations: 155 kB / 400.8 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000482/0.2567, allocations: 464.7 kB / 401.2 MB, free: 6.035 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.2567, allocations: 4.641 kB / 401.2 MB, free: 6.031 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2567, allocations: 0 / 401.2 MB, free: 6.031 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.2567, allocations: 1.188 kB / 401.2 MB, free: 6.031 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.001049/0.2578, allocations: 0.5989 MB / 401.8 MB, free: 5.602 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.2578, allocations: 13.86 kB / 401.9 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.709e-05/0.2579, allocations: 62.2 kB / 401.9 MB, free: 5.543 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.223e-05/0.258, allocations: 37.7 kB / 402 MB, free: 5.523 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003294/0.2583, allocations: 231.6 kB / 402.2 MB, free: 5.332 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.223e-05/0.2583, allocations: 25.06 kB / 402.2 MB, free: 5.316 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.13e-05/0.2584, allocations: 35.08 kB / 402.2 MB, free: 5.301 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006385/0.259, allocations: 384.4 kB / 402.6 MB, free: 5.148 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.259, allocations: 5.578 kB / 402.6 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.577e-05/0.2591, allocations: 10.34 kB / 402.6 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.2591, allocations: 6.844 kB / 402.6 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000679/0.2598, allocations: 400 kB / 403 MB, free: 5.023 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001701/0.2615, allocations: 0.9837 MB / 404 MB, free: 4.398 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004487/0.2619, allocations: 275.8 kB / 404.3 MB, free: 4.289 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000314/0.2622, allocations: 189.4 kB / 404.5 MB, free: 4.211 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.57e-05/0.2623, allocations: 5.812 kB / 404.5 MB, free: 4.211 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.999e-05/0.2623, allocations: 41.05 kB / 404.5 MB, free: 4.164 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 2.054e-06/0.2623, allocations: 0 / 404.5 MB, free: 4.164 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.003937/0.2662, allocations: 1.735 MB / 406.2 MB, free: 3.387 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.342e-05/0.2663, allocations: 55.66 kB / 406.3 MB, free: 3.324 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002049/0.2665, allocations: 242.9 kB / 406.5 MB, free: 3.172 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.031e-05/0.2665, allocations: 44.14 kB / 406.6 MB, free: 3.129 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.523e-05/0.2666, allocations: 151.9 kB / 406.7 MB, free: 2.996 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001042/0.2667, allocations: 159.6 kB / 406.9 MB, free: 2.875 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001465/0.2668, allocations: 95.88 kB / 407 MB, free: 2.824 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.617e-05/0.2669, allocations: 345.9 kB / 407.3 MB, free: 2.492 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003619/0.2672, allocations: 212.4 kB / 407.5 MB, free: 2.418 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003858/0.2676, allocations: 283.1 kB / 407.8 MB, free: 2.27 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005435/0.2682, allocations: 374.8 kB / 408.2 MB, free: 2.078 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2682, allocations: 1.625 kB / 408.2 MB, free: 2.078 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001294/0.2695, allocations: 0.6887 MB / 408.9 MB, free: 1.801 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.2695, allocations: 6.594 kB / 408.9 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.2695, allocations: 2.062 kB / 408.9 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008057/0.2703, allocations: 493.6 kB / 409.3 MB, free: 1.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002841/0.2706, allocations: 81.84 kB / 409.4 MB, free: 1.645 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009626/0.2715, allocations: 1.387 MB / 410.8 MB, free: 476 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004135/0.2719, allocations: 69.91 kB / 410.9 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.221e-05/0.272, allocations: 19.03 kB / 410.9 MB, free: 460 kB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake1.mode,$PRE.brake1.mode,brake1.locked,brake1.startBackward,$PRE.brake1.startBackward,brake1.startForward,$PRE.brake1.startForward,brake1.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001559/0.2721, allocations: 164.6 kB / 411.1 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.023e-05/0.2722, allocations: 33.97 kB / 411.1 MB, free: 288 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.194e-05/0.2723, allocations: 48.25 kB / 411.1 MB, free: 248 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.752e-06/0.2723, allocations: 9.625 kB / 411.1 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.2723, allocations: 0 / 411.1 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.2723, allocations: 2.25 kB / 411.2 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002786/0.2751, allocations: 1.274 MB / 412.4 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.728e-06/0.2751, allocations: 2.344 kB / 412.4 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002799/0.2754, allocations: 66.94 kB / 412.5 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007521/0.2762, allocations: 456.7 kB / 412.9 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.821e-05/0.2762, allocations: 21.31 kB / 413 MB, free: 15.13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001418/0.2776, allocations: 1.339 MB / 414.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.2776, allocations: 1.062 kB / 414.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001853/0.2795, allocations: 0.9415 MB / 415.2 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002121/0.2797, allocations: 74.03 kB / 415.3 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.428e-05/0.2798, allocations: 22.72 kB / 415.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002931/0.2801, allocations: 39.64 kB / 415.4 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001753/0.2802, allocations: 86.73 kB / 415.5 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.887e-05/0.2803, allocations: 19.67 kB / 415.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001624/0.2804, allocations: 166.8 kB / 415.6 MB, free: 13.1 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2804, allocations: 0 / 415.6 MB, free: 13.1 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00049/0.2809, allocations: 116 kB / 415.8 MB, free: 13.07 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002346/0.2833, allocations: 1.502 MB / 417.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00101/0.2843, allocations: 487.9 kB / 417.7 MB, free: 11.76 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.2843, allocations: 1.688 kB / 417.7 MB, free: 11.76 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005729/0.2849, allocations: 292.1 kB / 418 MB, free: 11.62 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004707/0.2853, allocations: 53.61 kB / 418.1 MB, free: 11.59 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006908/0.2923, allocations: 4.14 MB / 422.2 MB, free: 8.516 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001819/0.2924, allocations: 169.8 kB / 422.4 MB, free: 8.32 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001444/0.2926, allocations: 38.95 kB / 422.4 MB, free: 8.285 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001499/0.2927, allocations: 91.39 kB / 422.5 MB, free: 8.195 MB / 334.1 MB Notification: Performance of SimCode: time 7.32e-07/0.2927, allocations: 0 / 422.5 MB, free: 8.195 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07927/0.372, allocations: 10.9 MB / 433.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.03/13.4, allocations: 4.062 kB / 433.4 MB, free: 13.21 MB / 350.1 MB " [Timeout remaining time 646] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.206866116728634]