Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001504/0.001504, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00184/0.00184, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001674/0.001674, allocations: 67.88 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2188/0.2205, allocations: 50.55 MB / 408.8 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003912/0.2245, allocations: 2.576 MB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001036/0.2255, allocations: 0.5733 MB / 412 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001127/0.2257, allocations: 8 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002818/0.226, allocations: 75.36 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002877/0.2263, allocations: 131 kB / 412.2 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002828/0.2266, allocations: 159.8 kB / 412.3 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005031/0.2271, allocations: 0.5108 MB / 412.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001673/0.2272, allocations: 76.67 kB / 412.9 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002463/0.2275, allocations: 227.4 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003377/0.2278, allocations: 251.1 kB / 413.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.924e-05/0.2279, allocations: 40 kB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000178/0.2281, allocations: 95.92 kB / 413.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001578/0.2283, allocations: 111.7 kB / 413.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001978/0.2285, allocations: 203 kB / 413.8 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005659/0.2291, allocations: 0.4972 MB / 414.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2291, allocations: 0 / 414.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2291, allocations: 0 / 414.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.2291, allocations: 0 / 414.3 MB, free: 11.94 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001322/0.2304, allocations: 0.7166 MB / 415 MB, free: 11.17 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.2305, allocations: 8.031 kB / 415 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.387e-05/0.2306, allocations: 70.72 kB / 415.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.813e-05/0.2307, allocations: 44.64 kB / 415.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004288/0.2311, allocations: 295.8 kB / 415.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.256e-05/0.2311, allocations: 21.03 kB / 415.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.79e-05/0.2312, allocations: 32.38 kB / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007292/0.2319, allocations: 382.4 kB / 415.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.972e-05/0.232, allocations: 11.83 kB / 415.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.079e-05/0.232, allocations: 12 kB / 415.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.232, allocations: 12 kB / 415.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007972/0.2328, allocations: 386.4 kB / 416.3 MB, free: 9.875 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00195/0.2348, allocations: 1.12 MB / 417.4 MB, free: 8.676 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005996/0.2354, allocations: 330.6 kB / 417.7 MB, free: 8.34 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003727/0.2358, allocations: 196.7 kB / 417.9 MB, free: 8.145 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.415e-05/0.2358, allocations: 4 kB / 417.9 MB, free: 8.141 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.504e-05/0.2359, allocations: 34.56 kB / 418 MB, free: 8.098 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 1.663e-06/0.2359, allocations: 4 kB / 418 MB, free: 8.094 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.004677/0.2406, allocations: 2.004 MB / 420 MB, free: 5.953 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/0.2406, allocations: 59.84 kB / 420 MB, free: 5.883 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002982/0.2409, allocations: 256.9 kB / 420.3 MB, free: 5.625 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.505e-05/0.241, allocations: 49.64 kB / 420.3 MB, free: 5.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.2411, allocations: 153.1 kB / 420.5 MB, free: 5.418 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001504/0.2413, allocations: 174.6 kB / 420.6 MB, free: 5.246 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001736/0.2415, allocations: 98.19 kB / 420.7 MB, free: 5.145 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.2416, allocations: 342.8 kB / 421.1 MB, free: 4.801 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000383/0.242, allocations: 189 kB / 421.3 MB, free: 4.617 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004491/0.2425, allocations: 268.8 kB / 421.5 MB, free: 4.328 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006257/0.2431, allocations: 361.6 kB / 421.9 MB, free: 3.953 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2431, allocations: 0 / 421.9 MB, free: 3.953 MB / 334.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001197/0.2443, allocations: 0.6146 MB / 422.5 MB, free: 3.324 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.2444, allocations: 7.125 kB / 422.5 MB, free: 3.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.2444, allocations: 3.938 kB / 422.5 MB, free: 3.316 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000726/0.2451, allocations: 345.6 kB / 422.8 MB, free: 2.973 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002693/0.2454, allocations: 67.91 kB / 422.9 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00133/0.2467, allocations: 1.37 MB / 424.3 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004391/0.2472, allocations: 71.97 kB / 424.3 MB, free: 1.414 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.277e-05/0.2472, allocations: 23.98 kB / 424.4 MB, free: 1.391 MB / 334.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.0002106/0.2474, allocations: 157.7 kB / 424.5 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.556e-05/0.2475, allocations: 43.75 kB / 424.6 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001229/0.2477, allocations: 47.61 kB / 424.6 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/0.2477, allocations: 12.03 kB / 424.6 MB, free: 1.125 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.2477, allocations: 0 / 424.6 MB, free: 1.125 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.2477, allocations: 3.984 kB / 424.6 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002773/0.2505, allocations: 1.339 MB / 426 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.2505, allocations: 4 kB / 426 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002589/0.2508, allocations: 59.91 kB / 426 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005978/0.2514, allocations: 301.7 kB / 426.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.177e-05/0.2514, allocations: 23.92 kB / 426.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001256/0.2527, allocations: 1.304 MB / 427.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.2527, allocations: 4.031 kB / 427.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001711/0.2544, allocations: 0.9217 MB / 428.6 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001773/0.2546, allocations: 156.8 kB / 428.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.97e-05/0.2547, allocations: 23.98 kB / 428.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003022/0.255, allocations: 31.97 kB / 428.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001963/0.2552, allocations: 95.84 kB / 428.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.566e-05/0.2553, allocations: 23.98 kB / 428.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001831/0.2554, allocations: 184.5 kB / 429.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2555, allocations: 0 / 429.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004458/0.2559, allocations: 103.9 kB / 429.2 MB, free: 12.38 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,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003158/0.2591, allocations: 1.719 MB / 430.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001086/0.2602, allocations: 0.5015 MB / 431.4 MB, free: 10.22 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2602, allocations: 0 / 431.4 MB, free: 10.22 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006058/0.2608, allocations: 291.7 kB / 431.7 MB, free: 9.938 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005157/0.2613, allocations: 58.53 kB / 431.7 MB, free: 9.883 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006547/0.2679, allocations: 4.071 MB / 435.8 MB, free: 5.648 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003994/0.2683, allocations: 0.7917 MB / 436.6 MB, free: 4.828 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000143/0.2685, allocations: 30.97 kB / 436.6 MB, free: 4.793 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001666/0.2686, allocations: 99.39 kB / 436.7 MB, free: 4.695 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2686, allocations: 4 kB / 436.7 MB, free: 4.691 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03922/0.3079, allocations: 11.87 MB / 448.6 MB, free: 8.992 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.61, allocations: 0.8906 kB / 448.6 MB, free: 8.992 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches