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.001312/0.001312, allocations: 110.9 kB / 17.78 MB, free: 5.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001204/0.001204, allocations: 209.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 63.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2424, allocations: 50.54 MB / 408.7 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003642/0.2461, allocations: 2.568 MB / 411.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001066/0.2472, allocations: 0.5771 MB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001709/0.2474, allocations: 7.938 kB / 411.9 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002868/0.2477, allocations: 67.44 kB / 412 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003588/0.2481, allocations: 139.1 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003363/0.2484, allocations: 167.7 kB / 412.3 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005264/0.2489, allocations: 0.503 MB / 412.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001664/0.2491, allocations: 76.69 kB / 412.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002856/0.2494, allocations: 231.3 kB / 413.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003523/0.2498, allocations: 251.2 kB / 413.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.424e-05/0.2499, allocations: 40 kB / 413.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001986/0.2501, allocations: 91.92 kB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001408/0.2502, allocations: 123.6 kB / 413.6 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001726/0.2504, allocations: 195.1 kB / 413.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005361/0.2509, allocations: 0.4962 MB / 414.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.251, allocations: 0 / 414.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.251, allocations: 4 kB / 414.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.172e-05/0.251, allocations: 0 / 414.2 MB, free: 12.03 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.001309/0.2523, allocations: 0.7055 MB / 414.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.2523, allocations: 12.03 kB / 415 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.545e-05/0.2524, allocations: 66.72 kB / 415 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.617e-05/0.2525, allocations: 40.47 kB / 415.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000424/0.253, allocations: 299.5 kB / 415.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.688e-05/0.253, allocations: 29.03 kB / 415.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.801e-05/0.2531, allocations: 32.38 kB / 415.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006894/0.2538, allocations: 370.5 kB / 415.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.236e-05/0.2538, allocations: 11.84 kB / 415.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.781e-05/0.2538, allocations: 8 kB / 415.8 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.836e-06/0.2539, allocations: 8 kB / 415.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000783/0.2546, allocations: 394.3 kB / 416.2 MB, free: 9.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001964/0.2566, allocations: 1.116 MB / 417.3 MB, free: 8.785 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005766/0.2572, allocations: 342.5 kB / 417.6 MB, free: 8.438 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003416/0.2576, allocations: 184.8 kB / 417.8 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.711e-05/0.2576, allocations: 4 kB / 417.8 MB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.32e-05/0.2577, allocations: 38.56 kB / 417.9 MB, free: 8.203 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 1.703e-06/0.2577, allocations: 0 / 417.9 MB, free: 8.203 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.004551/0.2622, allocations: 2.003 MB / 419.9 MB, free: 6.062 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.497e-05/0.2623, allocations: 55.84 kB / 419.9 MB, free: 5.996 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002563/0.2625, allocations: 252.9 kB / 420.2 MB, free: 5.742 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.761e-05/0.2626, allocations: 49.69 kB / 420.2 MB, free: 5.688 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.711e-05/0.2627, allocations: 152.8 kB / 420.4 MB, free: 5.535 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.2628, allocations: 157.8 kB / 420.5 MB, free: 5.379 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001548/0.263, allocations: 98.14 kB / 420.6 MB, free: 5.277 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.2631, allocations: 346.7 kB / 421 MB, free: 4.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003723/0.2635, allocations: 193 kB / 421.1 MB, free: 4.742 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000402/0.2639, allocations: 268.8 kB / 421.4 MB, free: 4.453 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005883/0.2645, allocations: 353.6 kB / 421.8 MB, free: 4.086 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2645, allocations: 0 / 421.8 MB, free: 4.086 MB / 334.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00113/0.2656, allocations: 0.6144 MB / 422.4 MB, free: 3.457 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.2657, allocations: 11.94 kB / 422.4 MB, free: 3.445 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.2657, allocations: 0 / 422.4 MB, free: 3.445 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007123/0.2664, allocations: 349.6 kB / 422.7 MB, free: 3.098 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002577/0.2667, allocations: 67.91 kB / 422.8 MB, free: 3.031 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001178/0.2679, allocations: 1.366 MB / 424.1 MB, free: 1.613 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004514/0.2683, allocations: 72.09 kB / 424.2 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.41e-05/0.2684, allocations: 20 kB / 424.2 MB, free: 1.523 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.0001908/0.2686, allocations: 169.6 kB / 424.4 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.214e-05/0.2687, allocations: 39.56 kB / 424.4 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.792e-05/0.2688, allocations: 51.61 kB / 424.5 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.2688, allocations: 4 kB / 424.5 MB, free: 1.254 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.2688, allocations: 0 / 424.5 MB, free: 1.254 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.2688, allocations: 4 kB / 424.5 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002683/0.2715, allocations: 1.343 MB / 425.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.2715, allocations: 4.156 kB / 425.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002608/0.2718, allocations: 59.91 kB / 425.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005744/0.2724, allocations: 305.5 kB / 426.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.82e-05/0.2724, allocations: 27.91 kB / 426.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001096/0.2735, allocations: 1.308 MB / 427.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.2736, allocations: 4.125 kB / 427.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001686/0.2753, allocations: 0.9137 MB / 428.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002004/0.2755, allocations: 164.6 kB / 428.6 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.016e-05/0.2756, allocations: 24 kB / 428.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003207/0.2759, allocations: 35.95 kB / 428.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001905/0.2761, allocations: 87.8 kB / 428.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.491e-05/0.2761, allocations: 23.97 kB / 428.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001749/0.2763, allocations: 180.5 kB / 429 MB, free: 12.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2763, allocations: 0 / 429 MB, free: 12.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004474/0.2768, allocations: 112 kB / 429.1 MB, free: 12.49 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.002689/0.2795, allocations: 1.714 MB / 430.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001127/0.2806, allocations: 0.4899 MB / 431.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.162e-06/0.2807, allocations: 4.312 kB / 431.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006114/0.2813, allocations: 291.7 kB / 431.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005801/0.2819, allocations: 71.62 kB / 431.6 MB, free: 10 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006656/0.2885, allocations: 4.053 MB / 435.7 MB, free: 5.781 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003205/0.2889, allocations: 0.7917 MB / 436.5 MB, free: 4.965 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001656/0.2891, allocations: 30.97 kB / 436.5 MB, free: 4.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001716/0.2893, allocations: 99.39 kB / 436.6 MB, free: 4.832 MB / 350.1 MB Notification: Performance of SimCode: time 8.22e-07/0.2893, allocations: 0 / 436.6 MB, free: 4.832 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.576/0.8653, allocations: 12.23 MB / 448.8 MB, free: 8.773 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.02/16.88, allocations: 7.797 kB / 448.8 MB, free: 8.77 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.0.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