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.001063/0.001063, allocations: 118.8 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001191/0.001191, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 60.14 kB / 358.2 MB, free: 13.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.2665, allocations: 50.53 MB / 408.7 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003872/0.2704, allocations: 2.572 MB / 411.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001128/0.2716, allocations: 0.5733 MB / 411.9 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002305/0.2718, allocations: 7.938 kB / 411.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003418/0.2722, allocations: 75.41 kB / 412 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003512/0.2726, allocations: 127 kB / 412.1 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003166/0.2729, allocations: 167.7 kB / 412.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004758/0.2734, allocations: 0.5108 MB / 412.8 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001665/0.2736, allocations: 72.69 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002269/0.2738, allocations: 223.4 kB / 413 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002947/0.2741, allocations: 259 kB / 413.3 MB, free: 13 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.332e-05/0.2742, allocations: 40 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001706/0.2743, allocations: 91.98 kB / 413.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001472/0.2745, allocations: 111.7 kB / 413.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000175/0.2747, allocations: 199 kB / 413.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004935/0.2752, allocations: 0.5002 MB / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.2752, allocations: 0 / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2752, allocations: 0 / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.144e-06/0.2752, allocations: 0 / 414.2 MB, free: 12.07 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.001249/0.2765, allocations: 0.7094 MB / 414.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.2765, allocations: 12.03 kB / 415 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.933e-05/0.2766, allocations: 66.66 kB / 415 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.218e-05/0.2767, allocations: 44.47 kB / 415.1 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004273/0.2771, allocations: 303.5 kB / 415.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.185e-05/0.2772, allocations: 21.03 kB / 415.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.512e-05/0.2773, allocations: 32.38 kB / 415.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006673/0.2779, allocations: 374.5 kB / 415.8 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.278, allocations: 11.84 kB / 415.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.249e-05/0.278, allocations: 16 kB / 415.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.278, allocations: 11.98 kB / 415.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000739/0.2788, allocations: 382.4 kB / 416.2 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001836/0.2806, allocations: 1.12 MB / 417.3 MB, free: 8.812 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000569/0.2812, allocations: 334.5 kB / 417.6 MB, free: 8.473 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003355/0.2815, allocations: 188.8 kB / 417.8 MB, free: 8.285 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.557e-05/0.2816, allocations: 4 kB / 417.8 MB, free: 8.281 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.267e-05/0.2816, allocations: 42.55 kB / 417.9 MB, free: 8.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 1.532e-06/0.2816, allocations: 0 / 417.9 MB, free: 8.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.004352/0.286, allocations: 1.991 MB / 419.9 MB, free: 6.102 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.983e-05/0.286, allocations: 63.84 kB / 419.9 MB, free: 6.027 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002574/0.2863, allocations: 256.9 kB / 420.2 MB, free: 5.773 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.419e-05/0.2864, allocations: 41.69 kB / 420.2 MB, free: 5.727 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.495e-05/0.2865, allocations: 152.8 kB / 420.4 MB, free: 5.574 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001243/0.2866, allocations: 169.8 kB / 420.5 MB, free: 5.406 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001447/0.2867, allocations: 90.16 kB / 420.6 MB, free: 5.312 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.2869, allocations: 350.7 kB / 421 MB, free: 4.961 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003557/0.2872, allocations: 189 kB / 421.1 MB, free: 4.777 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003947/0.2876, allocations: 268.8 kB / 421.4 MB, free: 4.488 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000576/0.2882, allocations: 353.6 kB / 421.7 MB, free: 4.117 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2882, allocations: 0 / 421.7 MB, free: 4.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001112/0.2893, allocations: 0.6144 MB / 422.4 MB, free: 3.488 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.2894, allocations: 6.969 kB / 422.4 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.2894, allocations: 4 kB / 422.4 MB, free: 3.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006462/0.29, allocations: 349.6 kB / 422.7 MB, free: 3.133 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002628/0.2903, allocations: 67.97 kB / 422.8 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001152/0.2915, allocations: 1.374 MB / 424.2 MB, free: 1.641 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000418/0.2919, allocations: 67.94 kB / 424.2 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.892e-05/0.2919, allocations: 23.98 kB / 424.2 MB, free: 1.551 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.0001836/0.2921, allocations: 169.7 kB / 424.4 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.815e-05/0.2922, allocations: 35.56 kB / 424.4 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001119/0.2923, allocations: 55.55 kB / 424.5 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.2924, allocations: 8 kB / 424.5 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.2924, allocations: 0 / 424.5 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.2924, allocations: 0 / 424.5 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002574/0.2949, allocations: 1.343 MB / 425.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.295, allocations: 0 / 425.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002627/0.2952, allocations: 63.91 kB / 425.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005436/0.2958, allocations: 305.7 kB / 426.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.209e-05/0.2958, allocations: 23.91 kB / 426.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001069/0.2969, allocations: 1.304 MB / 427.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.2969, allocations: 4.031 kB / 427.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001624/0.2986, allocations: 0.9215 MB / 428.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001643/0.2987, allocations: 148.7 kB / 428.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.883e-05/0.2988, allocations: 23.94 kB / 428.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003078/0.2991, allocations: 35.95 kB / 428.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001706/0.2993, allocations: 99.72 kB / 428.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.763e-05/0.2994, allocations: 19.98 kB / 428.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001614/0.2995, allocations: 180.5 kB / 429 MB, free: 12.63 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2995, allocations: 0 / 429 MB, free: 12.63 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003995/0.2999, allocations: 104.2 kB / 429.1 MB, free: 12.53 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.002571/0.3025, allocations: 1.729 MB / 430.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009819/0.3035, allocations: 497.7 kB / 431.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.3035, allocations: 0 / 431.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005656/0.3041, allocations: 304.2 kB / 431.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005053/0.3046, allocations: 63.2 kB / 431.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006118/0.3107, allocations: 4.045 MB / 435.7 MB, free: 5.82 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003483/0.3111, allocations: 0.7878 MB / 436.5 MB, free: 5.008 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001372/0.3113, allocations: 30.97 kB / 436.5 MB, free: 4.973 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001585/0.3114, allocations: 115.3 kB / 436.6 MB, free: 4.859 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3114, allocations: 0 / 436.6 MB, free: 4.859 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04364/0.3551, allocations: 12.22 MB / 448.8 MB, free: 8.805 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.68, allocations: 8.938 kB / 448.8 MB, free: 8.797 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