Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.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.001433/0.001433, allocations: 101.5 kB / 21.21 MB, free: 0.6523 MB / 14.72 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.001492/0.001492, allocations: 186.8 kB / 24.49 MB, free: 3.961 MB / 14.72 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 1.32/1.32, allocations: 225.7 MB / 253.3 MB, free: 12.86 MB / 206.1 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.Translational.Examples.Brake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001398, allocations: 47.92 kB / 371.2 MB, free: 9.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2217/0.2231, allocations: 52.19 MB / 423.3 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003589/0.2267, allocations: 2.301 MB / 425.6 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009985/0.2277, allocations: 491.3 kB / 426.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001112/0.2278, allocations: 4 kB / 426.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002182/0.2281, allocations: 55.5 kB / 426.2 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001702/0.2282, allocations: 87.27 kB / 426.3 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004779/0.2287, allocations: 199.7 kB / 426.5 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004859/0.2292, allocations: 487 kB / 426.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001431/0.2293, allocations: 48.91 kB / 427 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002458/0.2296, allocations: 215.3 kB / 427.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003309/0.2299, allocations: 251.2 kB / 427.4 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.389e-05/0.23, allocations: 40 kB / 427.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001641/0.2301, allocations: 87.89 kB / 427.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001318/0.2303, allocations: 99.72 kB / 427.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001764/0.2304, allocations: 163.3 kB / 427.8 MB, free: 9.945 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005305/0.231, allocations: 468.5 kB / 428.3 MB, free: 9.488 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.231, allocations: 0 / 428.3 MB, free: 9.488 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.231, allocations: 0 / 428.3 MB, free: 9.488 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.752e-06/0.231, allocations: 0 / 428.3 MB, free: 9.488 MB / 334.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.001191/0.2322, allocations: 0.5988 MB / 428.9 MB, free: 8.855 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.2322, allocations: 8.031 kB / 428.9 MB, free: 8.848 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.177e-05/0.2322, allocations: 8.844 kB / 428.9 MB, free: 8.84 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.291e-05/0.2323, allocations: 66.66 kB / 429 MB, free: 8.766 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.151e-05/0.2324, allocations: 36.7 kB / 429 MB, free: 8.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003786/0.2328, allocations: 226.9 kB / 429.2 MB, free: 8.484 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.699e-05/0.2328, allocations: 25.03 kB / 429.2 MB, free: 8.461 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.798e-05/0.2329, allocations: 28.38 kB / 429.3 MB, free: 8.434 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007205/0.2336, allocations: 390.1 kB / 429.7 MB, free: 8.047 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.2336, allocations: 3.938 kB / 429.7 MB, free: 8.043 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.295e-05/0.2337, allocations: 12 kB / 429.7 MB, free: 8.031 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.2337, allocations: 4 kB / 429.7 MB, free: 8.027 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007639/0.2344, allocations: 406.4 kB / 430.1 MB, free: 7.633 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001816/0.2363, allocations: 0.9866 MB / 431.1 MB, free: 6.578 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005157/0.2368, allocations: 276.1 kB / 431.3 MB, free: 6.293 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003595/0.2371, allocations: 193.7 kB / 431.5 MB, free: 6.102 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.623e-05/0.2372, allocations: 7.984 kB / 431.5 MB, free: 6.094 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.126e-05/0.2372, allocations: 42.44 kB / 431.6 MB, free: 6.043 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 1.543e-06/0.2372, allocations: 0 / 431.6 MB, free: 6.043 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004268/0.2415, allocations: 1.727 MB / 433.3 MB, free: 4.258 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.422e-05/0.2415, allocations: 55.41 kB / 433.3 MB, free: 4.191 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002559/0.2418, allocations: 236.9 kB / 433.6 MB, free: 3.949 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.253e-05/0.2418, allocations: 37.7 kB / 433.6 MB, free: 3.906 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.242, allocations: 161 kB / 433.8 MB, free: 3.746 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001502/0.2421, allocations: 166.6 kB / 433.9 MB, free: 3.582 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001821/0.2423, allocations: 94.12 kB / 434 MB, free: 3.484 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.2424, allocations: 342.8 kB / 434.4 MB, free: 3.141 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004051/0.2429, allocations: 208.9 kB / 434.6 MB, free: 2.938 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004632/0.2433, allocations: 288.1 kB / 434.8 MB, free: 2.633 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006594/0.244, allocations: 377.7 kB / 435.2 MB, free: 2.238 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.244, allocations: 0 / 435.2 MB, free: 2.238 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00144/0.2454, allocations: 0.6964 MB / 435.9 MB, free: 1.527 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.2454, allocations: 4 kB / 435.9 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.2454, allocations: 4 kB / 435.9 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008562/0.2463, allocations: 497.5 kB / 436.4 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002807/0.2466, allocations: 71.91 kB / 436.5 MB, free: 0.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001377/0.248, allocations: 1.39 MB / 437.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003779/0.2483, allocations: 64.05 kB / 437.9 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.525e-05/0.2484, allocations: 23.98 kB / 437.9 MB, free: 15.43 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 (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.0001949/0.2486, allocations: 158.9 kB / 438.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.464e-05/0.2487, allocations: 27.81 kB / 438.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001016/0.2488, allocations: 55.3 kB / 438.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.2488, allocations: 4 kB / 438.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.2488, allocations: 0 / 438.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.2488, allocations: 3.984 kB / 438.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002664/0.2514, allocations: 1.253 MB / 439.4 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.12e-05/0.2515, allocations: 15.98 kB / 439.5 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000276/0.2517, allocations: 60.08 kB / 439.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007163/0.2524, allocations: 461.3 kB / 440 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.813e-05/0.2525, allocations: 19.98 kB / 440 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001214/0.2537, allocations: 1.343 MB / 441.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2537, allocations: 0 / 441.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001806/0.2555, allocations: 0.9447 MB / 442.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001753/0.2557, allocations: 83.67 kB / 442.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.436e-05/0.2558, allocations: 16 kB / 442.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002793/0.256, allocations: 35.95 kB / 442.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001929/0.2562, allocations: 83.83 kB / 442.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.446e-05/0.2563, allocations: 27.91 kB / 442.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001614/0.2564, allocations: 176.5 kB / 442.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2564, allocations: 0 / 442.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004468/0.2569, allocations: 100 kB / 442.8 MB, free: 10.41 MB / 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,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002264/0.2592, allocations: 1.523 MB / 444.3 MB, free: 8.836 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001014/0.2602, allocations: 486.2 kB / 444.8 MB, free: 8.363 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2602, allocations: 0 / 444.8 MB, free: 8.363 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005793/0.2607, allocations: 280.6 kB / 445.1 MB, free: 8.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000471/0.2612, allocations: 72.11 kB / 445.1 MB, free: 8.023 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006694/0.2679, allocations: 4.131 MB / 449.3 MB, free: 3.734 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001722/0.2681, allocations: 177.8 kB / 449.4 MB, free: 3.539 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001286/0.2682, allocations: 34.95 kB / 449.5 MB, free: 3.504 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001522/0.2684, allocations: 91.41 kB / 449.6 MB, free: 3.414 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2684, allocations: 0 / 449.6 MB, free: 3.414 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03567/0.304, allocations: 10.63 MB / 460.2 MB, free: 8.996 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.22/12.52, allocations: 15.05 kB / 460.2 MB, free: 8.984 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.869970354018733]