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.001492/0.001492, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001887/0.001887, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001083/0.001083, allocations: 60.19 kB / 307.1 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09887/0.09997, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004788/0.1048, allocations: 2.567 MB / 360.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009965/0.1058, allocations: 0.5771 MB / 360.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.668e-05/0.1059, allocations: 7.938 kB / 360.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002115/0.1062, allocations: 67.42 kB / 360.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002302/0.1064, allocations: 131.1 kB / 360.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002564/0.1067, allocations: 163.7 kB / 361.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004866/0.1072, allocations: 0.5069 MB / 361.6 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002364/0.1074, allocations: 72.69 kB / 361.7 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002248/0.1077, allocations: 231.3 kB / 361.9 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003099/0.108, allocations: 243.2 kB / 362.1 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.713e-05/0.1081, allocations: 44 kB / 362.2 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001656/0.1082, allocations: 95.97 kB / 362.3 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001552/0.1084, allocations: 119.6 kB / 362.4 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001733/0.1086, allocations: 191.1 kB / 362.6 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004818/0.1091, allocations: 0.4987 MB / 363.1 MB, free: 8.469 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1091, allocations: 0 / 363.1 MB, free: 8.469 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1091, allocations: 0 / 363.1 MB, free: 8.469 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.1091, allocations: 0 / 363.1 MB, free: 8.469 MB / 302.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.001306/0.1104, allocations: 0.7055 MB / 363.8 MB, free: 7.707 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.1104, allocations: 11.97 kB / 363.8 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.109e-05/0.1105, allocations: 70.72 kB / 363.9 MB, free: 7.617 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.623e-05/0.1106, allocations: 40.47 kB / 363.9 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003355/0.111, allocations: 295.7 kB / 364.2 MB, free: 7.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.563e-05/0.111, allocations: 21.03 kB / 364.2 MB, free: 7.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.496e-05/0.1111, allocations: 36.28 kB / 364.2 MB, free: 7.195 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006816/0.1118, allocations: 370.5 kB / 364.6 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.218e-05/0.1118, allocations: 7.938 kB / 364.6 MB, free: 6.824 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.42e-05/0.1119, allocations: 8 kB / 364.6 MB, free: 6.816 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.241e-05/0.1119, allocations: 8 kB / 364.6 MB, free: 6.809 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001098/0.113, allocations: 390.4 kB / 365 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002689/0.1157, allocations: 1.135 MB / 366.1 MB, free: 5.219 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008519/0.1166, allocations: 339.4 kB / 366.5 MB, free: 4.879 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005091/0.1171, allocations: 188.8 kB / 366.7 MB, free: 4.691 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.777e-05/0.1172, allocations: 11.98 kB / 366.7 MB, free: 4.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.879e-05/0.1172, allocations: 38.56 kB / 366.7 MB, free: 4.633 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 2.204e-06/0.1172, allocations: 0 / 366.7 MB, free: 4.633 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.00656/0.1238, allocations: 2.007 MB / 368.7 MB, free: 2.488 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.296e-05/0.1238, allocations: 55.84 kB / 368.8 MB, free: 2.422 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003913/0.1242, allocations: 252.9 kB / 369 MB, free: 2.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.249e-05/0.1243, allocations: 45.69 kB / 369.1 MB, free: 2.109 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.1245, allocations: 152.8 kB / 369.2 MB, free: 1.953 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001875/0.1247, allocations: 161.7 kB / 369.4 MB, free: 1.793 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002198/0.1249, allocations: 98.14 kB / 369.5 MB, free: 1.691 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001879/0.1251, allocations: 346.7 kB / 369.8 MB, free: 1.344 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005322/0.1257, allocations: 193 kB / 370 MB, free: 1.156 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006191/0.1263, allocations: 264.8 kB / 370.2 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009104/0.1272, allocations: 353.6 kB / 370.6 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1272, allocations: 4 kB / 370.6 MB, free: 0.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.1664/0.2936, allocations: 0.609 MB / 371.2 MB, free: 19.88 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.839e-05/0.2937, allocations: 5.281 kB / 371.2 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.2937, allocations: 2.484 kB / 371.2 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001043/0.2947, allocations: 345.3 kB / 371.5 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003692/0.2951, allocations: 74.75 kB / 371.6 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00132/0.2964, allocations: 1.364 MB / 373 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005637/0.297, allocations: 69.89 kB / 373.1 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.221e-05/0.2971, allocations: 19.09 kB / 373.1 MB, free: 18.83 MB / 302.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.0002429/0.2973, allocations: 167.1 kB / 373.2 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.2975, allocations: 37.72 kB / 373.3 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001289/0.2976, allocations: 56.97 kB / 373.3 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.2976, allocations: 4.625 kB / 373.3 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/0.2976, allocations: 2.188 kB / 373.3 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.2976, allocations: 3.719 kB / 373.3 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002904/0.3006, allocations: 1.341 MB / 374.7 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/0.3006, allocations: 6.109 kB / 374.7 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002825/0.3009, allocations: 57.53 kB / 374.7 MB, free: 18.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006833/0.3016, allocations: 300.9 kB / 375 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.355e-05/0.3016, allocations: 18.3 kB / 375.1 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00103/0.3027, allocations: 1.319 MB / 376.4 MB, free: 16.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.3027, allocations: 6.344 kB / 376.4 MB, free: 16.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001659/0.3044, allocations: 0.9107 MB / 377.3 MB, free: 16.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001775/0.3045, allocations: 159.5 kB / 377.4 MB, free: 16.37 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.95e-05/0.3046, allocations: 22.92 kB / 377.5 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003161/0.305, allocations: 38.92 kB / 377.5 MB, free: 16.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002166/0.3052, allocations: 89.75 kB / 377.6 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.243e-05/0.3052, allocations: 28.78 kB / 377.6 MB, free: 16.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001854/0.3054, allocations: 184.5 kB / 377.8 MB, free: 16.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3054, allocations: 1.312 kB / 377.8 MB, free: 16.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004884/0.3059, allocations: 99.97 kB / 377.9 MB, free: 16.2 MB / 302.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.002553/0.3085, allocations: 1.722 MB / 379.6 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00112/0.3096, allocations: 0.5114 MB / 380.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3096, allocations: 0 / 380.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005884/0.3102, allocations: 288.5 kB / 380.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005337/0.3108, allocations: 63.75 kB / 380.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006044/0.3168, allocations: 4.076 MB / 384.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002369/0.3171, allocations: 0.79 MB / 385.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000149/0.3172, allocations: 32.88 kB / 385.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001518/0.3174, allocations: 106 kB / 385.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3174, allocations: 0 / 385.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1945/0.5119, allocations: 11.66 MB / 397.1 MB, free: 6.789 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.93/13.44, allocations: 7.969 kB / 397.1 MB, free: 6.789 MB / 302.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