Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001319/0.001319, allocations: 123.4 kB / 17.79 MB, free: 5.281 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.001496/0.001496, allocations: 204.3 kB / 20.74 MB, free: 2.34 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.466/1.466, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001607/0.001607, allocations: 47.92 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1043, allocations: 53.34 MB / 426.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004752/0.1091, allocations: 2.576 MB / 428.9 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001357/0.1105, allocations: 0.5849 MB / 429.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002117/0.1107, allocations: 4 kB / 429.5 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003394/0.111, allocations: 71.36 kB / 429.5 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004229/0.1114, allocations: 131.1 kB / 429.7 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003777/0.1118, allocations: 167.7 kB / 429.8 MB, free: 1.262 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005647/0.1124, allocations: 0.5147 MB / 430.3 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001449/0.1125, allocations: 44.73 kB / 430.4 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000266/0.1128, allocations: 231.4 kB / 430.6 MB, free: 480 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003535/0.1131, allocations: 259.1 kB / 430.9 MB, free: 220 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.898e-05/0.1132, allocations: 43.94 kB / 430.9 MB, free: 176 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001842/0.1134, allocations: 95.98 kB / 431 MB, free: 80 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1945/0.3079, allocations: 104.4 kB / 431.1 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002867/0.3082, allocations: 193.7 kB / 431.3 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007021/0.3089, allocations: 0.5034 MB / 431.8 MB, free: 8.051 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.3089, allocations: 3.938 kB / 431.8 MB, free: 8.047 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3089, allocations: 0 / 431.8 MB, free: 8.047 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.3089, allocations: 0 / 431.8 MB, free: 8.047 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001308/0.3102, allocations: 0.7205 MB / 432.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.3103, allocations: 10.56 kB / 432.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.398e-05/0.3104, allocations: 63.56 kB / 432.6 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001012/0.3105, allocations: 40.7 kB / 432.6 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004005/0.3109, allocations: 295.3 kB / 432.9 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.199e-05/0.3109, allocations: 22.56 kB / 432.9 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.081e-05/0.311, allocations: 35.39 kB / 433 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006816/0.3116, allocations: 371.6 kB / 433.3 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.257e-05/0.3117, allocations: 12.64 kB / 433.4 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.088e-05/0.3117, allocations: 11.23 kB / 433.4 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.3117, allocations: 6.906 kB / 433.4 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007439/0.3125, allocations: 388.3 kB / 433.8 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00184/0.3143, allocations: 1.13 MB / 434.9 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005703/0.3149, allocations: 313.1 kB / 435.2 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003509/0.3152, allocations: 177.2 kB / 435.4 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.873e-05/0.3153, allocations: 8.828 kB / 435.4 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.022e-05/0.3153, allocations: 38.3 kB / 435.4 MB, free: 6.703 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.834e-06/0.3153, allocations: 1.188 kB / 435.4 MB, free: 6.703 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004596/0.3199, allocations: 2.002 MB / 437.4 MB, free: 5.934 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.129e-05/0.3199, allocations: 62.17 kB / 437.5 MB, free: 5.871 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002605/0.3202, allocations: 252.9 kB / 437.7 MB, free: 5.723 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.79e-05/0.3202, allocations: 43.84 kB / 437.8 MB, free: 5.684 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.298e-05/0.3203, allocations: 157 kB / 437.9 MB, free: 5.543 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001165/0.3204, allocations: 179.6 kB / 438.1 MB, free: 5.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001647/0.3206, allocations: 97.66 kB / 438.2 MB, free: 5.355 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.828e-05/0.3207, allocations: 344.7 kB / 438.5 MB, free: 5.027 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003671/0.321, allocations: 191.6 kB / 438.7 MB, free: 4.953 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004044/0.3214, allocations: 274.1 kB / 439 MB, free: 4.797 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005748/0.322, allocations: 347 kB / 439.3 MB, free: 4.609 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.322, allocations: 4 kB / 439.3 MB, free: 4.605 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001164/0.3232, allocations: 0.6036 MB / 439.9 MB, free: 4.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.3232, allocations: 5.469 kB / 439.9 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.864e-06/0.3232, allocations: 2.781 kB / 439.9 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007542/0.3239, allocations: 345.1 kB / 440.3 MB, free: 4.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002734/0.3242, allocations: 70.56 kB / 440.3 MB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001035/0.3253, allocations: 1.362 MB / 441.7 MB, free: 3.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004775/0.3257, allocations: 73.08 kB / 441.8 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.065e-05/0.3258, allocations: 18.27 kB / 441.8 MB, free: 3.012 MB / 350.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 (47): * Single equations (assignments): 45 * 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,9), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001824/0.326, allocations: 164.1 kB / 441.9 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.631e-05/0.326, allocations: 37.25 kB / 442 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001218/0.3262, allocations: 57.17 kB / 442 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.3262, allocations: 5.531 kB / 442 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.3262, allocations: 0 / 442 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.3262, allocations: 4.031 kB / 442.1 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002807/0.329, allocations: 1.335 MB / 443.4 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.329, allocations: 2.312 kB / 443.4 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002611/0.3293, allocations: 65.22 kB / 443.5 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005747/0.3298, allocations: 310.7 kB / 443.8 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.476e-05/0.3299, allocations: 23.89 kB / 443.8 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009285/0.3308, allocations: 1.309 MB / 445.1 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.3308, allocations: 1.734 kB / 445.1 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001664/0.3325, allocations: 0.91 MB / 446 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001935/0.3327, allocations: 158.2 kB / 446.2 MB, free: 212 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.067e-05/0.3327, allocations: 20.72 kB / 446.2 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003351/0.3331, allocations: 34.7 kB / 446.2 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002503/0.3333, allocations: 93.67 kB / 446.3 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.858e-05/0.3334, allocations: 21.89 kB / 446.3 MB, free: 172 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002221/0.3336, allocations: 191.5 kB / 446.5 MB, free: 56 kB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3336, allocations: 0 / 446.5 MB, free: 56 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005339/0.3341, allocations: 96.33 kB / 446.6 MB, free: 44 kB / 350.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,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003645/0.3378, allocations: 1.724 MB / 448.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0012/0.339, allocations: 470 kB / 448.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.339, allocations: 1.125 kB / 448.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006436/0.3396, allocations: 279.1 kB / 449.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000568/0.3402, allocations: 61.41 kB / 449.1 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00735/0.3475, allocations: 4.064 MB / 453.2 MB, free: 12.13 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004676/0.348, allocations: 0.7887 MB / 454 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001678/0.3482, allocations: 36.92 kB / 454 MB, free: 11.42 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001841/0.3484, allocations: 101.4 kB / 454.1 MB, free: 11.36 MB / 366.1 MB Notification: Performance of SimCode: time 1.232e-06/0.3484, allocations: 0 / 454.1 MB, free: 11.36 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04135/0.3897, allocations: 11.92 MB / 466 MB, free: 6.484 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.24, allocations: 5.531 kB / 466 MB, free: 6.48 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.763860502047464]