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.005367/0.005367, allocations: 111 kB / 21.97 MB, free: 5.25 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.001426/0.001426, allocations: 202.5 kB / 25.27 MB, free: 3.238 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.375/1.375, allocations: 207.6 MB / 236 MB, free: 9.984 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake",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.001714/0.001714, allocations: 58.58 kB / 348 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.2506, allocations: 49.15 MB / 397.1 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003142/0.2537, allocations: 2.451 MB / 399.6 MB, free: 7.273 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001051/0.2548, allocations: 0.5009 MB / 400.1 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000155/0.2549, allocations: 7.969 kB / 400.1 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002261/0.2552, allocations: 47.8 kB / 400.1 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001464/0.2553, allocations: 86.17 kB / 400.2 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004912/0.2558, allocations: 192 kB / 400.4 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004301/0.2562, allocations: 495 kB / 400.9 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001431/0.2564, allocations: 64.64 kB / 400.9 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002202/0.2566, allocations: 218.4 kB / 401.2 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002885/0.2569, allocations: 238.5 kB / 401.4 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.262e-05/0.2569, allocations: 39.09 kB / 401.4 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001614/0.2571, allocations: 89.28 kB / 401.5 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001049/0.2572, allocations: 95.39 kB / 401.6 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001627/0.2574, allocations: 195.7 kB / 401.8 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004966/0.2579, allocations: 468.2 kB / 402.3 MB, free: 5.906 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.2579, allocations: 0 / 402.3 MB, free: 5.906 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2579, allocations: 1.438 kB / 402.3 MB, free: 5.906 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.784e-06/0.2579, allocations: 0 / 402.3 MB, free: 5.906 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.00113/0.259, allocations: 0.5887 MB / 402.8 MB, free: 5.484 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.259, allocations: 13.2 kB / 402.9 MB, free: 5.48 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.053e-05/0.2591, allocations: 10.94 kB / 402.9 MB, free: 5.473 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.146e-05/0.2591, allocations: 62.41 kB / 402.9 MB, free: 5.418 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.019e-05/0.2592, allocations: 38.98 kB / 403 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003321/0.2595, allocations: 229.3 kB / 403.2 MB, free: 5.207 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.691e-05/0.2596, allocations: 24.91 kB / 403.2 MB, free: 5.195 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.673e-05/0.2596, allocations: 31.84 kB / 403.2 MB, free: 5.184 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006643/0.2603, allocations: 386.6 kB / 403.6 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.876e-05/0.2603, allocations: 1.344 kB / 403.6 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.059e-05/0.2604, allocations: 10.03 kB / 403.6 MB, free: 5.023 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.016e-06/0.2604, allocations: 7.688 kB / 403.6 MB, free: 5.023 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007546/0.2611, allocations: 405.3 kB / 404 MB, free: 4.902 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001898/0.263, allocations: 1.059 MB / 405.1 MB, free: 4.262 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005278/0.2636, allocations: 290.3 kB / 405.4 MB, free: 4.137 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003446/0.2639, allocations: 190.8 kB / 405.6 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.832e-05/0.2639, allocations: 3.969 kB / 405.6 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.627e-05/0.264, allocations: 41.56 kB / 405.6 MB, free: 4.012 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 2.785e-06/0.264, allocations: 0 / 405.6 MB, free: 4.012 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004766/0.2687, allocations: 1.729 MB / 407.3 MB, free: 3.23 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.95e-05/0.2688, allocations: 56.91 kB / 407.4 MB, free: 3.168 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002955/0.2691, allocations: 236.5 kB / 407.6 MB, free: 3.02 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.676e-05/0.2691, allocations: 41.36 kB / 407.7 MB, free: 2.98 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.663e-05/0.2692, allocations: 150.3 kB / 407.8 MB, free: 2.848 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001275/0.2694, allocations: 163.5 kB / 408 MB, free: 2.723 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001872/0.2695, allocations: 96.91 kB / 408.1 MB, free: 2.672 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.094e-05/0.2696, allocations: 345.5 kB / 408.4 MB, free: 2.34 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000429/0.2701, allocations: 210.4 kB / 408.6 MB, free: 2.266 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004255/0.2705, allocations: 279.4 kB / 408.9 MB, free: 2.121 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005869/0.2711, allocations: 381.6 kB / 409.3 MB, free: 1.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.2711, allocations: 1.531 kB / 409.3 MB, free: 1.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001411/0.2725, allocations: 0.6831 MB / 409.9 MB, free: 1.652 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.2725, allocations: 10.56 kB / 410 MB, free: 1.648 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.2725, allocations: 2.562 kB / 410 MB, free: 1.648 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009301/0.2735, allocations: 497 kB / 410.4 MB, free: 1.504 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003161/0.2738, allocations: 77.02 kB / 410.5 MB, free: 1.492 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001053/0.2748, allocations: 1.399 MB / 411.9 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004519/0.2753, allocations: 66.98 kB / 412 MB, free: 276 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.604e-05/0.2753, allocations: 21.73 kB / 412 MB, free: 268 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.0001987/0.2755, allocations: 157.6 kB / 412.2 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.638e-05/0.2756, allocations: 29.72 kB / 412.2 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.704e-05/0.2757, allocations: 49.77 kB / 412.2 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.2757, allocations: 4.656 kB / 412.2 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.2757, allocations: 0 / 412.2 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.2757, allocations: 4 kB / 412.2 MB, free: 56 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002768/0.2785, allocations: 1.33 MB / 413.6 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.703e-06/0.2785, allocations: 11.25 kB / 413.6 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002685/0.2788, allocations: 58.31 kB / 413.6 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007132/0.2795, allocations: 459.4 kB / 414.1 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.413e-05/0.2795, allocations: 18.12 kB / 414.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001232/0.2807, allocations: 1.337 MB / 415.4 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.2807, allocations: 0.9688 kB / 415.4 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001797/0.2825, allocations: 0.9327 MB / 416.4 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000192/0.2827, allocations: 86.56 kB / 416.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.699e-05/0.2828, allocations: 18.7 kB / 416.5 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002965/0.2831, allocations: 39.05 kB / 416.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001876/0.2833, allocations: 86.27 kB / 416.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.712e-05/0.2833, allocations: 24.39 kB / 416.6 MB, free: 12.95 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001709/0.2835, allocations: 174.5 kB / 416.8 MB, free: 12.83 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2835, allocations: 0 / 416.8 MB, free: 12.83 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004817/0.284, allocations: 99.81 kB / 416.9 MB, free: 12.82 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.002269/0.2863, allocations: 1.513 MB / 418.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001102/0.2874, allocations: 484.9 kB / 418.9 MB, free: 11.49 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.2874, allocations: 0 / 418.9 MB, free: 11.49 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006185/0.288, allocations: 280.8 kB / 419.2 MB, free: 11.36 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004971/0.2885, allocations: 49.56 kB / 419.2 MB, free: 11.33 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007431/0.2959, allocations: 4.141 MB / 423.3 MB, free: 8.336 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004296/0.2963, allocations: 0.7762 MB / 424.1 MB, free: 7.531 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001613/0.2965, allocations: 34.95 kB / 424.2 MB, free: 7.496 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001643/0.2967, allocations: 95.39 kB / 424.2 MB, free: 7.402 MB / 334.1 MB Notification: Performance of SimCode: time 7.11e-07/0.2967, allocations: 0 / 424.2 MB, free: 7.402 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03829/0.335, allocations: 12.22 MB / 436.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.08/12.42, allocations: 8.016 kB / 436.5 MB, free: 11.11 MB / 350.1 MB " [Timeout remaining time 647] (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: 14.864158600976225]